public class DefaultKafkaMetricAccumulator extends Object implements org.apache.flink.api.common.accumulators.Accumulator<Void,Double>, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isMerged |
protected org.apache.kafka.common.metrics.KafkaMetric |
kafkaMetric |
protected double |
mergedValue |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Void value) |
org.apache.flink.api.common.accumulators.Accumulator<Void,Double> |
clone() |
static DefaultKafkaMetricAccumulator |
createFor(org.apache.kafka.common.Metric metric) |
Double |
getLocalValue() |
protected static org.apache.kafka.common.metrics.Measurable |
getMeasurableFromKafkaMetric(org.apache.kafka.common.metrics.KafkaMetric kafkaMetric)
This utility method is using reflection to get the Measurable from the KafkaMetric.
|
void |
merge(org.apache.flink.api.common.accumulators.Accumulator<Void,Double> other) |
void |
resetLocal() |
String |
toString() |
protected boolean isMerged
protected double mergedValue
protected transient org.apache.kafka.common.metrics.KafkaMetric kafkaMetric
public static DefaultKafkaMetricAccumulator createFor(org.apache.kafka.common.Metric metric)
protected static org.apache.kafka.common.metrics.Measurable getMeasurableFromKafkaMetric(org.apache.kafka.common.metrics.KafkaMetric kafkaMetric)
kafkaMetric - the metric to extract the field formpublic void add(Void value)
public Double getLocalValue()
public void resetLocal()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.