Class AbstractReporter
- java.lang.Object
-
- org.apache.flink.metrics.reporter.AbstractReporter
-
- All Implemented Interfaces:
CharacterFilter,Reporter,MetricReporter
@Public public abstract class AbstractReporter extends Object implements MetricReporter, CharacterFilter
Base interface for custom metric reporters.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Counter,String>countersprotected Map<Gauge<?>,String>gaugesprotected Map<Histogram,String>histogramsprotected org.slf4j.Loggerlogprotected Map<Meter,String>meters-
Fields inherited from interface org.apache.flink.metrics.CharacterFilter
NO_OP_FILTER
-
-
Constructor Summary
Constructors Constructor Description AbstractReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnotifyOfAddedMetric(Metric metric, String metricName, MetricGroup group)Called when a newMetricwas added.voidnotifyOfRemovedMetric(Metric metric, String metricName, MetricGroup group)Called when aMetricwas removed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.metrics.CharacterFilter
filterCharacters
-
-
-
-
Method Detail
-
notifyOfAddedMetric
public void notifyOfAddedMetric(Metric metric, String metricName, MetricGroup group)
Description copied from interface:MetricReporterCalled when a newMetricwas added.- Specified by:
notifyOfAddedMetricin interfaceMetricReporter- Parameters:
metric- the metric that was addedmetricName- the name of the metricgroup- the group that contains the metric
-
notifyOfRemovedMetric
public void notifyOfRemovedMetric(Metric metric, String metricName, MetricGroup group)
Description copied from interface:MetricReporterCalled when aMetricwas removed.- Specified by:
notifyOfRemovedMetricin interfaceMetricReporter- Parameters:
metric- the metric that should be removedmetricName- the name of the metricgroup- the group that contains the metric
-
-