public interface MessageNode
Modifier and Type | Field and Description |
---|---|
static int |
ASSET_THR |
static int |
ASSET_URI |
static int |
ASSET_XQ |
static int |
META_MAP |
static int |
META_MSG |
static int |
META_OUT |
static int |
META_RULE |
static int |
META_XQ |
static int |
MSG_BID |
static int |
MSG_CID |
static int |
MSG_OID |
static int |
MSG_RID |
static int |
MSG_TID |
static int |
MSG_TIME |
static int |
NODE_CLOSED |
static int |
NODE_DISABLED |
static int |
NODE_PAUSE |
static int |
NODE_READY |
static int |
NODE_RETRYING |
static int |
NODE_RUNNING |
static int |
NODE_STANDBY |
static int |
NODE_STOPPED |
static int |
OUT_CAPACITY |
static int |
OUT_COUNT |
static int |
OUT_DEQ |
static int |
OUT_EXTRA |
static int |
OUT_LENGTH |
static int |
OUT_MODE |
static int |
OUT_NRULE |
static int |
OUT_OFFSET |
static int |
OUT_ORULE |
static int |
OUT_QDEPTH |
static int |
OUT_QIPPS |
static int |
OUT_QSTATUS |
static int |
OUT_QTIME |
static int |
OUT_SIZE |
static int |
OUT_STATUS |
static int |
OUT_TIME |
static int |
RULE_COUNT |
static int |
RULE_DMASK |
static int |
RULE_EXTRA |
static int |
RULE_GID |
static int |
RULE_MODE |
static int |
RULE_OID |
static int |
RULE_OPTION |
static int |
RULE_PEND |
static int |
RULE_PID |
static int |
RULE_SIZE |
static int |
RULE_STATUS |
static int |
RULE_TIME |
static int |
RULE_TTL |
Modifier and Type | Method and Description |
---|---|
int |
addRule(java.util.Map props)
adds a new rule defined by the property hash and returns the rule id
|
java.util.Map<java.lang.String,java.lang.Object> |
checkpoint()
returns the checkpoint hashmap for current state
|
void |
close()
closes all opened resources
|
boolean |
containsRule(java.lang.String ruleName)
returns true if the rule exists or false otherwise
|
boolean |
containsXQ(java.lang.String outlinkName)
returns true if the node has the outlink
|
int |
getCapacity()
returns the capacity of the uplink
|
int |
getCapacity(int i)
returns the capacity of the i-th outlink
|
int |
getDebugMode()
returns the debug mode of the node
|
int |
getDisplayMask()
returns the displayMask of the node
|
java.lang.String[] |
getDisplayProperties()
gets the display property names of the node
|
java.lang.String |
getLinkName()
returns the name of the uplink
|
java.lang.String |
getLinkName(int i)
returns the name of the i-th outlink
|
int |
getMetaData(int type,
int id,
long[] data)
copies certain type of MetaData from its id-th instance to the buffer
and returns the real id of the instance , or -1 on failure.
|
java.lang.String |
getName()
returns the name of the node
|
int |
getNumberOfOutLinks()
returns the total number of outlinks
|
int |
getNumberOfRules()
returns the total number of RuleSets
|
java.lang.String |
getOperation()
returns the string of the operation
|
int |
getOutLinkBoundary()
returns the lowest id of outlinks for collectibles
|
java.lang.String |
getRuleName(int i)
returns the name of the i-th RuleSet
|
int |
getStatus()
returns the status of the node
|
int |
getXAMode()
returns the transaction mode of the uplink
|
int |
getXAMode(int i)
returns the transaction mode of the i-th outlink
|
boolean |
internalXQSupported()
returns true if the node supports internal XQueues for outlinks
|
java.util.Map<java.lang.String,java.lang.String> |
list(java.lang.String outlinkName,
int type)
lists all NEW messages in the given outlink of the node and returns
a Map or null if the outlink is not defined.
|
java.util.Map<java.lang.String,java.lang.String> |
listPendings(XQueue uplink,
int type)
lists all PROPAGATING or PENDING messages of the node in the uplink
and returns a Map or null if the uplink is not for the node.
|
void |
propagate(XQueue in,
XQueue[] out)
gets the JMS messages from the input XQueue and processes them one by
one.
|
int |
refreshRule(java.lang.String ruleName,
XQueue in)
refreshes the external rules and returns the number of rules updated
|
int |
removeRule(java.lang.String ruleName,
XQueue in)
removes the rule and returns its id
|
int |
renameRule(java.lang.String oldName,
java.lang.String ruleName)
renames the rule and returns its id
|
int |
replaceRule(java.lang.String ruleName,
java.util.Map props,
XQueue in)
replaces the rule with the given property hash and returns its id
|
void |
resetMetaData(XQueue in,
XQueue[] out)
cleans up and resets all MetaData for XQs and messages
|
void |
restore(java.util.Map<java.lang.String,java.lang.Object> chkpt)
restores the state from a checkpointed hashmap
|
int |
rotateRule(java.lang.String ruleName)
moves the rule to the end of list and returns its id
|
void |
setDebugMode(int debug)
sets the debug mode of the node
|
void |
setDisplayMask(int mask)
sets the displayMask of the node
|
void |
setDisplayProperties(java.lang.String[] keys)
sets the display property names of the node
|
void |
setStatus(int status)
sets the status of the node
|
java.lang.String |
show(java.lang.String outlinkName,
int id,
int type)
browses the message at the id-th cell from the given outlink and
returns the detail text in the given format type
|
javax.jms.Message |
takeback(java.lang.String outlinkName,
int id)
removes the message at the id-th cell from the given outlink and
returns the message upon success
|
int |
updateParameters(java.util.Map props)
updates the parameters of the node and returns number of them changed
|
static final int MSG_CID
static final int MSG_OID
static final int MSG_BID
static final int MSG_RID
static final int MSG_TID
static final int MSG_TIME
static final int OUT_NRULE
static final int OUT_ORULE
static final int OUT_OFFSET
static final int OUT_LENGTH
static final int OUT_CAPACITY
static final int OUT_SIZE
static final int OUT_COUNT
static final int OUT_DEQ
static final int OUT_STATUS
static final int OUT_MODE
static final int OUT_EXTRA
static final int OUT_TIME
static final int OUT_QDEPTH
static final int OUT_QIPPS
static final int OUT_QSTATUS
static final int OUT_QTIME
static final int RULE_OID
static final int RULE_PID
static final int RULE_GID
static final int RULE_PEND
static final int RULE_SIZE
static final int RULE_COUNT
static final int RULE_STATUS
static final int RULE_TTL
static final int RULE_MODE
static final int RULE_OPTION
static final int RULE_DMASK
static final int RULE_EXTRA
static final int RULE_TIME
static final int META_MSG
static final int META_OUT
static final int META_MAP
static final int META_RULE
static final int META_XQ
static final int ASSET_XQ
static final int ASSET_URI
static final int ASSET_THR
static final int NODE_READY
static final int NODE_RUNNING
static final int NODE_RETRYING
static final int NODE_PAUSE
static final int NODE_STANDBY
static final int NODE_DISABLED
static final int NODE_STOPPED
static final int NODE_CLOSED
void propagate(XQueue in, XQueue[] out) throws javax.jms.JMSException
javax.jms.JMSException
java.lang.String getOperation()
java.lang.String getName()
int getNumberOfOutLinks()
int getOutLinkBoundary()
java.lang.String getLinkName()
java.lang.String getLinkName(int i)
int getCapacity()
int getCapacity(int i)
int getXAMode()
int getXAMode(int i)
int getStatus()
void setStatus(int status)
int getNumberOfRules()
java.lang.String getRuleName(int i)
int getDisplayMask()
void setDisplayMask(int mask)
int getDebugMode()
void setDebugMode(int debug)
java.lang.String[] getDisplayProperties()
void setDisplayProperties(java.lang.String[] keys)
int updateParameters(java.util.Map props)
int addRule(java.util.Map props)
int removeRule(java.lang.String ruleName, XQueue in)
int replaceRule(java.lang.String ruleName, java.util.Map props, XQueue in)
int renameRule(java.lang.String oldName, java.lang.String ruleName)
int rotateRule(java.lang.String ruleName)
int refreshRule(java.lang.String ruleName, XQueue in)
boolean containsRule(java.lang.String ruleName)
boolean containsXQ(java.lang.String outlinkName)
boolean internalXQSupported()
java.util.Map<java.lang.String,java.lang.String> listPendings(XQueue uplink, int type)
java.util.Map<java.lang.String,java.lang.String> list(java.lang.String outlinkName, int type)
java.lang.String show(java.lang.String outlinkName, int id, int type)
javax.jms.Message takeback(java.lang.String outlinkName, int id)
int getMetaData(int type, int id, long[] data)
void resetMetaData(XQueue in, XQueue[] out)
java.util.Map<java.lang.String,java.lang.Object> checkpoint()
void restore(java.util.Map<java.lang.String,java.lang.Object> chkpt)
void close()