T - Template for the embedded reply object. It must be Serializable.public class CommandReply<T extends Serializable> extends CommandMessage<T,String>
| Constructor and Description |
|---|
CommandReply(CommandRequest command,
T reply)
Main CommandReply constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
encodeObject(T obj)
Subclasses must provide a specific implementation of the encoding process.
|
String |
getEncodedData()
Get the Encoded version of the embedded Object.
|
Object |
getReply()
Utility method to get the reply contained in this CommandReply.
|
getCorrelationId, getDestinationgetClassName, getObject, getOriginAgentInfo, getTimeStamp, setOriginAgentInfo, toStringpublic CommandReply(CommandRequest command, T reply)
command - The CommandRequest that originated the execution.reply - The result of the execution of the CommandRequest. If not successful
the reply is a Throwable.public Object getReply()
EmbeddedObjectDeserializationException - if the embedded object cannot
be deserialized.public String getEncodedData()
BusMessagegetEncodedData in class BusMessage<T extends Serializable,String>protected String encodeObject(T obj)
BusMessageencodeObject in class BusMessage<T extends Serializable,String>obj - The Serializable object embedded in the BusMessage.Copyright © 2016 LSST. All rights reserved.