|
JTR 4.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 | |
---|---|
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. |
int |
getEpoch()
Get the current jtr-test epoch. |
RunnerPool |
getPool()
Get the pool the current runner belongs to. |
void |
run()
This method starts the execution of the runner. |
void |
setEpoch(int epoch)
Set the current jtr-test epoch. |
Methods inherited from interface jtr.runners.IRunnerParameterized |
---|
setPool |
Methods inherited from interface jtr.runners.IRunnerClean |
---|
getDefaultName, getEnterprise, getInstanceCount, getName, getOutcomeFactory, getParameters, getParamsAssigner, getRuns, getSleepTime, getTestOutcomeTable, setEnterprise, setInstanceCount, setName, setOutcomeFactory, setParameters, setParamsAssigner, setRuns, setSleepTime, setTestCompletionListener, setTestOutcomeTable |
Method Detail |
---|
void run()
IRunnerParameterized
run
in interface IRunnerParameterized
run
in interface java.lang.Runnable
Runnable.run()
RunnerPool getPool()
int getEpoch()
void setEpoch(int epoch)
epoch
- intvoid 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 |