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 StatsManager
statsManager
-
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 producedMetric
s 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:MetricProducer
Returns a collection of producedMetric
s to be exported.- Specified by:
getMetrics
in classMetricProducer
- Returns:
- a collection of produced
Metric
s to be exported.
-
-