org.apache.kafka.common.metrics
Class KafkaMetric

java.lang.Object
  extended by org.apache.kafka.common.metrics.KafkaMetric
All Implemented Interfaces:
Metric

public final class KafkaMetric
extends java.lang.Object
implements Metric


Method Summary
 void config(MetricConfig config)
           
 java.lang.String description()
          A description of what is measured...this will be "" if no description was given
 java.lang.String name()
          A unique name for this metric
 double value()
          The value of the metric
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

name

public java.lang.String name()
Description copied from interface: Metric
A unique name for this metric

Specified by:
name in interface Metric

description

public java.lang.String description()
Description copied from interface: Metric
A description of what is measured...this will be "" if no description was given

Specified by:
description in interface Metric

value

public double value()
Description copied from interface: Metric
The value of the metric

Specified by:
value in interface Metric

config

public void config(MetricConfig config)