|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.robots.util.RemoteActionStatusCallbackImpl
public class RemoteActionStatusCallbackImpl
Field Summary | |
---|---|
static java.lang.String |
EXCEPTION_INFO
|
Constructor Summary | |
---|---|
RemoteActionStatusCallbackImpl(java.lang.String requestID,
Locator receiverLocator,
java.lang.String receiverName)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
CallbackTransportInfo |
getTransportCallback()
|
protected void |
logMessage(java.lang.String msg)
|
protected void |
logMessage(java.lang.String msg,
java.lang.Exception e)
|
void |
onAborted(java.util.Calendar time,
java.lang.Object reason)
This method is invoked when the requested action is aborted. |
void |
onAccepted(java.util.Calendar time,
java.lang.Object additionalInfo)
This method is invoked when the request is accepted by the receiver. |
void |
onCompleted(java.util.Calendar time,
java.lang.Object result)
This method is invoked upon completion of the request. |
void |
onRefused(java.util.Calendar time,
java.lang.Object reason)
This method is invoked when the request is refused by the receiver. |
void |
onStarted(java.util.Calendar time,
java.lang.Object startInfo)
This method is invoked when the requested action is aborted. |
void |
reset()
Reset callback settings. |
void |
sendRequestToUser(MethodCallRequestMsg request)
|
void |
setSenderID(java.lang.String senderID)
|
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 |
Field Detail |
---|
public static final java.lang.String EXCEPTION_INFO
Constructor Detail |
---|
public RemoteActionStatusCallbackImpl(java.lang.String requestID, Locator receiverLocator, java.lang.String receiverName)
Method Detail |
---|
public void onAccepted(java.util.Calendar time, java.lang.Object additionalInfo)
onAccepted
in interface InfoStatusCallback
time
- Calendar time of acceptance.additionalInfo
- Object containing additional (optional) info about the acceptance.public void onRefused(java.util.Calendar time, java.lang.Object reason)
onRefused
in interface InfoStatusCallback
time
- Calendar time of refusal.reason
- Object containing the reason for refusing the request.public void onStarted(java.util.Calendar time, java.lang.Object startInfo)
onStarted
in interface ActionStatusCallback
time
- Calendar time of aborting an action.reason
- Object containing the reason for aborting an action.public void onCompleted(java.util.Calendar time, java.lang.Object result)
onCompleted
in interface InfoStatusCallback
time
- Calendar time of information/action completion.result
- Object containing the result of the requested action.public void onAborted(java.util.Calendar time, java.lang.Object reason)
onAborted
in interface ActionStatusCallback
time
- Calendar time of aborting an action.reason
- Object containing the reason for aborting an action.public void reset()
reset
in interface InfoStatusCallback
public void setTransportInfo(MessageTransportService msgTransportService, Locator senderLocator, java.lang.String senderName)
setTransportInfo
in interface CallbackTransportInfo
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.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public CallbackTransportInfo getTransportCallback()
getTransportCallback
in interface RemoteActionStatusCallback
public void sendRequestToUser(MethodCallRequestMsg request)
public void setSenderID(java.lang.String senderID)
senderID
- String containing the unique id of the robot sending updates.protected void logMessage(java.lang.String msg)
protected void logMessage(java.lang.String msg, java.lang.Exception e)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |