Package io.opencensus.stats
Class ViewManager
- java.lang.Object
-
- io.opencensus.stats.ViewManager
-
- Direct Known Subclasses:
NoopStats.NoopViewManager,ViewManagerImpl
public abstract class ViewManager extends java.lang.Object- Since:
- 0.8
-
-
Constructor Summary
Constructors Constructor Description ViewManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.util.Set<View>getAllExportedViews()Returns all registered views that should be exported.abstract ViewDatagetView(View.Name view)Returns the current stats data,ViewData, associated with the given view name.abstract voidregisterView(View view)Pull model for stats.
-
-
-
Method Detail
-
registerView
public abstract void registerView(View view)
Pull model for stats. Registers aViewthat will collect data to be accessed viagetView(View.Name).- Parameters:
view- theViewto be registered.- Since:
- 0.8
-
getView
@Nullable public abstract ViewData getView(View.Name view)
Returns the current stats data,ViewData, associated with the given view name.Returns
nullif theViewis not registered.- Parameters:
view- the name ofViewfor the current stats.- Returns:
ViewDatafor theView, ornullif theViewis not registered.- Since:
- 0.8
-
getAllExportedViews
public abstract java.util.Set<View> 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
-
-