|
JTR 5.0 API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRunnerPooled
This interface describes a runner in its POOLED
state.
Thus the runner is finally elegible for leaving the pool and running
according to the provided configuration.
Method Summary | |
---|---|
void |
afterTest()
|
void |
beforeTest()
This optional method must be implemented if the user-defined runner has to prepare one or more resources before executing its testing-logic. |
IRunnerClean |
clean()
This method is invoked everytime an IRunner passes from
its RUNNING state to the
REQUIRES_NEW_PARAMETERS state.The concrete IRunner implementation is responsible for its
own clean-up. |
void |
cleanupResources()
This method has to be implemented by all concrete IRunner
implementations for performing resource clean-up operations (closing
connections, closing files, etc.).In the current release of JTR, the framework will start the resource clean-up session only upon completion of the last epoch and once all the IRunner s have been put back into the pool.For an IRunner extending the
AbstractJMSRunner abstract class, the injection of all the
JMS administered objects and connections will happen only once, before
the first run of the first epoch is started.This is for not wasting both time and resources for gathering always the same resources every time a new run has to be executed. |
RunnerPool |
getPool()
Get the pool the current runner belongs to. |
void |
run()
This method starts the execution of the runner. |
Methods inherited from interface jtr.runners.IRunnerParameterized |
---|
setPool |
Methods inherited from interface jtr.runners.IRunnerClean |
---|
getCurrentRun, getDefaultName, getEnterprise, getEpoch, getFqn, getInstanceCount, getInstanceID, getName, getOutcomeFactory, getParameters, getParamsAssigner, getRuns, getSleepTime, getStatFunction, getTestOutcomeTable, setCurrentRun, setEnterprise, setEpoch, setFqn, setInstanceCount, setInstanceID, setName, setOutcomeFactory, setParameters, setParamsAssigner, setRuns, setSleepTime, setStatFunction, setTestCompletionListener, setTestOutcomeTable |
Method Detail |
---|
void run()
IRunnerParameterized
run
in interface IRunnerParameterized
run
in interface java.lang.Runnable
Runnable.run()
RunnerPool getPool()
void beforeTest() throws java.lang.Throwable
java.lang.Throwable
void afterTest() throws java.lang.Throwable
java.lang.Throwable
void cleanupResources()
IRunner
implementations for performing resource clean-up operations (closing
connections, closing files, etc.).IRunner
s have been put back into the pool.IRunner
extending the
AbstractJMSRunner
abstract class, the injection of all the
JMS administered objects and connections will happen only once, before
the first run of the first epoch is started.
AbstractRunnerAncestor.clean()
IRunnerClean clean()
IRunner
passes from
its RUNNING
state to the
REQUIRES_NEW_PARAMETERS
state.IRunner
implementation is responsible for its
own clean-up.
|
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 |