com.projectdarkstar.tools.dtc.domain
Class SystemProbe

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.domain.SystemProbe
All Implemented Interfaces:
Serializable

public class SystemProbe
extends Object
implements Serializable

Represents a system probe application used to monitor and collect statistics during a DTC test.

See Also:
Serialized Form

Constructor Summary
SystemProbe()
           
SystemProbe(String name, String className, String classPath, String metric, String units, PkgLibrary requiredPkg)
           
 
Method Summary
 boolean equals(Object o)
           
 String getClassName()
          Returns the fully qualified class name of this system probe required to initiate execution of this system probe
 String getClassPath()
          Returns the classpath required to run the system probe application.
 Long getId()
          Returns the id of the entity in persistent storage
 String getMetric()
          Returns the name of the metric that this system probe is designed to measure.
 String getName()
           
 List<Property> getProperties()
          Returns a list of arguments in the form of Property objects to be passed to the system probe during run time.
 PkgLibrary getRequiredPkg()
          Returns the package library required to run this system probe.
 List<SystemProbeTag> getTags()
          Returns a list of SystemProbeTag objects that are used to categorize system probes into groups.
 String getUnits()
          Returns the unit of measurement of the metric.
 Long getVersionNumber()
          Returns the version number in the data store that this entity represents.
 int hashCode()
           
 void setClassName(String className)
           
 void setClassPath(String classPath)
           
 void setId(Long id)
           
 void setMetric(String metric)
           
 void setName(String name)
           
 void setProperties(List<Property> properties)
           
 void setRequiredPkg(PkgLibrary requiredPkg)
           
 void setTags(List<SystemProbeTag> tags)
           
 void setUnits(String units)
           
protected  void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemProbe

public SystemProbe()

SystemProbe

public SystemProbe(String name,
                   String className,
                   String classPath,
                   String metric,
                   String units,
                   PkgLibrary requiredPkg)
Method Detail

getId

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

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

setVersionNumber

protected void setVersionNumber(Long versionNumber)

getName

public String getName()

setName

public void setName(String name)

getClassName

public String getClassName()
Returns the fully qualified class name of this system probe required to initiate execution of this system probe

Returns:
main class name for the system probe

setClassName

public void setClassName(String className)

getClassPath

public String getClassPath()
Returns the classpath required to run the system probe application. The items in this path are relative to the root of the filesystem in the required zip archive.

Returns:
classpath required to run the system probe

setClassPath

public void setClassPath(String classPath)

getMetric

public String getMetric()
Returns the name of the metric that this system probe is designed to measure.

Returns:
metric that this system probe measures

setMetric

public void setMetric(String metric)

getUnits

public String getUnits()
Returns the unit of measurement of the metric.

Returns:
the unit of measurement of the metric.

setUnits

public void setUnits(String units)

getTags

public List<SystemProbeTag> getTags()
Returns a list of SystemProbeTag objects that are used to categorize system probes into groups.

Returns:
list of tags for this system probe

setTags

public void setTags(List<SystemProbeTag> tags)

getProperties

public List<Property> getProperties()
Returns a list of arguments in the form of Property objects to be passed to the system probe during run time.

Returns:
list of arguments

setProperties

public void setProperties(List<Property> properties)

getRequiredPkg

public PkgLibrary getRequiredPkg()
Returns the package library required to run this system probe. It is assumed that this library is a zip archive.

Returns:
the package library required to run this system probe

setRequiredPkg

public void setRequiredPkg(PkgLibrary requiredPkg)

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.