public class CommandResult extends CommandReply
| Constructor and Description |
|---|
CommandResult(CommandRequest command,
Object reply,
String commandOriginatorId)
Constructor for successful execution.
|
CommandResult(CommandRequest command,
Throwable th,
String commandOriginatorId)
Constructor for a CommandResult that produced an exception.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getResult()
Get the result of the CommandRequest execution.
|
String |
toString() |
getCommand, getCommandOriginatorId, getReplygetCorrelId, getDestinationgetOriginAgentInfo, getSummary, getTimeStamp, setOriginAgentInfo, setSummarypublic CommandResult(CommandRequest command, Object reply, String commandOriginatorId)
command - The original CommandRequest. This is used for the correlation id.reply - The result of the execution. It can be null.commandOriginatorId - public CommandResult(CommandRequest command, Throwable th, String commandOriginatorId)
command - The original CommandRequest. This is used for the correlation id.th - The ExceptioncommandOriginatorId - public Object getResult()
Copyright © 2015 LSST. All rights reserved.