Package io.opencensus.implcore.stats
Class MetricProducerImpl
- java.lang.Object
-
- io.opencensus.metrics.export.MetricProducer
-
- io.opencensus.implcore.stats.MetricProducerImpl
-
@ThreadSafe final class MetricProducerImpl extends MetricProducer
Implementation ofMetricProducer.
-
-
Field Summary
Fields Modifier and Type Field Description private StatsManagerstatsManager
-
Constructor Summary
Constructors Constructor Description MetricProducerImpl(StatsManager statsManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Metric>getMetrics()Returns a collection of producedMetrics to be exported.
-
-
-
Field Detail
-
statsManager
private final StatsManager statsManager
-
-
Constructor Detail
-
MetricProducerImpl
MetricProducerImpl(StatsManager statsManager)
-
-
Method Detail
-
getMetrics
public java.util.Collection<Metric> getMetrics()
Description copied from class:MetricProducerReturns a collection of producedMetrics to be exported.- Specified by:
getMetricsin classMetricProducer- Returns:
- a collection of produced
Metrics to be exported.
-
-