public class Protocolv30x extends AbstractProtocol
| Modifier and Type | Field and Description |
|---|---|
private static int |
MAX_BUFFER_SIZE |
private org.acplt.oncrpc.XdrBufferEncodingStream |
xdr |
group, port, udpAddr| Constructor and Description |
|---|
Protocolv30x(java.lang.String group,
int port,
GMetric.UDPAddressingMode mode,
int ttl) |
| 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(java.lang.String name,
java.lang.String value,
GMetricType type,
java.lang.String units,
GMetricSlope slope,
int tmax,
int dmax)
Encodes the metric using the classes generated by remotetea
|
close, finalize, sendprivate static final int MAX_BUFFER_SIZE
private org.acplt.oncrpc.XdrBufferEncodingStream xdr
public Protocolv30x(java.lang.String group,
int port,
GMetric.UDPAddressingMode mode,
int ttl)
throws java.io.IOException
java.io.IOExceptionpublic 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(java.lang.String name,
java.lang.String value,
GMetricType type,
java.lang.String units,
GMetricSlope slope,
int tmax,
int dmax)
throws java.lang.Exception
java.lang.Exception