public class BrokerMetric extends CruiseControlMetric
CruiseControlMetric.MetricClassId
Constructor and Description |
---|
BrokerMetric(RawMetricType rawMetricType,
long time,
int brokerId,
double value) |
Modifier and Type | Method and Description |
---|---|
CruiseControlMetric.MetricClassId |
metricClassId()
Get the metric class id for this metric.
|
java.nio.ByteBuffer |
toBuffer(int headerPos)
Serialize the metric to a byte buffer with the header size reserved.
|
java.lang.String |
toString() |
brokerId, rawMetricType, time, value
public BrokerMetric(RawMetricType rawMetricType, long time, int brokerId, double value)
public CruiseControlMetric.MetricClassId metricClassId()
CruiseControlMetric
metricClassId
in class CruiseControlMetric
public java.nio.ByteBuffer toBuffer(int headerPos)
CruiseControlMetric
headerPos
- the header size to reserve.public java.lang.String toString()
toString
in class CruiseControlMetric