|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.projectdarkstar.tools.dtc.domain.TestSpec
public class TestSpec
Represents a complete test specification that pulls together all of the details and parameters necessary to run a DTC test.
| Constructor Summary | |
|---|---|
TestSpec()
|
|
TestSpec(String name,
String description,
String testRunner,
Long timeLimit,
Long maxClients,
ServerAppConfig serverAppConfig)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
List<ClientAppConfig> |
getClientAppConfigs()
Returns the list of client application simulator configurations to be used to stress the server during the test. |
List<HardwareResourceFamily> |
getClientResources()
Returns a list of HardwareResourceFamily objects representing
the class of hardware resources that the client application simulators
should be run on. |
String |
getDescription()
|
Long |
getId()
Returns the id of the entity in persistent storage |
Long |
getMaxClients()
|
String |
getName()
|
List<Property> |
getProperties()
Returns a list of arguments in the form of Property objects
to be passed to the TestRunner during run time. |
ServerAppConfig |
getServerAppConfig()
Returns the complete configuration required to run the server application to be used as the central process of this test. |
List<HardwareResourceFamily> |
getServerResources()
Returns a list of HardwareResourceFamily objects representing
the class of hardware resources that the server application should
be run on. |
List<SystemProbe> |
getSystemProbes()
Returns the list of system probes that are to be used to monitor the state of the system while the test is running. |
String |
getTestRunner()
Returns the fully qualified class name of the test runner to be used to execute the tests. |
Long |
getTimeLimit()
Time limit in seconds to allow the test to run. |
Long |
getVersionNumber()
Returns the version number in the data store that this entity represents. |
int |
hashCode()
|
void |
setClientAppConfigs(List<ClientAppConfig> clientAppConfigs)
|
void |
setClientResources(List<HardwareResourceFamily> clientResources)
|
void |
setDescription(String description)
|
void |
setId(Long id)
|
void |
setMaxClients(Long maxClients)
|
void |
setName(String name)
|
void |
setProperties(List<Property> properties)
|
void |
setServerAppConfig(ServerAppConfig serverAppConfig)
|
void |
setServerResources(List<HardwareResourceFamily> serverResources)
|
void |
setSystemProbes(List<SystemProbe> systemProbes)
|
void |
setTestRunner(String testRunner)
|
void |
setTimeLimit(Long timeLimit)
|
protected void |
setVersionNumber(Long versionNumber)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestSpec()
public TestSpec(String name,
String description,
String testRunner,
Long timeLimit,
Long maxClients,
ServerAppConfig serverAppConfig)
| Method Detail |
|---|
public Long getId()
public void setId(Long id)
public Long getVersionNumber()
protected void setVersionNumber(Long versionNumber)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public String getTestRunner()
Returns the fully qualified class name of the test runner to be used to execute the tests. Different types of test runners have different behaviors:
public void setTestRunner(String testRunner)
public Long getTimeLimit()
public void setTimeLimit(Long timeLimit)
public Long getMaxClients()
public void setMaxClients(Long maxClients)
public List<Property> getProperties()
Property objects
to be passed to the TestRunner during run time.
public void setProperties(List<Property> properties)
public ServerAppConfig getServerAppConfig()
public void setServerAppConfig(ServerAppConfig serverAppConfig)
public List<ClientAppConfig> getClientAppConfigs()
public void setClientAppConfigs(List<ClientAppConfig> clientAppConfigs)
public List<SystemProbe> getSystemProbes()
public void setSystemProbes(List<SystemProbe> systemProbes)
public List<HardwareResourceFamily> getServerResources()
Returns a list of HardwareResourceFamily objects representing
the class of hardware resources that the server application should
be run on. Before running a test, one resource of each family type
must be locked.
If there is only one resource in the list, a single node instance of the server is started. If there are multiple resources, the first node is used to startup the core node, while the remaining are used for app nodes.
public void setServerResources(List<HardwareResourceFamily> serverResources)
public List<HardwareResourceFamily> getClientResources()
Returns a list of HardwareResourceFamily objects representing
the class of hardware resources that the client application simulators
should be run on. Before running a test, one resource of each
family type must be locked.
Each client is assigned to a resource in round-robin fashion. A resource may be assigned more than one client application simulator.
public void setClientResources(List<HardwareResourceFamily> clientResources)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||