|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.projectdarkstar.tools.dtc.data.AbstractDTO
com.projectdarkstar.tools.dtc.data.TestSpecDTO
public class TestSpecDTO
Represents a complete test specification that pulls together all of the details and parameters necessary to run a DTC test.
| Constructor Summary | |
|---|---|
TestSpecDTO(Long id,
Long versionNumber,
String name,
String description,
String testRunner,
Long timeLimit,
Long maxClients)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
List<ClientAppConfigDTO> |
getClientAppConfigs()
Returns the list of client application simulator configurations to be used to stress the server during the test. |
List<HardwareResourceFamilyDTO> |
getClientResources()
Returns a list of HardwareResourceFamilyDTO 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<PropertyDTO> |
getProperties()
Returns a list of arguments in the form of PropertyDTO objects
to be passed to the TestRunner during run time. |
ServerAppConfigDTO |
getServerAppConfig()
Returns the complete configuration required to run the server application to be used as the central process of this test. |
List<HardwareResourceFamilyDTO> |
getServerResources()
Returns a list of HardwareResourceFamilyDTO objects representing
the class of hardware resources that the server application should
be run on. |
List<SystemProbeDTO> |
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()
|
protected void |
setClientAppConfigs(List<ClientAppConfigDTO> clientAppConfigs)
|
protected void |
setClientResources(List<HardwareResourceFamilyDTO> clientResources)
|
protected void |
setDescription(String description)
|
void |
setId(Long id)
|
protected void |
setMaxClients(Long maxClients)
|
protected void |
setName(String name)
|
protected void |
setProperties(List<PropertyDTO> properties)
|
protected void |
setServerAppConfig(ServerAppConfigDTO serverAppConfig)
|
protected void |
setServerResources(List<HardwareResourceFamilyDTO> serverResources)
|
protected void |
setSystemProbes(List<SystemProbeDTO> systemProbes)
|
protected void |
setTestRunner(String testRunner)
|
protected void |
setTimeLimit(Long timeLimit)
|
void |
updateClientAppConfigs(List<ClientAppConfigDTO> clientAppConfigs)
|
void |
updateClientResources(List<HardwareResourceFamilyDTO> clientResources)
|
void |
updateDescription(String description)
|
void |
updateMaxClient(Long maxClients)
|
void |
updateName(String name)
|
void |
updateProperties(List<PropertyDTO> properties)
|
void |
updateServerAppConfig(ServerAppConfigDTO serverAppConfig)
|
void |
updateServerResources(List<HardwareResourceFamilyDTO> serverResources)
|
void |
updateSystemProbes(List<SystemProbeDTO> systemProbes)
|
void |
updateTestRunner(String testRunner)
|
void |
updateTimeLimit(Long timeLimit)
|
void |
validate()
Validates that each attribute and pending updated attribute (from the updatedAttributes Map) has a valid value in the context of the particular object. |
| Methods inherited from class com.projectdarkstar.tools.dtc.data.AbstractDTO |
|---|
checkBlank, checkNull, getFullyPopulated, getUpdatedAttributes, updateAttribute, valueToValidate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestSpecDTO(Long id,
Long versionNumber,
String name,
String description,
String testRunner,
Long timeLimit,
Long maxClients)
| Method Detail |
|---|
public Long getId()
getId in class AbstractDTOpublic void setId(Long id)
public Long getVersionNumber()
public String getName()
protected void setName(String name)
public void updateName(String name)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic String getDescription()
protected void setDescription(String description)
public void updateDescription(String description)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic 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:
protected void setTestRunner(String testRunner)
public void updateTestRunner(String testRunner)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic Long getTimeLimit()
protected void setTimeLimit(Long timeLimit)
public void updateTimeLimit(Long timeLimit)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic Long getMaxClients()
protected void setMaxClients(Long maxClients)
public void updateMaxClient(Long maxClients)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic List<PropertyDTO> getProperties()
PropertyDTO objects
to be passed to the TestRunner during run time.
protected void setProperties(List<PropertyDTO> properties)
public void updateProperties(List<PropertyDTO> properties)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic ServerAppConfigDTO getServerAppConfig()
protected void setServerAppConfig(ServerAppConfigDTO serverAppConfig)
public void updateServerAppConfig(ServerAppConfigDTO serverAppConfig)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic List<ClientAppConfigDTO> getClientAppConfigs()
protected void setClientAppConfigs(List<ClientAppConfigDTO> clientAppConfigs)
public void updateClientAppConfigs(List<ClientAppConfigDTO> clientAppConfigs)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic List<SystemProbeDTO> getSystemProbes()
protected void setSystemProbes(List<SystemProbeDTO> systemProbes)
public void updateSystemProbes(List<SystemProbeDTO> systemProbes)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic List<HardwareResourceFamilyDTO> getServerResources()
Returns a list of HardwareResourceFamilyDTO 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.
protected void setServerResources(List<HardwareResourceFamilyDTO> serverResources)
public void updateServerResources(List<HardwareResourceFamilyDTO> serverResources)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic List<HardwareResourceFamilyDTO> getClientResources()
Returns a list of HardwareResourceFamilyDTO 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.
protected void setClientResources(List<HardwareResourceFamilyDTO> clientResources)
public void updateClientResources(List<HardwareResourceFamilyDTO> clientResources)
throws DTCInvalidDataException
DTCInvalidDataException
public void validate()
throws DTCInvalidDataException
AbstractDTO
validate in class AbstractDTODTCInvalidDataExceptionpublic 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 | |||||||||