@Public public abstract class AbstractReporter extends Object implements MetricReporter, CharacterFilter
Modifier and Type | Field and Description |
---|---|
protected Map<Counter,String> |
counters |
protected Map<Gauge<?>,String> |
gauges |
protected Map<Histogram,String> |
histograms |
protected org.slf4j.Logger |
log |
protected Map<Meter,String> |
meters |
NO_OP_FILTER
Constructor and Description |
---|
AbstractReporter() |
Modifier and Type | Method and Description |
---|---|
void |
notifyOfAddedMetric(Metric metric,
String metricName,
MetricGroup group)
Called when a new
Metric was added. |
void |
notifyOfRemovedMetric(Metric metric,
String metricName,
MetricGroup group)
Called when a
Metric was removed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, open
filterCharacters
public void notifyOfAddedMetric(Metric metric, String metricName, MetricGroup group)
MetricReporter
Metric
was added.notifyOfAddedMetric
in interface MetricReporter
metric
- the metric that was addedmetricName
- the name of the metricgroup
- the group that contains the metricpublic void notifyOfRemovedMetric(Metric metric, String metricName, MetricGroup group)
MetricReporter
Metric
was removed.notifyOfRemovedMetric
in interface MetricReporter
metric
- the metric that should be removedmetricName
- the name of the metricgroup
- the group that contains the metricCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.