Package io.opencensus.implcore.stats
Class ViewManagerImpl
java.lang.Object
io.opencensus.stats.ViewManager
io.opencensus.implcore.stats.ViewManagerImpl
Implementation of
ViewManager
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Returns all registered views that should be exported.Returns the current stats data,ViewData
, associated with the given view name.void
registerView
(View view) Pull model for stats.(package private) void
-
Field Details
-
statsManager
-
-
Constructor Details
-
ViewManagerImpl
ViewManagerImpl(StatsManager statsManager)
-
-
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:
view
- 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:
viewName
- 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.
-
clearStats
void clearStats() -
resumeStatsCollection
void resumeStatsCollection()
-