Package com.swiftmq.mgmt
Class RouterConfigInstance
- java.lang.Object
-
- com.swiftmq.mgmt.Entity
-
- com.swiftmq.mgmt.EntityList
-
- com.swiftmq.mgmt.RouterConfigInstance
-
- All Implemented Interfaces:
Dumpable
public class RouterConfigInstance extends EntityList
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.swiftmq.mgmt.Entity
Entity.ClonableMap
-
-
Field Summary
-
Fields inherited from class com.swiftmq.mgmt.EntityList
DEL_COMMAND, NEW_COMMAND
-
Fields inherited from class com.swiftmq.mgmt.Entity
factory, SET_COMMAND
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RouterConfigInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEntity(Entity entity)
Add an Entity.void
clearConfigurations()
java.lang.String[]
executeCommand(java.lang.String[] context, java.lang.String[] cmd)
java.lang.String[]
executeCommand(java.lang.String[] context, java.lang.String[] cmd, Authenticator authenticator)
java.lang.String[]
executeInternalCommand(java.lang.String[] context, java.lang.String[] cmd)
java.lang.String[]
executeInternalCommand(java.lang.String[] context, java.lang.String[] cmd, Authenticator authenticator)
CommandRegistry
getCommandRegistry()
Returns the command registry.java.util.Map
getConfigurations()
java.lang.Object
getContext(java.lang.Object currentContext, java.lang.String[] context, int stacklevel)
int
getDumpId()
Returns a unique dump id for this object.protected boolean
isSetParent()
void
readContent(java.io.DataInput in)
Read the content of this object from the stream.void
setCommandRegistry(CommandRegistry commandRegistry)
java.lang.String
toJson()
void
writeContent(java.io.DataOutput out)
Write the content of this object to the stream.-
Methods inherited from class com.swiftmq.mgmt.EntityList
createCommands, createEntity, getTemplate, setEntityAddListener, setEntityRemoveListener, toString
-
Methods inherited from class com.swiftmq.mgmt.Entity
addCommand, addEntityWatchListener, addProperty, commandIncluded, createCopy, getContext, getDescription, getDisplayContext, getDisplayName, getDynamicObject, getDynamicPropNames, getEntities, getEntity, getEntityAddListener, getEntityNames, getEntityRemoveListener, getIcon, getName, getParent, getProperties, getProperty, getState, getUserObject, isDynamic, isUpgrade, notifyEntityWatchListeners, quote, readDump, readDumpByteArray, readDumpDumpable, readDumpDumpableEntityMap, readDumpDumpablePropMap, readDumpStringArray, removeCommand, removeDynamicEntity, removeEntities, removeEntity, removeEntityWatchListener, removeProperty, setDynamic, setDynamicObject, setDynamicPropNames, setImageArray, setName, setParent, setState, setUpgrade, setUserObject, writeDump, writeDump, writeDump, writeDump, writeDump
-
-
-
-
Method Detail
-
isSetParent
protected boolean isSetParent()
- Overrides:
isSetParent
in classEntity
-
getDumpId
public int getDumpId()
Description copied from interface:Dumpable
Returns a unique dump id for this object.- Specified by:
getDumpId
in interfaceDumpable
- Overrides:
getDumpId
in classEntityList
- Returns:
- unique dump id
-
writeContent
public void writeContent(java.io.DataOutput out) throws java.io.IOException
Description copied from interface:Dumpable
Write the content of this object to the stream.- Specified by:
writeContent
in interfaceDumpable
- Overrides:
writeContent
in classEntityList
- Parameters:
out
- output stream- Throws:
java.io.IOException
- if an error occurs
-
readContent
public void readContent(java.io.DataInput in) throws java.io.IOException
Description copied from interface:Dumpable
Read the content of this object from the stream.- Specified by:
readContent
in interfaceDumpable
- Overrides:
readContent
in classEntityList
- Parameters:
in
- input stream- Throws:
java.io.IOException
- if an error occurs
-
getCommandRegistry
public CommandRegistry getCommandRegistry()
Description copied from class:Entity
Returns the command registry.- Overrides:
getCommandRegistry
in classEntity
- Returns:
-
setCommandRegistry
public void setCommandRegistry(CommandRegistry commandRegistry)
- Parameters:
commandRegistry
-
-
addEntity
public void addEntity(Entity entity) throws EntityAddException
Description copied from class:Entity
Add an Entity.- Overrides:
addEntity
in classEntity
- Parameters:
entity
- entity.- Throws:
EntityAddException
- thrown by an EntityAddListener.
-
getConfigurations
public java.util.Map getConfigurations()
- Returns:
-
clearConfigurations
public void clearConfigurations()
-
getContext
public java.lang.Object getContext(java.lang.Object currentContext, java.lang.String[] context, int stacklevel)
-
executeInternalCommand
public java.lang.String[] executeInternalCommand(java.lang.String[] context, java.lang.String[] cmd)
-
executeInternalCommand
public java.lang.String[] executeInternalCommand(java.lang.String[] context, java.lang.String[] cmd, Authenticator authenticator)
-
executeCommand
public java.lang.String[] executeCommand(java.lang.String[] context, java.lang.String[] cmd)
-
executeCommand
public java.lang.String[] executeCommand(java.lang.String[] context, java.lang.String[] cmd, Authenticator authenticator)
-
toJson
public java.lang.String toJson()
- Overrides:
toJson
in classEntityList
-
-