org.hyperic.hq.measurement.server.session
Class DataPoint
java.lang.Object
org.hyperic.hq.measurement.server.session.DataPoint
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- MeasDataPoint, ResourceDataPoint
public class DataPoint
- extends java.lang.Object
- implements java.io.Serializable
This object encapsulates all the information needed to call
{@link DataManagerEJBImpl#addData(java.util.List, boolean)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DataPoint
public DataPoint(int metricId,
double val,
long timestamp)
DataPoint
public DataPoint(java.lang.Integer metricId,
MetricValue val)
getMetricId
public java.lang.Integer getMetricId()
getMetricValue
public MetricValue getMetricValue()
getValue
public double getValue()
getTimestamp
public long getTimestamp()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Checks if metricId && timestamp hashCodes match (not value)
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object rhs)
- Determines if metricId && timestamps match (not value)
- Overrides:
equals
in class java.lang.Object
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.