Class NoopStats

java.lang.Object
io.opencensus.stats.NoopStats

final class NoopStats extends Object
No-op implementations of stats classes.
  • Constructor Details

    • NoopStats

      private NoopStats()
  • Method Details

    • newNoopStatsComponent

      static StatsComponent newNoopStatsComponent()
      Returns a StatsComponent that has a no-op implementation for StatsRecorder.
      Returns:
      a StatsComponent that has a no-op implementation for StatsRecorder.
    • getNoopStatsRecorder

      static StatsRecorder getNoopStatsRecorder()
      Returns a StatsRecorder that does not record any data.
      Returns:
      a StatsRecorder that does not record any data.
    • newNoopMeasureMap

      static MeasureMap newNoopMeasureMap()
      Returns a MeasureMap that ignores all calls to MeasureMap.put(io.opencensus.stats.Measure.MeasureDouble, double).
      Returns:
      a MeasureMap that ignores all calls to MeasureMap#put.
    • newNoopViewManager

      static ViewManager newNoopViewManager()
      Returns a ViewManager that maintains a map of views, but always returns empty ViewDatas.
      Returns:
      a ViewManager that maintains a map of views, but always returns empty ViewDatas.