|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.test.threadServices.RunnerWaiterRunnable
public class RunnerWaiterRunnable
Class used for tests only. This is a thread that will always run, unless blocked or stopped manually.
Nested Class Summary | |
---|---|
static class |
RunnerWaiterRunnable.Status
Avalaible the statuses fot a RunnerWaiterRunnable . |
Constructor Summary | |
---|---|
RunnerWaiterRunnable()
Builda a new RunnerWaiterRunnable |
Method Summary | |
---|---|
java.lang.Thread |
getActualRunnerThread()
Get's the tread that is actually running. |
RunnerWaiterRunnable.Status |
getStatus()
Gets the current status of the SleeperWaker. |
void |
run()
|
void |
setMustStop()
Informs that this runnable must stop. |
void |
setWaiting()
Tells this RunnerWaiterRunnable to wait until told
otherwise. |
void |
startRunning()
Tells this RunnerWaiterRunnable to start running. |
void |
unsetWaiting()
Tells this RunnerWaiterRunnable to stop waiting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RunnerWaiterRunnable()
RunnerWaiterRunnable
Method Detail |
---|
public void startRunning()
RunnerWaiterRunnable
to start running.
public void setWaiting()
RunnerWaiterRunnable
to wait until told
otherwise.
public void unsetWaiting()
RunnerWaiterRunnable
to stop waiting.
public void setMustStop()
public RunnerWaiterRunnable.Status getStatus()
public java.lang.Thread getActualRunnerThread()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |