public class Protocolv31x extends AbstractProtocol
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isSpoofName |
private java.lang.String |
localHostName |
private static int |
MAX_BUFFER_SIZE |
private int |
metadataMessageInterval |
private java.util.Map<java.lang.String,java.lang.Integer> |
metricCounterMap |
private java.util.UUID |
uuid |
private org.acplt.oncrpc.XdrBufferEncodingStream |
xdr |
group, port, udpAddr| Constructor and Description |
|---|
Protocolv31x(java.lang.String group,
int port,
GMetric.UDPAddressingMode mode,
int ttl,
int metadataMessageInterval,
java.util.UUID uuid,
java.lang.String spoofName) |
| Modifier and Type | Method and Description |
|---|---|
void |
announce(java.lang.String name,
java.lang.String value,
GMetricType type,
java.lang.String units,
GMetricSlope slope,
int tmax,
int dmax,
java.lang.String groupName)
Announces a metric
|
private void |
encodeGMetric(Ganglia_metric_id metric_id,
java.lang.String name,
java.lang.String value,
GMetricType type,
java.lang.String units,
GMetricSlope slope,
int tmax,
int dmax,
java.lang.String groupName)
Encodes the metric using the classes generated by remotetea
|
private void |
encodeGValue(Ganglia_metric_id metric_id,
java.lang.String value) |
private boolean |
isTimeToSendMetadata(java.lang.String metricName) |
close, finalize, sendprivate static final int MAX_BUFFER_SIZE
private org.acplt.oncrpc.XdrBufferEncodingStream xdr
private java.util.Map<java.lang.String,java.lang.Integer> metricCounterMap
private int metadataMessageInterval
private java.util.UUID uuid
private boolean isSpoofName
private java.lang.String localHostName
public Protocolv31x(java.lang.String group,
int port,
GMetric.UDPAddressingMode mode,
int ttl,
int metadataMessageInterval,
java.util.UUID uuid,
java.lang.String spoofName)
throws java.io.IOException
java.io.IOExceptionprivate boolean isTimeToSendMetadata(java.lang.String metricName)
public void announce(java.lang.String name,
java.lang.String value,
GMetricType type,
java.lang.String units,
GMetricSlope slope,
int tmax,
int dmax,
java.lang.String groupName)
throws java.lang.Exception
Protocolannounce in interface Protocolannounce in class AbstractProtocolname - the metric namevalue - the metric valuetype - the metric typeunits - the unitsslope - the slopetmax - the tmaxdmax - the dmaxgroupName - the metric groupjava.lang.Exceptionprivate void encodeGMetric(Ganglia_metric_id metric_id, java.lang.String name, java.lang.String value, GMetricType type, java.lang.String units, GMetricSlope slope, int tmax, int dmax, java.lang.String groupName) throws java.lang.Exception
java.lang.Exceptionprivate void encodeGValue(Ganglia_metric_id metric_id, java.lang.String value) throws java.lang.Exception
java.lang.Exception