kaos.robots.util
Class ResultCallbackImpl
java.lang.Object
kaos.robots.util.ResultCallbackImpl
- All Implemented Interfaces:
- java.io.Serializable, ResultCallback, CallbackTransportInfo
public class ResultCallbackImpl
- extends java.lang.Object
- implements ResultCallback
- See Also:
- Serialized Form
Constructor Summary |
ResultCallbackImpl(java.lang.String requestID,
Locator receiverLocator,
java.lang.String receiverName)
|
Method Summary |
boolean |
equals(java.lang.Object o)
|
protected void |
logMessage(java.lang.String msg)
|
protected void |
logMessage(java.lang.String msg,
java.lang.Exception e)
|
void |
receiveResult(java.lang.Object result)
Send the action result to the requestor. |
void |
setTransportInfo(MessageTransportService msgTransportService,
Locator senderLocator,
java.lang.String senderName)
Set the transport parameters of the sender, so the callback object will be able to
send messages back. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultCallbackImpl
public ResultCallbackImpl(java.lang.String requestID,
Locator receiverLocator,
java.lang.String receiverName)
receiveResult
public void receiveResult(java.lang.Object result)
- Send the action result to the requestor.
- Specified by:
receiveResult
in interface ResultCallback
- Parameters:
Result
- Object containing result of the requested action. If the action fails due to an Exception,
the result will contain the Exception.
setTransportInfo
public void setTransportInfo(MessageTransportService msgTransportService,
Locator senderLocator,
java.lang.String senderName)
- Set the transport parameters of the sender, so the callback object will be able to
send messages back.
- Specified by:
setTransportInfo
in interface CallbackTransportInfo
- Parameters:
msgTransportService
- MessageTransportService that can be used to send messages out.senderLocator
- Locator of the sender to include in all outgoing TransportMessages.senderName
- TString containing the sender name to include in all outgoing TransportMessages.
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
logMessage
protected void logMessage(java.lang.String msg)
logMessage
protected void logMessage(java.lang.String msg,
java.lang.Exception e)