|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jayway.android.robotium.remotecontrol.client.MessengerRunner
public class MessengerRunner
It is used to handle the messages from 'TCP Messenger' in a separated Thread.
AbstractTestRunner
,
RobotiumTestRunner
Field Summary | |
---|---|
static java.lang.String |
listenerName
|
Constructor Summary | |
---|---|
MessengerRunner(Messenger mService)
|
|
MessengerRunner(Messenger mService,
CommandListener commandListener)
|
Method Summary | |
---|---|
void |
debug(java.lang.String message)
|
CommandListener |
getCommandListener()
|
DebugListener |
getDebugListener()
|
java.lang.String |
getListenerName()
Unique name to identify the listener. |
Messenger |
getmService()
|
void |
onReceiveDebug(java.lang.String message)
A remote client has sent a Debug message to be logged by the listener. |
void |
onRemoteConnected()
|
void |
onRemoteDisconnected()
|
void |
onRemoteDispatchFile(java.lang.String message)
|
void |
onRemoteDispatchProps(java.util.Properties props)
|
void |
onRemoteEngineShutdown()
Remote request/command to tell the engine to perform a normal shutdown. |
void |
onRemoteMessage(java.lang.String message)
|
void |
onRemoteShutdown()
Notification that the Remote Controller has shutdown and is no longer available. |
void |
onServiceShutdown()
Notification that the Messenger Service has shutdown and is no longer available. |
void |
prepareNotification(int what)
MessengerHandler preparing information for Thread switching. |
void |
run()
Primary looping test thread remains active for as long as we are bound to a TCP Messenger Service. |
void |
setCommandListener(CommandListener commandListener)
|
void |
setDebugListener(DebugListener debugListener)
|
void |
setmService(Messenger mService)
|
boolean |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String listenerName
Constructor Detail |
---|
public MessengerRunner(Messenger mService)
public MessengerRunner(Messenger mService, CommandListener commandListener)
Method Detail |
---|
public java.lang.String getListenerName()
NamedListener
getListenerName
in interface NamedListener
public Messenger getmService()
public void setmService(Messenger mService)
public CommandListener getCommandListener()
public void setCommandListener(CommandListener commandListener)
public DebugListener getDebugListener()
public void setDebugListener(DebugListener debugListener)
public void debug(java.lang.String message)
public void onReceiveDebug(java.lang.String message)
DebugListener
onReceiveDebug
in interface DebugListener
public void prepareNotification(int what)
prepareNotification
in interface MessengerListener
public void onRemoteDispatchProps(java.util.Properties props)
onRemoteDispatchProps
in interface MessengerListener
public void onRemoteDispatchFile(java.lang.String message)
onRemoteDispatchFile
in interface MessengerListener
public void onRemoteMessage(java.lang.String message)
onRemoteMessage
in interface MessengerListener
public void onRemoteConnected()
onRemoteConnected
in interface MessengerListener
public void onRemoteDisconnected()
onRemoteDisconnected
in interface MessengerListener
public void onRemoteShutdown()
onRemoteShutdown
in interface MessengerListener
public void onServiceShutdown()
onServiceShutdown
in interface MessengerListener
public void onRemoteEngineShutdown()
onRemoteEngineShutdown
in interface MessengerListener
public void run()
run
in interface java.lang.Runnable
public boolean start()
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |