Package org.jboss.soa.esb.samples.quickstart.business_ruleservice_cep.status

Examples of org.jboss.soa.esb.samples.quickstart.business_ruleservice_cep.status.InventoryStatus


    adjust(-1);
  }
 
  public void adjust(int adjustment) throws Exception
  {
    StatusSender.getInstance().sendStatus(new InventoryStatus(getSpoke().getLocation(), getName(), adjustment));
  }
View Full Code Here


      setSpokeAlive(spokeLocation, true);
      event = new Event(Event.Type.HEARTBEAT, Event.Light.GREEN, spokeLocation);
    }
    else if (status instanceof InventoryStatus)
    {
      InventoryStatus is = (InventoryStatus)status;
      String spokeLocation = is.getSpokeLocation();
      String partName = is.getPartName();
      String identifier = spokeLocation + ":" + partName;
      int adjustment = is.getAdjustment();
      synchronized (inventory_DB)
      {
        int oldCount = getSpokePartCount(spokeLocation, partName);
        int newCount = oldCount + adjustment;
        if (newCount > -1)
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.samples.quickstart.business_ruleservice_cep.status.InventoryStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.