org.lsst.ccs.bus
Class CommandReply

java.lang.Object
  extended by org.lsst.ccs.bus.BusMessage
      extended by org.lsst.ccs.bus.CommandAckOrReply
          extended by org.lsst.ccs.bus.CommandReply
All Implemented Interfaces:
Serializable, BusPayload, CommandBusMessage

public class CommandReply
extends CommandAckOrReply
implements Serializable

Reply to command. To be decided : sent on the command bus, or sent point to point to sender on temporary destination?

See Also:
Serialized Form

Nested Class Summary
static class CommandReply.CommandStatus
           
 
Field Summary
 
Fields inherited from class org.lsst.ccs.bus.BusMessage
detailLevel, origin, priorityLevel, summary, timeStamp
 
Constructor Summary
CommandReply(Command command, Object reply, CommandReply.CommandStatus status, String origin)
           
CommandReply(Object reply, CommandReply.CommandStatus status)
           
 
Method Summary
 String getMessageType()
           
 Object getReply()
           
 CommandReply.CommandStatus getStatus()
           
 String toString()
           
 
Methods inherited from class org.lsst.ccs.bus.CommandAckOrReply
getCorrelId, getDestination, getOriginalCommand, setCorrelId, setDestination, setOriginalCommand
 
Methods inherited from class org.lsst.ccs.bus.BusMessage
getDetailLevel, getOrigin, getPriorityLevel, getSummary, getTimeStamp, setDetailLevel, setOrigin, setPriorityLevel, setSummary, setTimeStamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandReply

public CommandReply(Object reply,
                    CommandReply.CommandStatus status)

CommandReply

public CommandReply(Command command,
                    Object reply,
                    CommandReply.CommandStatus status,
                    String origin)
Method Detail

getMessageType

public String getMessageType()
Specified by:
getMessageType in class BusMessage

getStatus

public CommandReply.CommandStatus getStatus()
Returns:
the status

getReply

public Object getReply()
Returns:
the reply

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 LSST. All Rights Reserved.