|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.mpool.test.LatchedThreadGroup
This class is useful for writing MultiThreaded test cases where you need to perform multithreaded load testing on a component.
An instance of will create a block of threads of the specified size. Each thread will be assigned to run a specified Runnable instance. The threads will then all wait at a latch until the go method is called. The go method will not return until all of the Runnables have completed.
| Nested Class Summary | |
private class |
LatchedThreadGroup.RunnerDeprecated. |
| Field Summary | |
private int |
m_completedCountDeprecated. |
private java.lang.Throwable |
m_exceptionDeprecated. |
private boolean |
m_latchedDeprecated. |
private java.lang.Object |
m_semaphoreDeprecated. |
private int |
m_startedCountDeprecated. |
private java.lang.Thread[] |
m_threadsDeprecated. |
| Fields inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|
| Constructor Summary | |
LatchedThreadGroup(java.lang.Runnable[] runnables)Deprecated. Creates a LatchedThreadGroup with a thread for each Runnable in the runnables array. |
|
LatchedThreadGroup(java.lang.Runnable runnable, int threadCount)Deprecated. Creates a LatchedThreadGroup with threadCount threads each running runnable. |
|
| Method Summary | |
private Logger |
getInnerLogger()Deprecated. Inner access method to getLogger() to work around a bug in the Javac compiler when getLogger() is called from the method of an inner class. |
long |
go()Deprecated. Causes all of the Runnables to start at the same instance. |
protected void |
resetMemory()Deprecated. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.Thread[] m_threads
private java.lang.Object m_semaphore
private int m_startedCount
private boolean m_latched
private int m_completedCount
private java.lang.Throwable m_exception
| Constructor Detail |
public LatchedThreadGroup(java.lang.Runnable[] runnables)
public LatchedThreadGroup(java.lang.Runnable runnable,
int threadCount)
| Method Detail |
protected void resetMemory()
public long go()
throws java.lang.Exception
java.lang.Exceptionprivate Logger getInnerLogger()
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||