T - The template for the embedded object.public final class CommandResult<T extends Serializable> extends CommandReply<T>
| Constructor and Description |
|---|
CommandResult(CommandRequest command,
T reply)
Constructor for a CommandResult.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getResult()
Get the result of the CommandRequest execution.
|
String |
toString() |
boolean |
wasSuccessful()
Was the execution of the CommandRequest successful?
|
encodeObject, getEncodedData, getReplygetCorrelationId, getDestinationgetClassName, getObject, getOriginAgentInfo, getTimeStamp, setOriginAgentInfopublic CommandResult(CommandRequest command, T reply)
command - The original CommandRequest. This is used for the correlation id.reply - The result of the execution. It can be null.public Object getResult()
EmbeddedObjectDeserializationException - if the embedded object cannot
be deserialized.public boolean wasSuccessful()
public String toString()
toString in class BusMessage<T extends Serializable,String>Copyright © 2018 LSST. All rights reserved.