public abstract class ViewManager extends Object
| Constructor and Description |
|---|
ViewManager() |
| Modifier and Type | Method and Description |
|---|---|
abstract Set<View> |
getAllExportedViews()
Returns all registered views that should be exported.
|
abstract ViewData |
getView(View.Name view)
Returns the current stats data,
ViewData, associated with the given view name. |
abstract void |
registerView(View view)
Pull model for stats.
|
public abstract void registerView(View view)
View that will collect data to be accessed via getView(View.Name).view - the View to be registered.@Nullable public abstract ViewData getView(View.Name view)
ViewData, associated with the given view name.
Returns null if the View is not registered.
view - the name of View for the current stats.ViewData for the View, or null if the View is not
registered.public abstract Set<View> getAllExportedViews()
This method should be used by any stats exporter that automatically exports data for views
registered with the ViewManager.