public class PartitionMetric extends CruiseControlMetric
CruiseControlMetric.MetricClassId
Constructor and Description |
---|
PartitionMetric(RawMetricType rawMetricType,
long time,
int brokerId,
java.lang.String topic,
int partition,
double value) |
Modifier and Type | Method and Description |
---|---|
CruiseControlMetric.MetricClassId |
metricClassId()
Get the metric class id for this metric.
|
int |
partition() |
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 PartitionMetric(RawMetricType rawMetricType, long time, int brokerId, java.lang.String topic, int partition, double value)
public CruiseControlMetric.MetricClassId metricClassId()
CruiseControlMetric
metricClassId
in class CruiseControlMetric
public java.lang.String topic()
public int partition()
public java.nio.ByteBuffer toBuffer(int headerPos)
CruiseControlMetric
headerPos
- the header size to reserve.public java.lang.String toString()
toString
in class CruiseControlMetric