Class MetricsComponent
java.lang.Object
io.opencensus.metrics.MetricsComponent
- Direct Known Subclasses:
MetricsComponent.NoopMetricsComponent, MetricsComponentImplBase
Class that holds the implementation instance for
ExportComponent.- Since:
- 0.17
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ExportComponentReturns theExportComponentwith the provided implementation.abstract MetricRegistryReturns theMetricRegistrywith the provided implementation.(package private) static MetricsComponentReturns an instance that contains no-op implementations for all the instances.
-
Constructor Details
-
MetricsComponent
public MetricsComponent()
-
-
Method Details
-
getExportComponent
Returns theExportComponentwith the provided implementation. If no implementation is provided then no-op implementations will be used.- Returns:
- the
ExportComponentimplementation. - Since:
- 0.17
-
getMetricRegistry
Returns theMetricRegistrywith the provided implementation.- Returns:
- the
MetricRegistryimplementation. - Since:
- 0.17
-
newNoopMetricsComponent
Returns an instance that contains no-op implementations for all the instances.- Returns:
- an instance that contains no-op implementations for all the instances.
-