public class TestSpec extends Object implements Serializable
| Constructor and Description |
|---|
TestSpec(String name,
String description,
String testRunner,
Long timeLimit,
Long maxClients) |
| Modifier and Type | Method and Description |
|---|---|
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() |
SortedSet<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.
|
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(SortedSet<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) |
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 SortedSet<Property> getProperties()
Property objects
to be passed to the TestRunner during run time.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)
Copyright © 2013. All Rights Reserved.