org.rhq.core.domain.measurement
Class MeasurementData

java.lang.Object
  extended by org.rhq.core.domain.measurement.MeasurementData
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MeasurementDataNumeric, MeasurementDataNumeric1D, MeasurementDataNumeric1H, MeasurementDataNumeric6H, MeasurementDataTrait

public abstract class MeasurementData
extends Object
implements Serializable

Represents data that was collected either due to a schedule or an on-demand, live collection.

See Also:
Serialized Form

Constructor Summary
protected MeasurementData()
          Use this constructor if the data was collected on-demand and not part of a scheduled collection.
protected MeasurementData(long timestamp, MeasurementScheduleRequest request)
           
protected MeasurementData(MeasurementDataPK pk)
           
protected MeasurementData(MeasurementScheduleRequest request)
           
 
Method Summary
 boolean equals(Object o)
           
 String getName()
           
 MeasurementSchedule getSchedule()
           
 int getScheduleId()
           
 long getTimestamp()
           
abstract  Object getValue()
           
 int hashCode()
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MeasurementData

protected MeasurementData()
Use this constructor if the data was collected on-demand and not part of a scheduled collection.


MeasurementData

protected MeasurementData(MeasurementDataPK pk)

MeasurementData

protected MeasurementData(long timestamp,
                          MeasurementScheduleRequest request)

MeasurementData

protected MeasurementData(MeasurementScheduleRequest request)
Method Detail

getScheduleId

public int getScheduleId()

getTimestamp

public long getTimestamp()

getName

public String getName()

setName

public void setName(String name)

getSchedule

public MeasurementSchedule getSchedule()

getValue

public abstract Object getValue()

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.