|
JTR 5.0 API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjtr.config.RunnerConfig
public class RunnerConfig
Instances of this class represent configurations associated with specific
IRunner
implementation classes.
A RunnerConfig
instance typically contains information such as
the FQN of the associated IRunner
concrete class, the number
of instances that have to be created by the JTR framework, and the set of
parameters to be assigned to runners at runtime along with the desired
assignment policy.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ASSIGNMENT_POLICY
Default assignment policy is CYCLIC |
static int |
DEFAULT_COUNT
Default value for an IRunner number of runs is 1 |
static int |
DEFAULT_RUNS
Default value for an IRunner number of instances is 1 |
static long |
DEFAULT_SLEEP_TIME
Default value for an IRunner sleep time is -1 (undefined) |
Constructor Summary | |
---|---|
RunnerConfig()
Constructor. |
Method Summary | |
---|---|
void |
addParameterSet(ParametersMap runnerParam)
Adds a new ParametersMap to the set of currently available
ParameterMaps |
IAssignmentPolicy |
getAssignmetPolicy()
Short-hand method useful to instantiate the concrete IAssignmentPolicy that will handle the parameterization
for this runner configuration. |
java.lang.String |
getBinding()
Get the default binding associated with the runner. |
int |
getCount()
Gets the number of instances that have to be created at runtime |
java.lang.String |
getEnterprise()
Returns the default enterprise configuration unique name associated with the current runner configuration. |
java.lang.String |
getJms()
Gets the unique id of the JMS configuration to be used by the current runner. |
java.util.List<ParametersMap> |
getParameterMaps()
Gets all the configured ParmetersMap s as a
Vector<ParametersMap> . |
java.lang.String |
getParametersAssignmetPolicy()
Returns the String which identifies the
IAssignmentPolicy associated with the current
RunnerConfig . |
TestConfig |
getParent()
Returns the belonging to TestConfig instance. |
java.lang.String |
getRunnerFqn()
Gets the FQN of the runner associated with this RunnerConfig
instance. |
int |
getRuns()
Sets the default number of times each runner belonging to this runner configuration will have to run. |
long |
getSleepTime()
Returns the defautl sleep time for this runner configuration. |
java.lang.String |
getWebservice()
Get the unique name of the webservice configuration this runner configuration points to. |
void |
setBinding(java.lang.String binding)
Set the default binding associated with the runner. |
void |
setCount(int count)
Sets the number of instances that have to be created at runtime |
void |
setEnterprise(java.lang.String enterprise)
Sets the default enterprise configuration unique name associated with the current runner configuration. |
void |
setJms(java.lang.String id)
Sets the unique id of the JMS configuration to be used by the current runner. |
void |
setParametersAssignmetPolicy(java.lang.String parametersAssignmetPolicy)
Sets the String which identifies the
IAssignmentPolicy associated with the current
RunnerConfig . |
void |
setParent(TestConfig parent)
Ties the current runner configuration to the TestConfig it
belongs to. |
void |
setRunnerFqn(java.lang.String runnerFqn)
Sets the FQN of the runner associated with this RunnerConfig
instance. |
void |
setRuns(int runs)
Gets the default number of times each runner belonging to this runner configuration will have to run. |
void |
setSleepTime(long sleepTime)
Sets the default sleep time for this runner configuration. |
void |
setWebservice(java.lang.String webservice)
Set the reference to the webservice configuration this runner configuration points to. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long DEFAULT_SLEEP_TIME
IRunner
sleep time is -1 (undefined)
public static final int DEFAULT_RUNS
IRunner
number of instances is 1
public static final int DEFAULT_COUNT
IRunner
number of runs is 1
public static final java.lang.String DEFAULT_ASSIGNMENT_POLICY
CYCLIC
Constructor Detail |
---|
public RunnerConfig()
Method Detail |
---|
public java.lang.String getRunnerFqn()
RunnerConfig
instance.
public void setRunnerFqn(java.lang.String runnerFqn)
RunnerConfig
instance.
runnerFqn
- Stringpublic int getCount()
public void setCount(int count)
count
- intpublic void addParameterSet(ParametersMap runnerParam)
ParametersMap
to the set of currently available
ParameterMaps
runnerParam
- ParametersMappublic java.util.List<ParametersMap> getParameterMaps()
ParmetersMap
s as a
Vector<ParametersMap>
.
public java.lang.String getParametersAssignmetPolicy()
String
which identifies the
IAssignmentPolicy
associated with the current
RunnerConfig
.
public IAssignmentPolicy getAssignmetPolicy() throws UnknownAssignmentPolicyException
IAssignmentPolicy
that will handle the parameterization
for this runner configuration.
UnknownAssignmentPolicyException
public void setParametersAssignmetPolicy(java.lang.String parametersAssignmetPolicy)
String
which identifies the
IAssignmentPolicy
associated with the current
RunnerConfig
.
parametersAssignmetPolicy
- Stringpublic long getSleepTime()
public void setSleepTime(long sleepTime)
sleepTime
- longpublic int getRuns()
public void setRuns(int runs)
runs
- intpublic java.lang.String getEnterprise()
public void setEnterprise(java.lang.String enterprise)
enterprise
- Stringpublic void setJms(java.lang.String id)
id
- The JMS unique idpublic java.lang.String getJms()
public void setParent(TestConfig parent)
TestConfig
it
belongs to.
parent
- TestConfigpublic void setWebservice(java.lang.String webservice)
webservice
- The webservice configuration unique namepublic java.lang.String getWebservice()
public void setBinding(java.lang.String binding)
binding
- The webservice binding unique namepublic java.lang.String getBinding()
public TestConfig getParent()
TestConfig
instance.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
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 |