Package io.opencensus.metrics
Class MetricsComponent.NoopMetricsComponent
- java.lang.Object
-
- io.opencensus.metrics.MetricsComponent
-
- io.opencensus.metrics.MetricsComponent.NoopMetricsComponent
-
- Enclosing class:
- MetricsComponent
private static final class MetricsComponent.NoopMetricsComponent extends MetricsComponent
-
-
Field Summary
Fields Modifier and Type Field Description private static ExportComponentEXPORT_COMPONENTprivate static MetricRegistryMETRIC_REGISTRY
-
Constructor Summary
Constructors Modifier Constructor Description privateNoopMetricsComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportComponentgetExportComponent()Returns theExportComponentwith the provided implementation.MetricRegistrygetMetricRegistry()Returns theMetricRegistrywith the provided implementation.-
Methods inherited from class io.opencensus.metrics.MetricsComponent
newNoopMetricsComponent
-
-
-
-
Field Detail
-
EXPORT_COMPONENT
private static final ExportComponent EXPORT_COMPONENT
-
METRIC_REGISTRY
private static final MetricRegistry METRIC_REGISTRY
-
-
Method Detail
-
getExportComponent
public ExportComponent getExportComponent()
Description copied from class:MetricsComponentReturns theExportComponentwith the provided implementation. If no implementation is provided then no-op implementations will be used.- Specified by:
getExportComponentin classMetricsComponent- Returns:
- the
ExportComponentimplementation.
-
getMetricRegistry
public MetricRegistry getMetricRegistry()
Description copied from class:MetricsComponentReturns theMetricRegistrywith the provided implementation.- Specified by:
getMetricRegistryin classMetricsComponent- Returns:
- the
MetricRegistryimplementation.
-
-