Package io.opencensus.stats
Class ViewManager
java.lang.Object
io.opencensus.stats.ViewManager
- Direct Known Subclasses:
NoopStats.NoopViewManager
,ViewManagerImpl
- Since:
- 0.8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all registered views that should be exported.abstract ViewData
Returns the current stats data,ViewData
, associated with the given view name.abstract void
registerView
(View view) Pull model for stats.
-
Constructor Details
-
ViewManager
public ViewManager()
-
-
Method Details
-
registerView
Pull model for stats. Registers aView
that will collect data to be accessed viagetView(View.Name)
.- Parameters:
view
- theView
to be registered.- Since:
- 0.8
-
getView
Returns the current stats data,ViewData
, associated with the given view name.Returns
null
if theView
is not registered.- Parameters:
view
- the name ofView
for the current stats.- Returns:
ViewData
for theView
, ornull
if theView
is not registered.- Since:
- 0.8
-
getAllExportedViews
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
.- Returns:
- all registered views that should be exported.
- Since:
- 0.9
-