Class NoopStats.NoopViewManager

  • Enclosing class:
    NoopStats

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

      • ZERO_TIMESTAMP

        private static final Timestamp ZERO_TIMESTAMP
      • registeredViews

        private final java.util.Map<View.Name,​View> registeredViews
      • exportedViews

        @Nullable
        private volatile java.util.Set<View> exportedViews
    • Constructor Detail

      • NoopViewManager

        private NoopViewManager()
    • Method Detail

      • 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 java.util.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 java.util.Set<View> filterExportedViews​(java.util.Collection<View> allViews)