|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.product.MetricValue
public class MetricValue
Represents a value of a Metric.
MeasurementPluginManager.getValue(java.lang.String)
,
XXX: It would be best if this object were immutable. -- JMT 11/31/09
,
Serialized FormField Summary | |
---|---|
static MetricValue |
FUTURE
Metric template is valid, but no value is available. |
static MetricValue |
NONE
Metric template is valid, but no value is available. |
static double |
VALUE_FUTURE
|
static double |
VALUE_NONE
|
Constructor Summary | |
---|---|
MetricValue()
|
|
MetricValue(double value)
Default retrieval time to System.currentTimeMillis() |
|
MetricValue(double value,
long rtime)
|
|
MetricValue(long value)
Default retrieval time to System.currentTimeMillis() |
|
MetricValue(long value,
long rtime)
|
|
MetricValue(MetricValue src)
|
|
MetricValue(MetricValue objectValue,
long rtime)
|
|
MetricValue(java.lang.Number objectValue)
Default retrieval time to System.currentTimeMillis() |
|
MetricValue(java.lang.Number objectValue,
long rtime)
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
This is for the Datapoint interface. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getLabel()
Retrieves the label of a chart data point. |
java.lang.Double |
getObjectValue()
|
long |
getTimestamp()
|
double |
getValue()
Retrieves the value of a chart data point. |
boolean |
isFuture()
|
boolean |
isNone()
|
void |
setTimestamp(long t)
|
void |
setValue(double value)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double VALUE_NONE
public static final MetricValue NONE
public static final double VALUE_FUTURE
public static final MetricValue FUTURE
Constructor Detail |
---|
public MetricValue()
public MetricValue(double value, long rtime)
public MetricValue(MetricValue src)
public MetricValue(double value)
public MetricValue(java.lang.Number objectValue, long rtime)
public MetricValue(java.lang.Number objectValue)
public MetricValue(MetricValue objectValue, long rtime)
public MetricValue(long value, long rtime)
public MetricValue(long value)
Method Detail |
---|
public boolean isNone()
public boolean isFuture()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Double getObjectValue()
public double getValue()
IDataPoint
getValue
in interface IDataPoint
public void setValue(double value)
public long getTimestamp()
getTimestamp
in interface IDisplayDataPoint
public void setTimestamp(long t)
public java.lang.String getLabel()
IDisplayDataPoint
getLabel
in interface IDisplayDataPoint
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |