JTR 5.0 API Documentation

jtr.remote.test
Class RemoteTestRunManager

java.lang.Object
  extended by jtr.test.TestRunManager
      extended by 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:
5.0
Author:
frusso

Field Summary
 
Fields inherited from class jtr.test.TestRunManager
logger
 
Constructor Summary
RemoteTestRunManager(TestConfig tc, NodeInfo serverCL, NodeInfo testOutcomeCollector)
          Constructor.
 
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  RunnerPool initializePool(TestConfig testConfig)
           
 void startTest()
          Launches the test.
protected  void startThreads()
          Starts all the IRunners for the current epoch of the current test
 
Methods inherited from class jtr.test.TestRunManager
disposeResources, getCompletedRunners, getCurrentEpoch, getEpochs, getInitialPoolSize, getPool, getRunnersThreadGroup, getTestConfig, getTestOutcomeTable, handleReinitialization, initializePool, setCompletedRunners, setCurrentEpoch, setEpochs, setInitialPoolSize, setPool, setRunnersThreadGroup, setTestConfig, setTestOutcomeTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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-configuration
serverCL - the server class-loader
testOutcomeCollector -
Method Detail

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 IRunners 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 IRunners 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

The JTR Project is licensed under GPL version 2