|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.engine.admin.extern.MomClientGateway
public final class MomClientGateway
The gateway allows to do administration with xmlBlaster messages.
XmlBlaster messages having an oid that starts with "__cmd:" are handled as administration messages.<key oid="__cmd:/node/heron/sysprop/?trace[core]"/>
Field Summary | |
---|---|
private CommandManager |
commandManager
|
private ServerScope |
glob
|
private static int |
instanceCounter
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
ME
|
Constructor Summary | |
---|---|
MomClientGateway()
|
Method Summary | |
---|---|
MsgUnit[] |
getCommand(SessionInfo sessionInfo,
QueryKeyData keyData,
QueryQosData qosData)
Called by RequestBroker on get() of command messages. |
java.lang.String |
getName()
Get a human readable name of this filter implementation |
boolean |
initialize(ServerScope glob,
CommandManager commandManager)
Creates the remote console server. |
java.lang.String |
setCommand(SessionInfo sessionInfo,
KeyData xmlKey,
MsgUnit msgUnit,
PublishQosServer publishQos,
boolean isClusterUpdate)
Called by RequestBroker on publish() of command messages. |
void |
shutdown()
|
java.lang.String |
toXml()
Dump state of this object into a XML ASCII string. |
java.lang.String |
toXml(java.lang.String extraOffset)
Dump state of this object into a XML ASCII string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String ME
private ServerScope glob
private static java.util.logging.Logger log
private CommandManager commandManager
private static int instanceCounter
Constructor Detail |
---|
public MomClientGateway()
Method Detail |
---|
public boolean initialize(ServerScope glob, CommandManager commandManager) throws XmlBlasterException
initialize
in interface I_ExternGateway
glob
- The Global handle of this xmlBlaster server instance.commandManager
- My manager
XmlBlasterException
public MsgUnit[] getCommand(SessionInfo sessionInfo, QueryKeyData keyData, QueryQosData qosData) throws XmlBlasterException
sessionInfo
- The clientcommand
- The key oid, for example "__cmd:/node/heron/?numClients"
XmlBlasterException
public java.lang.String setCommand(SessionInfo sessionInfo, KeyData xmlKey, MsgUnit msgUnit, PublishQosServer publishQos, boolean isClusterUpdate) throws XmlBlasterException
sessionInfo
- The clientxmlKey
- The key oid, for example "__cmd:/node/heron/?numClients=5"
XmlBlasterException
public java.lang.String getName()
I_ExternGateway
getName
in interface I_ExternGateway
public void shutdown()
shutdown
in interface I_ExternGateway
public final java.lang.String toXml()
public final java.lang.String toXml(java.lang.String extraOffset)
extraOffset
- indenting of tags for nice output
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |