Class BroadCastStatsLogger.MasterSlave
- java.lang.Object
-
- org.apache.bookkeeper.common.stats.BroadCastStatsLogger.Two
-
- org.apache.bookkeeper.common.stats.BroadCastStatsLogger.MasterSlave
-
- All Implemented Interfaces:
StatsLogger
- Enclosing class:
- BroadCastStatsLogger
static class BroadCastStatsLogger.MasterSlave extends BroadCastStatsLogger.Two
-
-
Field Summary
-
Fields inherited from class org.apache.bookkeeper.common.stats.BroadCastStatsLogger.Two
first, second
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends java.lang.Number>
voidregisterGauge(java.lang.String statName, Gauge<T> gauge)
Register given gauge as name name.StatsLogger
scope(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 org.apache.bookkeeper.common.stats.BroadCastStatsLogger.Two
getCounter, getOpStatsLogger, getThreadScopedCounter, getThreadScopedOpStatsLogger, removeScope
-
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
-
-
-
-
Method Detail
-
registerGauge
public <T extends java.lang.Number> void registerGauge(java.lang.String statName, Gauge<T> gauge)
Description copied from interface:StatsLogger
Register given gauge as name name.- Specified by:
registerGauge
in interfaceStatsLogger
- Overrides:
registerGauge
in classBroadCastStatsLogger.Two
- 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:StatsLogger
Unregister given gauge from name name.- Specified by:
unregisterGauge
in interfaceStatsLogger
- Overrides:
unregisterGauge
in classBroadCastStatsLogger.Two
- Parameters:
statName
- name of the gaugegauge
- gauge function
-
scope
public StatsLogger scope(java.lang.String scope)
Description copied from interface:StatsLogger
Provide the stats logger under scope name.- Specified by:
scope
in interfaceStatsLogger
- Overrides:
scope
in classBroadCastStatsLogger.Two
- Parameters:
scope
- scope name.- Returns:
- stats logger under scope name.
-
-