Class BroadCastStatsLogger.Two

java.lang.Object
org.apache.bookkeeper.common.stats.BroadCastStatsLogger.Two
All Implemented Interfaces:
StatsLogger
Direct Known Subclasses:
BroadCastStatsLogger.MasterSlave
Enclosing class:
BroadCastStatsLogger

static class BroadCastStatsLogger.Two extends Object implements StatsLogger
  • Field Details

  • Method Details

    • getOpStatsLogger

      public OpStatsLogger getOpStatsLogger(String statName)
      Specified by:
      getOpStatsLogger in interface StatsLogger
      Parameters:
      statName - Stats Name
      Returns:
      Get the logger for an OpStat described by the name.
    • getCounter

      public Counter getCounter(String statName)
      Specified by:
      getCounter in interface StatsLogger
      Parameters:
      statName - Stats Name
      Returns:
      Get the logger for a simple stat described by the name
    • registerGauge

      public <T extends Number> void registerGauge(String statName, Gauge<T> gauge)
      Description copied from interface: StatsLogger
      Register given gauge as name name.
      Specified by:
      registerGauge in interface StatsLogger
      Parameters:
      statName - gauge name
      gauge - gauge function
    • unregisterGauge

      public <T extends Number> void unregisterGauge(String statName, Gauge<T> gauge)
      Description copied from interface: StatsLogger
      Unregister given gauge from name name.
      Specified by:
      unregisterGauge in interface StatsLogger
      Parameters:
      statName - name of the gauge
      gauge - gauge function
    • scope

      public StatsLogger scope(String scope)
      Description copied from interface: StatsLogger
      Provide the stats logger under scope name.
      Specified by:
      scope in interface StatsLogger
      Parameters:
      scope - scope name.
      Returns:
      stats logger under scope name.
    • removeScope

      public void removeScope(String scope, StatsLogger statsLogger)
      Description copied from interface: StatsLogger
      Remove the given statsLogger for scope name. It can be no-op if the underlying stats provider doesn't have the ability to remove scope.
      Specified by:
      removeScope in interface StatsLogger
      Parameters:
      scope - name of the scope
      statsLogger - the stats logger of this scope.
    • getThreadScopedOpStatsLogger

      public OpStatsLogger getThreadScopedOpStatsLogger(String name)
      Thread-scoped stats not currently supported.
      Specified by:
      getThreadScopedOpStatsLogger in interface StatsLogger
      Parameters:
      name - Stats Name
      Returns:
      Get the logger for an OpStat described by the name with extra labels for the threadpool/threadname and thread no. Lone threads always have 0 as their thread no.
    • getThreadScopedCounter

      public Counter getThreadScopedCounter(String name)
      Thread-scoped stats not currently supported.
      Specified by:
      getThreadScopedCounter in interface StatsLogger
      Parameters:
      name - Stats Name
      Returns:
      Get the logger for a simple stat described by the name with extra labels for the threadpool/threadname and thread no. Lone threads always have 0 as their thread no.