|
JTR 5.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 static org.apache.log4j.Logger |
logger
|
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()
Invoked when the epochs are over. |
protected int |
getCompletedRunners()
|
protected int |
getCurrentEpoch()
|
protected int |
getEpochs()
|
protected int |
getInitialPoolSize()
|
protected RunnerPool |
getPool()
|
protected java.lang.ThreadGroup |
getRunnersThreadGroup()
|
protected TestConfig |
getTestConfig()
|
protected TestOutcomeTable |
getTestOutcomeTable()
|
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. |
protected void |
setCompletedRunners(int val)
|
protected void |
setCurrentEpoch(int val)
|
protected void |
setEpochs(int val)
|
protected void |
setInitialPoolSize(int val)
|
protected void |
setPool(RunnerPool val)
|
protected void |
setRunnersThreadGroup(java.lang.ThreadGroup tg)
|
protected void |
setTestConfig(TestConfig val)
|
protected void |
setTestOutcomeTable(TestOutcomeTable val)
|
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 static final 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()
protected void setCurrentEpoch(int val)
protected int getCurrentEpoch()
protected void setEpochs(int val)
protected int getEpochs()
protected void setTestOutcomeTable(TestOutcomeTable val)
protected TestOutcomeTable getTestOutcomeTable()
protected void setPool(RunnerPool val)
protected RunnerPool getPool()
protected void setTestConfig(TestConfig val)
protected TestConfig getTestConfig()
protected void setInitialPoolSize(int val)
protected int getInitialPoolSize()
protected void setRunnersThreadGroup(java.lang.ThreadGroup tg)
protected java.lang.ThreadGroup getRunnersThreadGroup()
protected void setCompletedRunners(int val)
protected int getCompletedRunners()
|
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 |