public class GangliaMetricMessage extends AbstractGangliaMessage implements IGangliaMetricMessage
| Constructor and Description |
|---|
GangliaMetricMessage(GangliaMessageTypeEnum recordType,
String hostName,
String metricName,
boolean spoof,
String format,
Object value)
Constructor from data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getFormat()
The printf format string associated with the metric value.
|
Number |
getNumericValue()
Return the
Number for the metric value. |
String |
getStringValue()
Return a String representation of the metric value (always succeeds).
|
Object |
getValue()
Return the metric value (non-
null). |
int |
hashCode() |
boolean |
isMetricMetadata()
Return
true iff this message contains the metadata for a
metric (the metric declaration). |
boolean |
isMetricRequest()
Return
true iff this message is a request for a metric. |
boolean |
isMetricValue()
Return
true if this message represents a metric value. |
boolean |
isNumeric()
Return
true if the metric value is a numeric, in which case
it can be cast to a Number. |
String |
toString() |
getHostName, getMetricName, getRecordType, isSpoofclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetHostName, getMetricName, getRecordType, isSpoofpublic GangliaMetricMessage(GangliaMessageTypeEnum recordType, String hostName, String metricName, boolean spoof, String format, Object value)
recordType - hostName - metricName - spoof - format - value - public boolean isMetricValue()
IGangliaMessagetrue if this message represents a metric value.isMetricValue in interface IGangliaMessagepublic boolean isMetricRequest()
IGangliaMessagetrue iff this message is a request for a metric.isMetricRequest in interface IGangliaMessageGangliaMessageTypeEnum.REQUESTpublic boolean isMetricMetadata()
IGangliaMessagetrue iff this message contains the metadata for a
metric (the metric declaration).isMetricMetadata in interface IGangliaMessageGangliaMessageTypeEnum.METADATApublic String getFormat()
IGangliaMetricMessagegetFormat in interface IGangliaMetricMessagepublic boolean isNumeric()
IGangliaMetricMessagetrue if the metric value is a numeric, in which case
it can be cast to a Number.isNumeric in interface IGangliaMetricMessagepublic Object getValue()
IGangliaMetricMessagenull).getValue in interface IGangliaMetricMessagepublic String getStringValue()
IGangliaMetricMessagegetStringValue in interface IGangliaMetricMessagepublic Number getNumericValue()
IGangliaMetricMessageNumber for the metric value.getNumericValue in interface IGangliaMetricMessagepublic boolean equals(Object o)
equals in class AbstractGangliaMessagepublic int hashCode()
hashCode in class AbstractGangliaMessageCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.