public class BrokerMetricSample extends MetricSample<BrokerEntity>
KafkaMetricDef
.entity, sampleCloseTime, sampleOpenTime, valuesByMetricId
Constructor and Description |
---|
BrokerMetricSample(String host,
Integer brokerId)
Create a broker metric sample with the given host name, broker id, and version to be used in deserialization.
|
Modifier and Type | Method and Description |
---|---|
int |
brokerId() |
protected MetricDef |
metricDefForToString()
A method that can be overridden by subclasses to get prettier toString() format.
|
Double |
metricValue(KafkaMetricDef kafkaMetricDef) |
allMetricValues, close, entity, isValid, metricValue, open, record, sampleCloseTime, sampleOpenTime, toString
public int brokerId()
protected MetricDef metricDefForToString()
MetricSample
metricDefForToString
in class MetricSample<BrokerEntity>
MetricDef
used for toString() method.public Double metricValue(KafkaMetricDef kafkaMetricDef)