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, wait
isMetricMetadata, isMetricRequest, isMetricValue
public AbstractGangliaMessage(GangliaMessageTypeEnum recordType, String hostName, String metricName, boolean spoof)
public GangliaMessageTypeEnum getRecordType()
IGangliaMessage
getRecordType
in interface IGangliaMessage
public String getHostName()
IGangliaMessage
Note: When IGangliaMessage.isSpoof()
reports true
this will be
ip:host
.
getHostName
in interface IGangliaMessage
public String getMetricName()
IGangliaMessage
getMetricName
in interface IGangliaMessage
public boolean isSpoof()
IGangliaMessage
true
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 IGangliaMessage
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.