Class ConfluentMetricsReporter
java.lang.Object
io.confluent.metrics.reporter.ConfluentMetricsReporter
- All Implemented Interfaces:
AutoCloseable, org.apache.kafka.common.ClusterResourceListener, org.apache.kafka.common.Configurable, org.apache.kafka.common.metrics.MetricsReporter, org.apache.kafka.common.Reconfigurable
public class ConfluentMetricsReporter
extends Object
implements org.apache.kafka.common.metrics.MetricsReporter, org.apache.kafka.common.ClusterResourceListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Called when the metrics repository is closed.voidConfigure this class with the given key-value pairsvoidcontextChange(org.apache.kafka.common.metrics.MetricsContext metricsContext) voidThis is called when the reporter is first registered to initially register all existing metricsvoidmetricChange(org.apache.kafka.common.metrics.KafkaMetric metric) This is called whenever a metric is updated or addedvoidmetricRemoval(org.apache.kafka.common.metrics.KafkaMetric metric) This is called whenever a metric is removedvoidonUpdate(org.apache.kafka.common.ClusterResource clusterResource) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.common.metrics.MetricsReporter
reconfigurableConfigs, reconfigure, validateReconfiguration
-
Constructor Details
-
ConfluentMetricsReporter
public ConfluentMetricsReporter()
-
-
Method Details
-
contextChange
public void contextChange(org.apache.kafka.common.metrics.MetricsContext metricsContext) - Specified by:
contextChangein interfaceorg.apache.kafka.common.metrics.MetricsReporter
-
onUpdate
public void onUpdate(org.apache.kafka.common.ClusterResource clusterResource) - Specified by:
onUpdatein interfaceorg.apache.kafka.common.ClusterResourceListener
-
configure
-
close
public void close()Called when the metrics repository is closed.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.apache.kafka.common.metrics.MetricsReporter
-
init
This is called when the reporter is first registered to initially register all existing metrics- Specified by:
initin interfaceorg.apache.kafka.common.metrics.MetricsReporter- Parameters:
metrics- All currently existing metrics
-
metricChange
public void metricChange(org.apache.kafka.common.metrics.KafkaMetric metric) This is called whenever a metric is updated or added- Specified by:
metricChangein interfaceorg.apache.kafka.common.metrics.MetricsReporter
-
metricRemoval
public void metricRemoval(org.apache.kafka.common.metrics.KafkaMetric metric) This is called whenever a metric is removed- Specified by:
metricRemovalin interfaceorg.apache.kafka.common.metrics.MetricsReporter
-