Class ViewManagerImpl

java.lang.Object
io.opencensus.stats.ViewManager
io.opencensus.implcore.stats.ViewManagerImpl

public final class ViewManagerImpl extends ViewManager
Implementation of ViewManager.
  • Field Details

  • Constructor Details

    • ViewManagerImpl

      ViewManagerImpl(StatsManager statsManager)
  • Method Details

    • registerView

      public void registerView(View view)
      Description copied from class: ViewManager
      Pull model for stats. Registers a View that will collect data to be accessed via ViewManager.getView(View.Name).
      Specified by:
      registerView in class ViewManager
      Parameters:
      view - the View to be registered.
    • getView

      @Nullable public ViewData getView(View.Name viewName)
      Description copied from class: ViewManager
      Returns the current stats data, ViewData, associated with the given view name.

      Returns null if the View is not registered.

      Specified by:
      getView in class ViewManager
      Parameters:
      viewName - the name of View for the current stats.
      Returns:
      ViewData for the View, or null if the View is not registered.
    • getAllExportedViews

      public Set<View> 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 class ViewManager
      Returns:
      all registered views that should be exported.
    • clearStats

      void clearStats()
    • resumeStatsCollection

      void resumeStatsCollection()