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