|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.core.service.util.RemoteActionCallbackImpl
public class RemoteActionCallbackImpl
RemoteActionCallbackImpl is called by an action executor at the various stages of executing an action. It passes the action execution status to the requestor of the action.
| Field Summary | |
|---|---|
static java.lang.String |
EXCEPTION_INFO
|
| Constructor Summary | |
|---|---|
RemoteActionCallbackImpl(java.lang.String requestID,
Locator receiverLocator,
java.lang.String receiverName)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
CallbackTransportInfo |
getTransportCallback()
|
int |
hashCde()
|
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 |
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 RemoteActionCallbackImpl(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 InfoStatusCallbacktime - 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 InfoStatusCallbacktime - 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 ActionStatusCallbacktime - 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 InfoStatusCallbacktime - 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 ActionStatusCallbacktime - 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 CallbackTransportInfomsgTransportService - 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.Objectpublic int hashCde()
public CallbackTransportInfo getTransportCallback()
getTransportCallback in interface RemoteActionStatusCallbackpublic 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 | ||||||||