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 ExportComponent
EXPORT_COMPONENT
private static MetricRegistry
METRIC_REGISTRY
-
Constructor Summary
Constructors Modifier Constructor Description private
NoopMetricsComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportComponent
getExportComponent()
Returns theExportComponent
with the provided implementation.MetricRegistry
getMetricRegistry()
Returns theMetricRegistry
with 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: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 MetricRegistry getMetricRegistry()
Description copied from class:MetricsComponent
Returns theMetricRegistry
with the provided implementation.- Specified by:
getMetricRegistry
in classMetricsComponent
- Returns:
- the
MetricRegistry
implementation.
-
-