|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.kafka.common.metrics.JmxReporter
public class JmxReporter
Register metrics in JMX as dynamic mbeans based on the metric names
Constructor Summary | |
---|---|
JmxReporter()
|
|
JmxReporter(java.lang.String prefix)
Create a JMX reporter that prefixes all metrics with the given string. |
Method Summary | |
---|---|
void |
close()
Called when the metrics repository is closed. |
void |
configure(java.util.Map<java.lang.String,?> configs)
Configure this class with the given key-value pairs |
void |
init(java.util.List<KafkaMetric> metrics)
This is called when the reporter is first registered to initially register all existing metrics |
void |
metricChange(KafkaMetric metric)
This is called whenever a metric is updated or added |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JmxReporter()
public JmxReporter(java.lang.String prefix)
Method Detail |
---|
public void configure(java.util.Map<java.lang.String,?> configs)
Configurable
configure
in interface Configurable
public void init(java.util.List<KafkaMetric> metrics)
MetricsReporter
init
in interface MetricsReporter
metrics
- All currently existing metricspublic void metricChange(KafkaMetric metric)
MetricsReporter
metricChange
in interface MetricsReporter
public void close()
MetricsReporter
close
in interface MetricsReporter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |