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 java.lang.Object implements StatsLogger
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected StatsLoggerfirstprotected StatsLoggersecond 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CountergetCounter(java.lang.String statName)OpStatsLoggergetOpStatsLogger(java.lang.String statName)CountergetThreadScopedCounter(java.lang.String name)Thread-scoped stats not currently supported.OpStatsLoggergetThreadScopedOpStatsLogger(java.lang.String name)Thread-scoped stats not currently supported.<T extends java.lang.Number>
voidregisterGauge(java.lang.String statName, Gauge<T> gauge)Register given gauge as name name.voidremoveScope(java.lang.String scope, StatsLogger statsLogger)Remove the given statsLogger for scope name.StatsLoggerscope(java.lang.String scope)Provide the stats logger under scope name.<T extends java.lang.Number>
voidunregisterGauge(java.lang.String statName, Gauge<T> gauge)Unregister given gauge from name name.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.apache.bookkeeper.stats.StatsLogger
scopeLabel 
 - 
 
 - 
 
- 
- 
Field Detail
- 
first
protected final StatsLogger first
 
- 
second
protected final StatsLogger second
 
 - 
 
- 
Method Detail
- 
getOpStatsLogger
public OpStatsLogger getOpStatsLogger(java.lang.String statName)
- Specified by:
 getOpStatsLoggerin interfaceStatsLogger- Parameters:
 statName- Stats Name- Returns:
 - Get the logger for an OpStat described by the name.
 
 
- 
getCounter
public Counter getCounter(java.lang.String statName)
- Specified by:
 getCounterin interfaceStatsLogger- Parameters:
 statName- Stats Name- Returns:
 - Get the logger for a simple stat described by the name
 
 
- 
registerGauge
public <T extends java.lang.Number> void registerGauge(java.lang.String statName, Gauge<T> gauge)Description copied from interface:StatsLoggerRegister given gauge as name name.- Specified by:
 registerGaugein interfaceStatsLogger- Parameters:
 statName- gauge namegauge- gauge function
 
- 
unregisterGauge
public <T extends java.lang.Number> void unregisterGauge(java.lang.String statName, Gauge<T> gauge)Description copied from interface:StatsLoggerUnregister given gauge from name name.- Specified by:
 unregisterGaugein interfaceStatsLogger- Parameters:
 statName- name of the gaugegauge- gauge function
 
- 
scope
public StatsLogger scope(java.lang.String scope)
Description copied from interface:StatsLoggerProvide the stats logger under scope name.- Specified by:
 scopein interfaceStatsLogger- Parameters:
 scope- scope name.- Returns:
 - stats logger under scope name.
 
 
- 
removeScope
public void removeScope(java.lang.String scope, StatsLogger statsLogger)Description copied from interface:StatsLoggerRemove 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:
 removeScopein interfaceStatsLogger- Parameters:
 scope- name of the scopestatsLogger- the stats logger of this scope.
 
- 
getThreadScopedOpStatsLogger
public OpStatsLogger getThreadScopedOpStatsLogger(java.lang.String name)
Thread-scoped stats not currently supported.- Specified by:
 getThreadScopedOpStatsLoggerin interfaceStatsLogger- 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(java.lang.String name)
Thread-scoped stats not currently supported.- Specified by:
 getThreadScopedCounterin interfaceStatsLogger- 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.
 
 
 - 
 
 -