public class TopicMetric extends CruiseControlMetric
CruiseControlMetric.MetricClassId
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_topic |
Constructor and Description |
---|
TopicMetric(RawMetricType rawMetricType,
long time,
int brokerId,
java.lang.String topic,
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 |
topic() |
java.lang.String |
toString() |
brokerId, rawMetricType, time, value
public TopicMetric(RawMetricType rawMetricType, long time, int brokerId, java.lang.String topic, double value)
public CruiseControlMetric.MetricClassId metricClassId()
CruiseControlMetric
metricClassId
in class CruiseControlMetric
public java.lang.String topic()
public java.nio.ByteBuffer toBuffer(int headerPos)
CruiseControlMetric
headerPos
- the header size to reserve.public java.lang.String toString()
toString
in class CruiseControlMetric