public class ServiceNode extends Node
assetList, bufferSize, callbackMethod, capacity, cbw, cells, cfgList, chkptExpiration, debug, DEBUG_COLL, DEBUG_DIFF, DEBUG_FBAK, DEBUG_INIT, DEBUG_PASS, DEBUG_PROP, DEBUG_REPT, DEBUG_UPDT, displayMask, displayPropertyName, linkName, LOAD_HIGH, LOAD_LOW, LOAD_MEDIUM, msgList, name, operation, RESET_ALL, RESET_MAP, RESET_NONE, RESET_SOME, ruleList, status, TYPE_ACTION, TYPE_AGGREGATE, TYPE_BYPASS, TYPE_CACHE, TYPE_COLLECT, TYPE_DELIVER, TYPE_FORMAT, TYPE_JSONPATH, TYPE_JSONT, TYPE_MAPREDUCE, TYPE_NONE, TYPE_PARSER, TYPE_PICKUP, TYPE_PIPE, TYPE_PUBLISH, TYPE_ROUNDROBIN, TYPE_SCREEN, TYPE_SCRIPT, TYPE_SERVICE, TYPE_SORT, TYPE_SPLIT, TYPE_SPREAD, TYPE_WEIGHTED, TYPE_XPATH, TYPE_XSLT, waitTime, xaMode
ASSET_THR, ASSET_URI, ASSET_XQ, META_MAP, META_MSG, META_OUT, META_RULE, META_XQ, MSG_BID, MSG_CID, MSG_OID, MSG_RID, MSG_TID, MSG_TIME, NODE_CLOSED, NODE_DISABLED, NODE_PAUSE, NODE_READY, NODE_RETRYING, NODE_RUNNING, NODE_STANDBY, NODE_STOPPED, OUT_CAPACITY, OUT_COUNT, OUT_DEQ, OUT_EXTRA, OUT_LENGTH, OUT_MODE, OUT_NRULE, OUT_OFFSET, OUT_ORULE, OUT_QDEPTH, OUT_QIPPS, OUT_QSTATUS, OUT_QTIME, OUT_SIZE, OUT_STATUS, OUT_TIME, RULE_COUNT, RULE_DMASK, RULE_EXTRA, RULE_GID, RULE_MODE, RULE_OID, RULE_OPTION, RULE_PEND, RULE_PID, RULE_SIZE, RULE_STATUS, RULE_TIME, RULE_TTL
Constructor and Description |
---|
ServiceNode(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
void |
callback(java.lang.String key,
java.lang.String id)
It marks the cell in cells with key and id.
|
void |
close()
It closes all resources and cleans up all list, cache, metadata, etc.
|
void |
doPublish(XQueue xq,
QList subList,
Template template)
It keeps publishing until its end of life
|
protected int |
feedback(XQueue in,
long milliSec)
returns number of done messages removed from in
|
protected void |
finalize() |
protected java.util.Map<java.lang.String,java.lang.Object> |
initRuleset(long tm,
java.util.Map ph,
long[] ruleInfo)
It initializes a new ruleset with the ruleInfo and returns the rule upon
success.
|
boolean |
internalXQSupported()
always returns true since it supports dynamic XQs
|
protected int |
passthru(long currentTime,
javax.jms.Message msg,
XQueue in,
int rid,
int oid,
int cid,
int tid)
passes the message from an input XQ over to an output XQ as the
request for a new persister or receiver.
|
void |
propagate(XQueue in,
XQueue[] out)
picks up a message from input queue and evaluates its content to
decide which output queue to propagate
|
void |
proxy(java.util.Map client)
It continuously reads byte stream from the socket and package
them into JMS Messages.
|
int |
removeRule(java.lang.String key,
XQueue in)
It removes the rule from the ruleList and returns the rule id upon
success.
|
int |
replaceRule(java.lang.String key,
java.util.Map ph,
XQueue in)
It replaces the existing rule of the key and returns its id upon success.
|
void |
resetMetaData(XQueue in,
XQueue[] out)
cleans up MetaData for all XQs and messages
|
protected boolean |
takebackEnabled() |
int |
updateParameters(java.util.Map props)
It updates the parameters of the node with the given property map.
|
addRule, checkpoint, collectAll, containsRule, containsXQ, forcethru, getCapacity, getCapacity, getDebugMode, getDisplayMask, getDisplayProperties, getLinkName, getLinkName, getMetaData, getName, getNumberOfOutLinks, getNumberOfRules, getOperation, getOutLinkBoundary, getRuleName, getStatus, getXAMode, getXAMode, list, listPendings, refreshRule, renameRule, restore, rotateRule, setDebugMode, setDisplayMask, setDisplayProperties, setStatus, show, takeback
public int updateParameters(java.util.Map props)
Node
updateParameters
in interface MessageNode
updateParameters
in class Node
protected java.util.Map<java.lang.String,java.lang.Object> initRuleset(long tm, java.util.Map ph, long[] ruleInfo)
initRuleset
in class Node
public int removeRule(java.lang.String key, XQueue in)
removeRule
in interface MessageNode
removeRule
in class Node
public int replaceRule(java.lang.String key, java.util.Map ph, XQueue in)
replaceRule
in interface MessageNode
replaceRule
in class Node
public void propagate(XQueue in, XQueue[] out) throws javax.jms.JMSException
propagate
in interface MessageNode
propagate
in class Node
javax.jms.JMSException
public void proxy(java.util.Map client)
public void doPublish(XQueue xq, QList subList, Template template)
protected int passthru(long currentTime, javax.jms.Message msg, XQueue in, int rid, int oid, int cid, int tid)
protected int feedback(XQueue in, long milliSec)
public void callback(java.lang.String key, java.lang.String id)
public void resetMetaData(XQueue in, XQueue[] out)
resetMetaData
in interface MessageNode
resetMetaData
in class Node
public boolean internalXQSupported()
internalXQSupported
in interface MessageNode
internalXQSupported
in class Node
protected boolean takebackEnabled()
takebackEnabled
in class Node
public void close()
Node
close
in interface MessageNode
close
in class Node