Class NoopStats.NoopViewManager

java.lang.Object
io.opencensus.stats.ViewManager
io.opencensus.stats.NoopStats.NoopViewManager
Enclosing class:
NoopStats

@ThreadSafe private static final class NoopStats.NoopViewManager extends ViewManager
  • Field Details

  • Constructor Details

    • NoopViewManager

      private NoopViewManager()
  • Method Details

    • registerView

      public void registerView(View newView)
      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:
      newView - the View to be registered.
    • getView

      @Nullable public ViewData getView(View.Name name)
      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:
      name - 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.
    • filterExportedViews

      private static Set<View> filterExportedViews(Collection<View> allViews)