|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.test.threadServices.ThreadLists
org.ourgrid.test.threadServices.ExtendedThreadLists
public class ExtendedThreadLists
Extends the threadlists to add the stillidle functionality.
Constructor Summary | |
---|---|
ExtendedThreadLists()
|
Method Summary | |
---|---|
void |
includeInRunningThreads(java.lang.Thread t)
Include in running threads a given thread. |
void |
includeInStartedThreads(java.lang.Thread t)
Include in running threads a given thread. |
protected void |
removeFromWaitingThreads(java.lang.Thread t)
Removes a certain thread from the list of waiting threads. |
boolean |
stillIdle()
Verifies if no thread has waken up after waitUntilWorkIsDoneNotifying(). |
void |
waitUntilWorkIsDoneNotifying()
This method puts the current running thread to wait until all application running threads are waiting. |
Methods inherited from class org.ourgrid.test.threadServices.ThreadLists |
---|
addWaiting, isThreadRunning, isThreadStarted, isThreadWaiting, notifyAllWaitingThreads, notifyOneWaitingThread, println, printRunningThreads, printStartedThreads, printWaitingThreads, removeRunnableThread, waitUntilAllThreadsDie, waitUntilThreadHasFinished, waitUntilThreadHasStartedRunning, waitUntilThreadIsWaiting |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtendedThreadLists()
Method Detail |
---|
public void waitUntilWorkIsDoneNotifying()
ThreadLists
waitUntilWorkIsDoneNotifying
in class ThreadLists
ThreadLists.waitUntilWorkIsDoneNotifying()
public void includeInRunningThreads(java.lang.Thread t)
ThreadLists
includeInRunningThreads
in class ThreadLists
t
- The thread to be included.ThreadLists.includeInRunningThreads(java.lang.Thread)
public void includeInStartedThreads(java.lang.Thread t)
ThreadLists
includeInStartedThreads
in class ThreadLists
t
- The thread to be included.ThreadLists.includeInStartedThreads(java.lang.Thread)
protected void removeFromWaitingThreads(java.lang.Thread t)
ThreadLists
removeFromWaitingThreads
in class ThreadLists
t
- The thread to be removed.ThreadLists.removeFromWaitingThreads(java.lang.Thread)
public boolean stillIdle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |