jtr.remote.test
Class RemoteTestRunManager
java.lang.Object
jtr.test.TestRunManager
jtr.remote.test.RemoteTestRunManager
- All Implemented Interfaces:
- IPoolManager
public class RemoteTestRunManager
- extends TestRunManager
This specialization of the TestRunManager
class is able to locally launch
test-configurations received by remote JTR-nodes.
- Since:
- 4.0
- Version:
- 4.0
- Author:
- frusso
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteTestRunManager
public RemoteTestRunManager(TestConfig tc,
NodeInfo serverCL,
NodeInfo testOutcomeCollector)
- Constructor. Requires a test-configuration and a description of the JTR-node
acting as server class-loader.
- Parameters:
tc
- The test-configurationserverCL
- the server class-loadertestOutcomeCollector
-
startTest
public void startTest()
throws TestFailedException
- Description copied from class:
TestRunManager
- Launches the test.
- Overrides:
startTest
in class TestRunManager
- Throws:
TestFailedException
initializePool
protected RunnerPool initializePool(TestConfig testConfig)
throws IRunnerCreationException,
UnknownAssignmentPolicyException
- Throws:
IRunnerCreationException
UnknownAssignmentPolicyException
startThreads
protected void startThreads()
- Starts all the
IRunner
s for the current epoch of the
current test
- Overrides:
startThreads
in class TestRunManager
backIntoPool
public void backIntoPool(IRunnerParameterized pRunner)
- Description copied from class:
TestRunManager
- 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.
Before being added to the pool it has to be reinitialized according to
what has been specified inside the jtr.xml
configuration
file.
Once all the IRunner
s are back into the pool, the test
will start againg until the last epoch is reached.
- Specified by:
backIntoPool
in interface IPoolManager
- Overrides:
backIntoPool
in class TestRunManager
- Parameters:
pRunner
- The IRunner
to be put back into the pool