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) voidReturns all registered views that should be exported.Returns the current stats data,ViewData, associated with the given view name.voidregisterView(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:ViewManagerPull model for stats. Registers aViewthat will collect data to be accessed viaViewManager.getView(View.Name).- Specified by:
registerViewin classViewManager- Parameters:
view- theViewto be registered.
-
getView
Description copied from class:ViewManagerReturns the current stats data,ViewData, associated with the given view name.Returns
nullif theViewis not registered.- Specified by:
getViewin classViewManager- Parameters:
viewName- the name ofViewfor the current stats.- Returns:
ViewDatafor theView, ornullif theViewis not registered.
-
getAllExportedViews
Description copied from class:ViewManagerReturns 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:
getAllExportedViewsin classViewManager- Returns:
- all registered views that should be exported.
-
clearStats
void clearStats() -
resumeStatsCollection
void resumeStatsCollection()
-