|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.sensorevent.engine.baseagent.AbstractTaskAgent
com.ibm.sensorevent.engine.baseagent.IBMSEAbstractTaskAgent
com.ibm.premises.reusable.AbstractRUCAgent
public abstract class AbstractRUCAgent
Parent class of all ReusableComponent Agent classes. The RUC Agent is where the logic for the RUC should be put. RUCs with only a void command method should put that logic code into onIBMSensorEvent. RUCs that require non-void methods should define them for all necessary logic.
Method Summary | |
---|---|
static java.util.List<java.lang.String> |
getAllEPCsFromPayload(com.ibm.sensorevent.model.ISensorEvent event)
For a TagRead or AggregatedTagRead payload, get the tags from the payload For generic map payloads, find tagList keys defined in constants and return its value. |
static java.lang.String |
getSingleEPCFromPayload(com.ibm.sensorevent.model.ISensorEvent event)
For a TagRead payload, get the tag from the payload For an AggregatedTagRead payload, get only the first tag For generic map payloads, find the tag key defined in constants and return its value. |
void |
publishFailureReply(java.util.Map map,
java.lang.String rucActionName)
Publish message to SIBus to reply to RUC signal/query Should be called by each RUC MDB to push results asynchronously This allows for async chaining among RUCs |
void |
publishSuccessReply(java.util.Map map,
java.lang.String rucActionName)
Publish message to SIBus to reply to RUC signal/query Should be called by each RUC MDB to push results asynchronously This allows for async chaining among RUCs |
Methods inherited from class com.ibm.sensorevent.engine.baseagent.AbstractTaskAgent |
---|
broadCast, broadCast, getOriginalMsg, onEvent, publish, publish, publishOutbound, publishToCEP, setOriginalMsg |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void publishSuccessReply(java.util.Map map, java.lang.String rucActionName)
map
- The map of payload attributes. If null, payload will have no attributes.rucActionName
- Used to query the Task Agent props for the public void publishFailureReply(java.util.Map map, java.lang.String rucActionName)
map
- The map of payload attributes. If null, payload will have no attributes.rucActionName
- Used to query the Task Agent props for the public static java.util.List<java.lang.String> getAllEPCsFromPayload(com.ibm.sensorevent.model.ISensorEvent event) throws com.ibm.sensorevent.model.generic.SensorEventException
event
-
com.ibm.sensorevent.model.generic.SensorEventException
public static java.lang.String getSingleEPCFromPayload(com.ibm.sensorevent.model.ISensorEvent event) throws com.ibm.sensorevent.model.generic.SensorEventException
event
-
com.ibm.sensorevent.model.generic.SensorEventException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |