|
JTR 4.0 API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjtr.test.TestRunManager
public class TestRunManager
This class is the manager of a JTR test.
Its responsabilites are:
1. creating a thread group within which all the IRunner
s will
execute
2. initializing the pool of IRunner
s accoding to the
content of the jtr.xml
file
3. starting all the IRunner
s
4. managing the pooling of the IRunners
after each epoch
IRunnerPooled
,
RunnerPool
,
RunnerPoolFiller
Field Summary | |
---|---|
protected int |
completedRunners
|
protected int |
epochs
|
protected int |
initialPoolSize
|
protected static org.apache.log4j.Logger |
logger
|
protected int |
partialCount
|
protected RunnerPool |
pool
|
protected java.lang.ThreadGroup |
runnersThreadGroup
|
protected TestConfig |
testConfig
|
protected TestOutcomeTable |
testOutcomeTable
|
protected java.lang.String |
TH_GRP_NAME
|
Constructor Summary | |
---|---|
TestRunManager(TestConfig testConfig)
Costructor. |
Method Summary | |
---|---|
void |
backIntoPool(IRunnerParameterized pRunner)
Once an IRunner has consumed its runs for a given epoch it
has to be put back into the pool waiting for the next epoch to come. |
protected void |
disposeResources()
|
protected IRunnerParameterized |
handleReinitialization(IRunnerParameterized pRunner)
The reinitialization of an IRunnerParameterized is
delegated to its associated IParamsAssigner . |
protected RunnerPool |
initializePool(TestConfig testConfig,
ITestCompletionListener testCmplLsnr)
Initialize the pool of IRunner s. |
void |
startTest()
Launches the test. |
protected void |
startThreads()
Starts all the IRunner s for the current epoch of the
current test |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TestConfig testConfig
protected java.lang.ThreadGroup runnersThreadGroup
protected java.lang.String TH_GRP_NAME
protected RunnerPool pool
protected int initialPoolSize
protected int epochs
protected int partialCount
protected int completedRunners
protected TestOutcomeTable testOutcomeTable
protected static org.apache.log4j.Logger logger
Constructor Detail |
---|
public TestRunManager(TestConfig testConfig)
testConfig
- The test configuration obtained from the jtr.xml
fileMethod Detail |
---|
public void startTest() throws TestFailedException
TestFailedException
protected RunnerPool initializePool(TestConfig testConfig, ITestCompletionListener testCmplLsnr) throws IRunnerCreationException, UnknownAssignmentPolicyException
IRunner
s.
testConfig
- The test configuration
IRunnerPooled
IRunnerCreationException
UnknownAssignmentPolicyException
protected void startThreads()
IRunner
s for the current epoch of the
current test
public void backIntoPool(IRunnerParameterized pRunner)
IRunner
has consumed its runs for a given epoch it
has to be put back into the pool waiting for the next epoch to come. jtr.xml
configuration
file. IRunner
s are back into the pool, the test
will start againg until the last epoch is reached.
backIntoPool
in interface IPoolManager
pRunner
- The IRunner
to be put back into the poolprotected IRunnerParameterized handleReinitialization(IRunnerParameterized pRunner)
IRunnerParameterized
is
delegated to its associated IParamsAssigner
.
pRunner
- IRunnerParameterized
protected void disposeResources()
|
The JTR Project is licensed under GPL version 2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |