Class KafkaMetricDecorator<M extends org.apache.kafka.common.Metric>

  • Type Parameters:
    M - the Kafka Metric type
    All Implemented Interfaces:
    org.apache.heron.api.metric.IMetric<Object>

    public class KafkaMetricDecorator<M extends org.apache.kafka.common.Metric>
    extends Object
    implements org.apache.heron.api.metric.IMetric<Object>
    a decorator to convert a Kafka Metric to a Heron Metric so that Kafka metrics can be exposed via Heron Metrics Manager
    • Method Detail

      • getValueAndReset

        public Object getValueAndReset()
        Specified by:
        getValueAndReset in interface org.apache.heron.api.metric.IMetric<M extends org.apache.kafka.common.Metric>