@ExperimentalApi @ThreadSafe public abstract class MetricProducerManager extends Object
MetricProducer
that is used by exporters to determine the metrics that
need to be exported.Constructor and Description |
---|
MetricProducerManager() |
Modifier and Type | Method and Description |
---|---|
abstract void |
add(MetricProducer metricProducer)
Adds the
MetricProducer to the manager if it is not already present. |
abstract Set<MetricProducer> |
getAllMetricProducer()
Returns all registered
MetricProducer s that should be exported. |
abstract void |
remove(MetricProducer metricProducer)
Removes the
MetricProducer to the manager if it is present. |
public abstract void add(MetricProducer metricProducer)
MetricProducer
to the manager if it is not already present.metricProducer
- the MetricProducer
to be added to the manager.public abstract void remove(MetricProducer metricProducer)
MetricProducer
to the manager if it is present.metricProducer
- the MetricProducer
to be removed from the manager.public abstract Set<MetricProducer> getAllMetricProducer()
MetricProducer
s that should be exported.
This method should be used by any metrics exporter that automatically exports data for
MetricProducer
registered with the MetricProducerManager
.
MetricProducer
s that should be exported.