Package io.opencensus.implcore.metrics
Class MetricsComponentImplBase
- java.lang.Object
-
- io.opencensus.metrics.MetricsComponent
-
- io.opencensus.implcore.metrics.MetricsComponentImplBase
-
- Direct Known Subclasses:
MetricsComponentImpl
,MetricsComponentImplLite
public class MetricsComponentImplBase extends MetricsComponent
Implementation ofMetricsComponent
.
-
-
Field Summary
Fields Modifier and Type Field Description private ExportComponentImpl
exportComponent
private MetricRegistryImpl
metricRegistry
-
Constructor Summary
Constructors Modifier Constructor Description protected
MetricsComponentImplBase(Clock clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportComponentImpl
getExportComponent()
Returns theExportComponent
with the provided implementation.MetricRegistryImpl
getMetricRegistry()
Returns theMetricRegistry
with the provided implementation.
-
-
-
Field Detail
-
exportComponent
private final ExportComponentImpl exportComponent
-
metricRegistry
private final MetricRegistryImpl metricRegistry
-
-
Constructor Detail
-
MetricsComponentImplBase
protected MetricsComponentImplBase(Clock clock)
-
-
Method Detail
-
getExportComponent
public ExportComponentImpl getExportComponent()
Description copied from class:MetricsComponent
Returns theExportComponent
with the provided implementation. If no implementation is provided then no-op implementations will be used.- Specified by:
getExportComponent
in classMetricsComponent
- Returns:
- the
ExportComponent
implementation.
-
getMetricRegistry
public MetricRegistryImpl getMetricRegistry()
Description copied from class:MetricsComponent
Returns theMetricRegistry
with the provided implementation.- Specified by:
getMetricRegistry
in classMetricsComponent
- Returns:
- the
MetricRegistry
implementation.
-
-