|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.test.threadServices.ThreadServices
public class ThreadServices
Class that presents fake methods, that will be replaced by correct ones using an aspect (RunningThreadsMonitor) when it is included. If the code is not compiled using the aspects, the methods to wait will simply call sleep. Otherwise, this class methods will be replaced by the ones from threadServices.ThreadLists.
Constructor Summary | |
---|---|
ThreadServices()
|
Method Summary | |
---|---|
static boolean |
areAllThreadsWaiting()
|
static void |
printRunningThreads()
Prints the running threads. |
static void |
printStartedThreads()
Prints the started threads. |
static void |
printWaitingThreads()
Prints the waiting threads. |
static void |
throwNotUsingAspectsException()
Throws a RuntimeException indicating that the classes that use this package should be compiled using AspectJ compiler. |
static void |
waitThreadsDie()
Fake method. |
static void |
waitUntilThreadHasFinished(java.lang.Thread t)
|
static void |
waitUntilThreadHasStartedRunning(java.lang.Thread t)
|
static void |
waitUntilThreadIsWaiting(java.lang.Thread t)
|
static void |
waitUntilWorkIsDone()
This method simply waits the current threads finish their jobs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadServices()
Method Detail |
---|
public static void waitUntilWorkIsDone()
public static void waitUntilThreadHasFinished(java.lang.Thread t)
if using aspects.
public static void waitUntilThreadHasStartedRunning(java.lang.Thread t)
if using aspects.
public static void throwNotUsingAspectsException()
public static boolean areAllThreadsWaiting()
ThreadLists.areAllRunningThreadsWaiting()
public static void waitThreadsDie()
ThreadLists.waitUntilAllThreadsDie()
public static void waitUntilThreadIsWaiting(java.lang.Thread t)
ThreadLists.waitUntilThreadIsWaiting(Thread)
public static void printWaitingThreads()
ThreadLists.printWaitingThreads()
public static void printStartedThreads()
ThreadLists.printStartedThreads()
public static void printRunningThreads()
ThreadLists.printRunningThreads()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |