public interface MetricReporter
Metrics to an external backend.
Reporters are instantiated via reflection and must be public, non-abstract, and have a public no-argument constructor.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this reporter.
|
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. |
void |
open(MetricConfig config)
Configures this reporter.
|
void open(MetricConfig config)
This method is always called first on a newly instantiated reporter.
config - A properties object that contains all parameters set for this reporter.void close()
void notifyOfAddedMetric(Metric metric, String metricName, MetricGroup group)
Metric was added.metric - the metric that was addedmetricName - the name of the metricgroup - the group that contains the metricvoid notifyOfRemovedMetric(Metric metric, String metricName, MetricGroup group)
Metric was should be removed.metric - the metric that should be removedmetricName - the name of the metricgroup - the group that contains the metricCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.