|
JTR 4.0 API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjtr.runners.AbstractRunnerAncestor
jtr.runners.AbstractJMSRunner
public abstract class AbstractJMSRunner
This abstract runner has to be the base class of all the application-level
runners willing to leverage on the JTR runtime for the dynamic injection of
JMS administered objects defined in the jtr.xml
configuration
file.
Field Summary |
---|
Fields inherited from class jtr.runners.AbstractRunnerAncestor |
---|
epoch, logger, paramsAssigner, pool |
Constructor Summary | |
---|---|
AbstractJMSRunner()
|
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. |
int |
getCurrentRun()
Return the current run assigned to the IRunner |
JMSConfig |
getJmsConfig()
Get the JMS configuration assigned to the current IRunner |
void |
run()
This method wraps the test() method implemented by
application developed runners.It manages the execution of the test() method according to
the sleep time interval associated with the wrapped IRunner
instance, according to the declared number of required runs and so on.Furthermore there is a fundamental exception accounting feature which enables JTR to collect information about each single IRunner
run and the handling of boring/complex tasks such as the reinitialization
of each runner parameters according to the associated
IAssignmentPolicy . |
void |
setJmsConfig(JMSConfig jmsConfig)
Set the JMS configuration assigned to the current IRunner |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jtr.runners.IRunner |
---|
getFailures, getSuccesses, receiveFailureNotification, test |
Methods inherited from interface jtr.runners.IRunnerPooled |
---|
cleanupResources, getEpoch, getPool, setEpoch |
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 |
Constructor Detail |
---|
public AbstractJMSRunner()
Method Detail |
---|
public void setJmsConfig(JMSConfig jmsConfig)
IRunner
setJmsConfig
in interface IRunnerJMS
jmsConfig
- The JMS configurationpublic JMSConfig getJmsConfig()
IRunner
getJmsConfig
in interface IRunnerJMS
public final void run()
test()
method implemented by
application developed runners.test()
method according to
the sleep time interval associated with the wrapped IRunner
instance, according to the declared number of required runs and so on.IRunner
run and the handling of boring/complex tasks such as the reinitialization
of each runner parameters according to the associated
IAssignmentPolicy
.
run
in interface java.lang.Runnable
run
in interface IRunnerParameterized
run
in interface IRunnerPooled
Runnable.run()
public int getCurrentRun()
IRunner
getCurrentRun
in interface IRunner
public 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 |