public final class CommandRequest extends CommandMessage<org.lsst.ccs.command.BasicCommand,String>
| Constructor and Description |
|---|
CommandRequest(String destination,
org.lsst.ccs.command.BasicCommand command)
Create a BasicCommandMessage from an existing BasicCommand.
|
CommandRequest(String destination,
String command)
Create a BasicCommandMessage from a string representation of a command: e.g.
|
CommandRequest(String destination,
String command,
Object... args)
Create a BasicCommandMessage from a string representation of a command: e.g.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
encodeObject(org.lsst.ccs.command.BasicCommand obj)
Subclasses must provide a specific implementation of the encoding process.
|
org.lsst.ccs.command.BasicCommand |
getBasicCommand()
Utility method to get the embedded BasicCommand.
|
int |
getLevel()
Get the level associated to this command request.
|
AgentLock |
getLock()
Get the lock associated to this command request.
|
void |
setLockAndLevel(AgentLock lock,
int level)
Associate lock and level sender's information to this command request.
|
String |
toString() |
getCorrelationId, getDestinationgetCCSTimeStamp, getClassName, getDeSerializationTime, getEncodedData, getObject, getOriginAgentInfo, getSerializationTime, getTransferDuration, setOriginAgentInfopublic CommandRequest(String destination, String command)
destination - The destination of this command.command - The string representation of a command. A BasicCommand object will be created internally.public CommandRequest(String destination, String command, Object... args)
destination - The destination of this command.command - The string representation of a command. A BasicCommand object will be created internally.args - The array of arguments to the command.public CommandRequest(String destination, org.lsst.ccs.command.BasicCommand command)
destination - The destination of this command.command - The BasicCommand object to be wrapper.protected String encodeObject(org.lsst.ccs.command.BasicCommand obj)
BusMessageencodeObject in class BusMessage<org.lsst.ccs.command.BasicCommand,String>obj - The Serializable object embedded in the BusMessage.public org.lsst.ccs.command.BasicCommand getBasicCommand()
EmbeddedObjectDeserializationException - if the embedded object
cannot be deserializedpublic AgentLock getLock()
public int getLevel()
public void setLockAndLevel(AgentLock lock, int level)
lock - level - public String toString()
toString in class BusMessage<org.lsst.ccs.command.BasicCommand,String>Copyright © 2019 LSST. All rights reserved.