|
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.TestConfig
public class TestConfig
This class represents in an object oriented way the jtr.xml
configuration file's content, thus contains all the information related to a
JTR test configuration.
| Constructor Summary | |
|---|---|
TestConfig()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addEnterprise(EnterpriseConfig enterprise)
Adds an EnterpriseConfig configuration element to the
current JTR test configuration. |
void |
addJmsConfig(JMSConfig jmsc)
Add a JMS configuration to the current jtr-test configuration. |
void |
addRunner(RunnerConfig runner)
This method adds an IRunner runtime configuration to the
current JTR test configuration. |
void |
addWebService(WebServiceConfig ws)
|
java.lang.String |
getBinding()
Get the default webservice binding. |
Bindings |
getBindings()
Get the bindings available to invokers. |
java.lang.String |
getEnterprise()
Returns the default enterprise configuration for the current JTR test. |
EnterpriseConfig |
getEnterprise(java.lang.String uniqueName)
Gets an EnterpriseConfig configuration element from the
current JTR test configuration. |
int |
getEpochs()
Returns the total number of epochs set for the JTR test. |
Factories |
getFactories()
|
java.lang.String |
getJms()
Gets the unique id of the JMS configuration to be used by the current runner. |
JMSConfig |
getJmsConfig(java.lang.String key)
Retrieves the JMS configuration associated with the given key (its unique id). |
java.util.Collection |
getJmsConfigs()
Returns all the configured JMS configurations. |
Nodes |
getNodes()
|
int |
getOverallRuns()
This method returns the total number of runs that must be accomplished in a single epoch, according to what has been declared in the jtr.xml
configuration file. |
java.util.Vector<RunnerConfig> |
getRunners()
Returns a Vector<RunnerConfig>. |
Scripts |
getScripts()
Get the object-oriented representation of the scripts section
taken from the jtr.xml file. |
java.lang.String |
getWebservice()
Get the webservice configuration unique name. |
WebServiceConfig |
getWebserviceConfig(java.lang.String key)
Get the currently configured webservice configuration. |
void |
setBinding(java.lang.String binding)
Set the default webservice binding. |
void |
setBindings(Bindings bindings)
Set the bindings available to invokers. |
void |
setEnterprise(java.lang.String enterprise)
Sets the default enterprise configuration for the current JTR test. |
void |
setEpochs(int epochs)
Sets the total number of epochs (aka epochs) this test will consist of. |
void |
setFactories(Factories f)
|
void |
setJms(java.lang.String id)
Sets the unique id of the JMS configuration to be used by the current runner. |
void |
setNodes(Nodes n)
|
void |
setScripts(Scripts val)
Set the object-oriented representation of the scripts section
taken from the jtr.xml file. |
void |
setWebservice(java.lang.String ws)
Set the webservice configuration unique name. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestConfig()
| Method Detail |
|---|
public void setFactories(Factories f)
public Factories getFactories()
public void setNodes(Nodes n)
public Nodes getNodes()
public void addWebService(WebServiceConfig ws)
ws - public void addRunner(RunnerConfig runner)
IRunner runtime configuration to the
current JTR test configuration.
runner - RunnerConfig One of the multiple IRunner
configurationspublic java.util.Vector<RunnerConfig> getRunners()
Vector<RunnerConfig>.
RunnerConfigspublic void addEnterprise(EnterpriseConfig enterprise)
EnterpriseConfig configuration element to the
current JTR test configuration.
enterprise - EnterpriseConfig The enterprise configurationpublic EnterpriseConfig getEnterprise(java.lang.String uniqueName)
EnterpriseConfig configuration element from the
current JTR test configuration. The enterprise configuration is uniquely
identified by its unique name.
uniqueName -
public int getEpochs()
public void setEpochs(int epochs)
epochs - The number of epochs to be executedpublic int getOverallRuns()
jtr.xml
configuration file.
public void setEnterprise(java.lang.String enterprise)
enterprise - String The default enterprise configuration's unique namepublic java.lang.String getEnterprise()
public void setJms(java.lang.String id)
id - The JMS unique idpublic java.lang.String getJms()
public void setBinding(java.lang.String binding)
binding - The default webservice bindingpublic java.lang.String getBinding()
public void setBindings(Bindings bindings)
bindings - The biningspublic Bindings getBindings()
public void setWebservice(java.lang.String ws)
ws - The webservice configuration unique namepublic java.lang.String getWebservice()
public void addJmsConfig(JMSConfig jmsc)
jmsc - The JMS configurationpublic JMSConfig getJmsConfig(java.lang.String key)
key - The JMS configuration unique id
public java.util.Collection getJmsConfigs()
public WebServiceConfig getWebserviceConfig(java.lang.String key)
key - The webservice configuration unique key
public void setScripts(Scripts val)
scripts section
taken from the jtr.xml file.
val - public Scripts getScripts()
scripts section
taken from the jtr.xml file.
public java.lang.String toString()
toString in class java.lang.ObjectObject.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 | |||||||||