Package io.opencensus.metrics.export
Class ExportComponent
- java.lang.Object
-
- io.opencensus.metrics.export.ExportComponent
-
- Direct Known Subclasses:
ExportComponent.NoopExportComponent,ExportComponentImpl
@ExperimentalApi public abstract class ExportComponent extends java.lang.Object
Class that holds the implementation instance forMetricProducerManager.Unless otherwise noted all methods (on component) results are cacheable.
- Since:
- 0.17
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classExportComponent.NoopExportComponent
-
Constructor Summary
Constructors Constructor Description ExportComponent()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract MetricProducerManagergetMetricProducerManager()Returns the globalMetricProducerManagerwhich can be used to register handlers to export all the recorded metrics.static ExportComponentnewNoopExportComponent()Returns the no-op implementation of theExportComponent.
-
-
-
Method Detail
-
newNoopExportComponent
public static ExportComponent newNoopExportComponent()
Returns the no-op implementation of theExportComponent.- Returns:
- the no-op implementation of the
ExportComponent. - Since:
- 0.17
-
getMetricProducerManager
public abstract MetricProducerManager getMetricProducerManager()
Returns the globalMetricProducerManagerwhich can be used to register handlers to export all the recorded metrics.- Returns:
- the implementation of the
MetricExporteror no-op if no implementation linked in the binary. - Since:
- 0.17
-
-