|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SocketServerListener
Interface definition for a "local" SAFS Droid Automation Engine "controller" (DJavaHook) to receive asynchronous notification of SocketServer events and messages from a remote SAFS Droid Automation Engine running on an Android device or emulator.
DJavaHook
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_NAME
|
Method Summary | |
---|---|
void |
onReceiveComment(java.lang.String message)
Remote client has sent a loggable status comment message. |
void |
onReceiveDetail(java.lang.String message)
Remote client has sent a loggable status detail message. |
void |
onReceiveException(java.lang.String message)
Remote client has thrown/issued an Exception message. |
void |
onReceiveMessage(java.lang.String message)
Remote client has sent an arbitrary message. |
void |
onReceiveReady()
Remote client has issued the READY event |
void |
onReceiveResult(int rc,
java.lang.String info)
Remote client has issued the RESULT event and is returning a simple statuscode and statusinfo response. |
void |
onReceiveResultProperties(java.util.Properties result)
Remote client has issued the RESULT event and is returning result information in Properties. |
void |
onReceiveRunning()
Remote client has issued the RUNNING event--usually resulting from a DISPATCH event. |
void |
onReceiveSPCMap(java.lang.String message)
Remote client has sent Process Container App Map Info to log to the App Map output file. |
void |
onReceiveSPCOut(java.lang.String message)
Remote client has sent Process Container Object Info to log to the object output file. |
Methods inherited from interface org.safs.sockets.ConnectionListener |
---|
onReceiveConnection, onReceiveLocalShutdown, onReceiveRemoteShutdown |
Methods inherited from interface org.safs.sockets.NamedListener |
---|
getListenerName |
Field Detail |
---|
static final java.lang.String DEFAULT_NAME
Method Detail |
---|
void onReceiveSPCOut(java.lang.String message)
message
- DroidEngine.sendSPCOut(String)
,
MessengerService.onEngineSPCOUT(String)
,
JavaSocketsHook.onReceiveSPCOut(String)
void onReceiveSPCMap(java.lang.String message)
message
- DroidEngine.sendSPCMap(String)
,
MessengerService.onEngineSPCMAP(String)
,
JavaSocketsHook.onReceiveSPCMap(String)
void onReceiveReady()
DroidEngine.sendReady()
,
MessengerService.onEngineReady()
,
JavaSocketsHook.onReceiveReady()
void onReceiveRunning()
DroidEngine.sendRunning()
,
MessengerService.onEngineRunning()
,
JavaSocketsHook.onReceiveRunning()
void onReceiveResult(int rc, java.lang.String info)
rc
- -- int statuscodeinfo
- -- String statusinfo. Can be null. Can be an empty string.DroidEngine.sendServiceResult(int, String)
,
MessengerService.onEngineResult(int, String)
,
JavaSocketsHook.onReceiveResult(int, String)
void onReceiveResultProperties(java.util.Properties result)
Properties
- list containing the results properties.
Minimally, this would include:
status code in String format.
It might also include logging information:
status info.
in String format.
message comment already translated (not to be converted.)
message detail already translated (not to be converted.)
Alternatively, logcomment and/or logdetail might be returned as keys and params for one of our SAFSTextResourceBundles (Generic or Failed):
message to convert comment from SAFSTextResourceBundle.
message to convert comment from failedSAFSTextResourceBundle.
message params to use during convert (arg1,arg2,arg3,etc.)
message to convert comment from SAFSTextResourceBundle.
message to convert comment from failedSAFSTextResourceBundle.
message params to use during convert (arg1,arg2,arg3,etc.)
DroidEngine.sendServiceResult(java.util.Properties)
,
MessengerService.onEngineResultProps(char[])
,
JavaSocketsHook.onReceiveResultProperties(java.util.Properties)
void onReceiveComment(java.lang.String message)
message
- DroidEngine.sendComment(String)
,
MessengerService.onEngineComment(String)
,
JavaSocketsHook.onReceiveComment(String)
void onReceiveDetail(java.lang.String message)
message
- DroidEngine.sendDetail(String)
,
MessengerService.onEngineDetail(String)
,
JavaSocketsHook.onReceiveDetail(String)
void onReceiveException(java.lang.String message)
message
- DroidEngine.sendException(String)
,
MessengerService.onEngineException(String)
,
JavaSocketsHook.onReceiveException(String)
void onReceiveMessage(java.lang.String message)
message
- DroidEngine.sendMessage(String)
,
MessengerService.onEngineMessage(String)
,
JavaSocketsHook.onReceiveMessage(String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |