public abstract class AbstractGangliaMessage extends Object implements IGangliaMessage
| Constructor and Description |
|---|
AbstractGangliaMessage(GangliaMessageTypeEnum recordType,
String hostName,
String metricName,
boolean spoof) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
equals(Object o) |
String |
getHostName()
The name of the host for which the metric was reported.
|
String |
getMetricName()
The name of the metric (this needs to be clean for use in a file system
so the application name of the metric needs to be munged before it is
saved here).
|
GangliaMessageTypeEnum |
getRecordType()
The code for the type of message.
|
abstract int |
hashCode() |
boolean |
isSpoof()
true iff this is a spoofed message. |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisMetricMetadata, isMetricRequest, isMetricValuepublic AbstractGangliaMessage(GangliaMessageTypeEnum recordType, String hostName, String metricName, boolean spoof)
public GangliaMessageTypeEnum getRecordType()
IGangliaMessagegetRecordType in interface IGangliaMessagepublic String getHostName()
IGangliaMessage
Note: When IGangliaMessage.isSpoof() reports true this will be
ip:host.
getHostName in interface IGangliaMessagepublic String getMetricName()
IGangliaMessagegetMetricName in interface IGangliaMessagepublic boolean isSpoof()
IGangliaMessagetrue iff this is a spoofed message.
Note: Spoof messages format IGangliaMessage.getHostName() as
ip:host and provide a means to fake metrics for a host which
is down (or which is not running ganglia).
isSpoof in interface IGangliaMessageCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.