Class NoopStats.NoopStatsComponent
java.lang.Object
io.opencensus.stats.StatsComponent
io.opencensus.stats.NoopStats.NoopStatsComponent
- Enclosing class:
NoopStats
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetState()Returns the currentStatsCollectionState.Returns the defaultStatsRecorder.Returns the defaultViewManager.voidsetState(StatsCollectionState state) Deprecated.
-
Field Details
-
viewManager
-
isRead
private volatile boolean isRead
-
-
Constructor Details
-
NoopStatsComponent
private NoopStatsComponent()
-
-
Method Details
-
getViewManager
Description copied from class:StatsComponentReturns the defaultViewManager.- Specified by:
getViewManagerin classStatsComponent
-
getStatsRecorder
Description copied from class:StatsComponentReturns the defaultStatsRecorder.- Specified by:
getStatsRecorderin classStatsComponent
-
getState
Description copied from class:StatsComponentReturns the currentStatsCollectionState.When no implementation is available,
getStatealways returnsStatsCollectionState.DISABLED.Once
StatsComponent.getState()is called, subsequent calls toStatsComponent.setState(StatsCollectionState)will throw anIllegalStateException.- Specified by:
getStatein classStatsComponent- Returns:
- the current
StatsCollectionState.
-
setState
Deprecated.Description copied from class:StatsComponentSets the currentStatsCollectionState.When no implementation is available,
setStatedoes not change the state.If state is set to
StatsCollectionState.DISABLED, all stats that are previously recorded will be cleared.- Specified by:
setStatein classStatsComponent- Parameters:
state- the newStatsCollectionState.
-