|
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.CommandWrapper
public final class CommandWrapper
Holds the command partially preparsed, this is an immutable object.
Examples what we need to parse:/node/heron/?freeMem /node/heron/sysprop/?java.vm.version /node/heron/client/joe/ses17/?queue/callback/maxEntriesSee the command requirement for a detailed description.
CommandWrapperTest
Field Summary | |
---|---|
(package private) java.lang.String[] |
args
"sysprop/?call[auth]=true" this is "true" for "sysprop/?setSomtthing=true&17" it is "true", "17" |
private java.lang.String |
argsString
"true&17" |
(package private) java.lang.String |
clusterNodeId
The second level -> "heron" |
private java.lang.String |
cmd
The original command (modified to be absolute) |
(package private) java.lang.String |
fifth
The fifth level -> "client/joe/17" or "client/joe/session/17" or "client/joe/?maxSessions" |
(package private) java.lang.String |
fourth
The fourth level -> "client/joe" |
private ServerScope |
glob
|
(package private) java.lang.String |
key
"sysprop/?call[auth]=true" this is "call[auth]" |
private static java.util.logging.Logger |
log
|
private java.lang.String |
ME
|
private java.lang.String |
myStrippedClusterNodeId
|
(package private) java.lang.String |
root
The first level -> "node" |
(package private) java.lang.String |
sixth
The sixth level -> "client/joe/ses17/?queue/callback/maxEntries" |
(package private) java.lang.String |
tail
The rest of the command -> "?java.vm.version" |
(package private) java.lang.String |
third
The third level -> "?freeMem" or "sysprop" or "client" or "topic" |
Constructor Summary | |
---|---|
CommandWrapper(ServerScope glob,
java.lang.String command)
this constructor is currently used for the get |
Method Summary | |
---|---|
java.lang.String[] |
getArgs()
|
java.lang.String |
getArgsString()
|
java.lang.String |
getClusterNodeId()
/node/heron/client/joe/ses17/?queue/callback/maxEntries |
java.lang.String |
getCommand()
|
java.lang.String |
getCommandStripAssign()
|
java.lang.String |
getFifthLevel()
/node/heron/client/joe/ses17/?queue/callback/maxEntries |
java.lang.String |
getKey()
|
java.lang.String |
getRoot()
/node/heron/client/joe/ses17/?callback/queue/maxEntries |
java.lang.String |
getSessionAttrLevel()
/node/heron/client/joe/ses17/?callback/queue/maxEntries |
java.lang.String |
getSessionIdLevel()
/node/heron/client/joe/ses17/?queue/callback/maxEntries |
java.lang.String |
getStrippedClusterNodeId()
Returns the cluster node id with removed "/" chars (if any where there). |
java.lang.String |
getTail()
|
java.lang.String |
getThirdLevel()
/node/heron/client/joe/ses17/?queue/callback/maxEntries |
java.lang.String |
getUserNameLevel()
/node/heron/client/joe/ses17/?queue/callback/maxEntries /node/heron/topic/?hello |
private void |
parse()
|
private void |
parseKeyValue()
set client/publish/1/?addRemoteProperty=arg1&arg2 |
void |
setArgs(java.lang.String[] args)
|
static java.lang.String |
stripCommand(ServerScope glob,
java.lang.String command)
Strips a given command (the oid of a queryKey before any any modification) by removing the starting '__cmd:' subtring. |
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 final java.lang.String ME
private final ServerScope glob
private static java.util.logging.Logger log
private final java.lang.String cmd
private final java.lang.String myStrippedClusterNodeId
java.lang.String root
java.lang.String clusterNodeId
java.lang.String third
java.lang.String fourth
java.lang.String fifth
java.lang.String sixth
java.lang.String tail
java.lang.String key
java.lang.String[] args
private java.lang.String argsString
Constructor Detail |
---|
public CommandWrapper(ServerScope glob, java.lang.String command) throws XmlBlasterException
glob
- command
- the oid must be adjusted inside if the qosData is null.
XmlBlasterException
Method Detail |
---|
private void parse() throws XmlBlasterException
XmlBlasterException
public final java.lang.String getStrippedClusterNodeId()
public final java.lang.String getRoot()
public final java.lang.String getClusterNodeId()
public final java.lang.String getThirdLevel()
public final java.lang.String getUserNameLevel()
/node/heron/client/joe/ses17/?queue/callback/maxEntries /node/heron/topic/?hello
public final java.lang.String getSessionIdLevel()
public final java.lang.String getFifthLevel()
public final java.lang.String getSessionAttrLevel()
public final java.lang.String getTail()
public final java.lang.String[] getArgs() throws XmlBlasterException
XmlBlasterException
- if no value foundpublic final java.lang.String getKey() throws XmlBlasterException
XmlBlasterException
- if no value foundprivate void parseKeyValue() throws XmlBlasterException
XmlBlasterException
public final java.lang.String getCommand()
public final java.lang.String getCommandStripAssign() throws XmlBlasterException
XmlBlasterException
public final java.lang.String toXml()
public final java.lang.String toXml(java.lang.String extraOffset)
extraOffset
- indenting of tags for nice outputpublic static java.lang.String stripCommand(ServerScope glob, java.lang.String command) throws XmlBlasterException
glob
- command
- the input string (the original oid) to be stripped.
XmlBlasterException
public java.lang.String getArgsString()
public void setArgs(java.lang.String[] args)
argsString
- The argsString to set.
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |