public abstract class AbstractReporter extends Object implements MetricReporter, CharacterFilter
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
| 构造器和说明 |
|---|
AbstractReporter() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 should be removed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, openfilterCharacterspublic void notifyOfAddedMetric(Metric metric, String metricName, MetricGroup group)
MetricReporterMetric was added.notifyOfAddedMetric 在接口中 MetricReportermetric - the metric that was addedmetricName - the name of the metricgroup - the group that contains the metricpublic void notifyOfRemovedMetric(Metric metric, String metricName, MetricGroup group)
MetricReporterMetric was should be removed.notifyOfRemovedMetric 在接口中 MetricReportermetric - the metric that should be removedmetricName - the name of the metricgroup - the group that contains the metricCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.