com.projectdarkstar.tools.dtc.data
Class TestExecutionResultProbeLogDTO

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.data.AbstractDTO
      extended by com.projectdarkstar.tools.dtc.data.TestExecutionResultProbeLogDTO
All Implemented Interfaces:
Serializable

public class TestExecutionResultProbeLogDTO
extends AbstractDTO

Captures complete runtime configuration, hardware resource executed on, and result log file for the execution of a SystemProbeDTO during the test.

See Also:
Serialized Form

Constructor Summary
TestExecutionResultProbeLogDTO(Long id, Long versionNumber, String originalSystemProbeName, String originalSystemProbeClassName, String originalSystemProbeClassPath, String originalSystemProbeMetric, String originalSystemProbeUnits)
           
 
Method Summary
 boolean equals(Object o)
           
 List<TestExecutionResultProbeDataDTO> getData()
          A list of TestExecutionResultProbeDataDTO objects are periodically collected during the execution of a SystemProbeDTO to monitor the specific metric that the probe measures over time.
 Long getId()
          Returns the id of the entity in persistent storage
 LogFileDTO getLogFile()
           
 SystemProbeDTO getOriginalSystemProbe()
           
 String getOriginalSystemProbeClassName()
           
 String getOriginalSystemProbeClassPath()
           
 String getOriginalSystemProbeMetric()
           
 String getOriginalSystemProbeName()
           
 PkgLibraryDTO getOriginalSystemProbeRequiredPkg()
           
 String getOriginalSystemProbeUnits()
           
 TestExecutionResultDTO getParentResult()
           
 List<PropertyDTO> getProperties()
           
 HardwareResourceDTO getResource()
           
 Long getVersionNumber()
          Returns the version number in the data store that this entity represents.
 int hashCode()
           
protected  void setData(List<TestExecutionResultProbeDataDTO> data)
           
 void setId(Long id)
           
protected  void setLogFile(LogFileDTO logFile)
           
protected  void setParentResult(TestExecutionResultDTO parentResult)
           
protected  void setProperties(List<PropertyDTO> properties)
           
protected  void setResource(HardwareResourceDTO resource)
           
 void updateData(List<TestExecutionResultProbeDataDTO> data)
           
 void updateLogFile(LogFileDTO logFile)
           
 void updateParentResult(TestExecutionResultDTO parentResult)
           
 void updateProperties(List<PropertyDTO> properties)
           
 void updateResource(HardwareResourceDTO resource)
           
 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

TestExecutionResultProbeLogDTO

public TestExecutionResultProbeLogDTO(Long id,
                                      Long versionNumber,
                                      String originalSystemProbeName,
                                      String originalSystemProbeClassName,
                                      String originalSystemProbeClassPath,
                                      String originalSystemProbeMetric,
                                      String originalSystemProbeUnits)
Method Detail

getId

public Long getId()
Returns the id of the entity in persistent storage

Specified by:
getId in class AbstractDTO
Returns:
id of the entity

setId

public void setId(Long id)

getVersionNumber

public Long getVersionNumber()
Returns the version number in the data store that this entity represents. Whenever an update to an object is pushed to the persistent data store, the version number is incremented.

Returns:
version number of the entity

getResource

public HardwareResourceDTO getResource()

setResource

protected void setResource(HardwareResourceDTO resource)

updateResource

public void updateResource(HardwareResourceDTO resource)
                    throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getLogFile

public LogFileDTO getLogFile()

setLogFile

protected void setLogFile(LogFileDTO logFile)

updateLogFile

public void updateLogFile(LogFileDTO logFile)
                   throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getOriginalSystemProbeName

public String getOriginalSystemProbeName()

getOriginalSystemProbeClassName

public String getOriginalSystemProbeClassName()

getOriginalSystemProbeClassPath

public String getOriginalSystemProbeClassPath()

getOriginalSystemProbeMetric

public String getOriginalSystemProbeMetric()

getOriginalSystemProbeUnits

public String getOriginalSystemProbeUnits()

getOriginalSystemProbeRequiredPkg

public PkgLibraryDTO getOriginalSystemProbeRequiredPkg()

getOriginalSystemProbe

public SystemProbeDTO getOriginalSystemProbe()

getProperties

public List<PropertyDTO> getProperties()

setProperties

protected void setProperties(List<PropertyDTO> properties)

updateProperties

public void updateProperties(List<PropertyDTO> properties)
                      throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getParentResult

public TestExecutionResultDTO getParentResult()

setParentResult

protected void setParentResult(TestExecutionResultDTO parentResult)

updateParentResult

public void updateParentResult(TestExecutionResultDTO parentResult)
                        throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getData

public List<TestExecutionResultProbeDataDTO> getData()
A list of TestExecutionResultProbeDataDTO objects are periodically collected during the execution of a SystemProbeDTO to monitor the specific metric that the probe measures over time. Returns a list of these data objects.

Returns:
list of probe data points

setData

protected void setData(List<TestExecutionResultProbeDataDTO> data)

updateData

public void updateData(List<TestExecutionResultProbeDataDTO> data)
                throws DTCInvalidDataException
Throws:
DTCInvalidDataException

validate

public void validate()
              throws DTCInvalidDataException
Description copied from class: AbstractDTO
Validates that each attribute and pending updated attribute (from the updatedAttributes Map) has a valid value in the context of the particular object.

Specified by:
validate in class AbstractDTO
Throws:
DTCInvalidDataException

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.