public class RichMetricMessage extends GangliaMetricMessage
IGangliaMetricMessage
with the
IGangliaMetadataMessage
which provides its declaration.Constructor and Description |
---|
RichMetricMessage(String hostName,
IGangliaMetadataMessage decl,
boolean spoof,
String format,
Object value)
Constructor produces an
IGangliaMetricMessage which is consistent
with the IGangliaMetadataMessage . |
Modifier and Type | Method and Description |
---|---|
IGangliaMetadataMessage |
getMetadata()
The declaration and never
null . |
equals, getFormat, getNumericValue, getStringValue, getValue, hashCode, isMetricMetadata, isMetricRequest, isMetricValue, isNumeric, toString
getHostName, getMetricName, getRecordType, isSpoof
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getHostName, getMetricName, getRecordType, isSpoof
public RichMetricMessage(String hostName, IGangliaMetadataMessage decl, boolean spoof, String format, Object value)
IGangliaMetricMessage
which is consistent
with the IGangliaMetadataMessage
.hostName
- The host reporting this metric value (should be ip:host if
this is a spoof record).decl
- The metric declaration.spoof
- if this is a spoof record.format
- The printf format to be used.value
- The value.IllegalArgumentException
- if the hostName is null
.NullPointerException
- if the declaration is null
.IllegalArgumentException
- if the format is null
.IllegalArgumentException
- if the value is null
.public IGangliaMetadataMessage getMetadata()
null
.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.