Package io.opencensus.stats
Class NoopStats.NoopViewManager
java.lang.Object
io.opencensus.stats.ViewManager
io.opencensus.stats.NoopStats.NoopViewManager
- Enclosing class:
NoopStats
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilterExportedViews
(Collection<View> allViews) Returns all registered views that should be exported.Returns the current stats data,ViewData
, associated with the given view name.void
registerView
(View newView) Pull model for stats.
-
Field Details
-
ZERO_TIMESTAMP
-
registeredViews
-
exportedViews
-
-
Constructor Details
-
NoopViewManager
private NoopViewManager()
-
-
Method Details
-
registerView
Description copied from class:ViewManager
Pull model for stats. Registers aView
that will collect data to be accessed viaViewManager.getView(View.Name)
.- Specified by:
registerView
in classViewManager
- Parameters:
newView
- theView
to be registered.
-
getView
Description copied from class:ViewManager
Returns the current stats data,ViewData
, associated with the given view name.Returns
null
if theView
is not registered.- Specified by:
getView
in classViewManager
- Parameters:
name
- the name ofView
for the current stats.- Returns:
ViewData
for theView
, ornull
if theView
is not registered.
-
getAllExportedViews
Description copied from class:ViewManager
Returns all registered views that should be exported.This method should be used by any stats exporter that automatically exports data for views registered with the
ViewManager
.- Specified by:
getAllExportedViews
in classViewManager
- Returns:
- all registered views that should be exported.
-
filterExportedViews
-