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
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetCounter(String statName) getOpStatsLogger(String statName) getThreadScopedCounter(String name) Thread-scoped stats not currently supported.Thread-scoped stats not currently supported.<T extends Number>
voidregisterGauge(String statName, Gauge<T> gauge) Register given gauge as name name.voidremoveScope(String scope, StatsLogger statsLogger) Remove the given statsLogger for scope name.Provide the stats logger under scope name.<T extends Number>
voidunregisterGauge(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, waitMethods inherited from interface org.apache.bookkeeper.stats.StatsLogger
scopeLabel
-
Field Details
-
first
-
second
-
-
Method Details
-
getOpStatsLogger
- Specified by:
getOpStatsLoggerin interfaceStatsLogger- Parameters:
statName- Stats Name- Returns:
- Get the logger for an OpStat described by the name.
-
getCounter
- Specified by:
getCounterin interfaceStatsLogger- Parameters:
statName- Stats Name- Returns:
- Get the logger for a simple stat described by the name
-
registerGauge
Description copied from interface:StatsLoggerRegister given gauge as name name.- Specified by:
registerGaugein interfaceStatsLogger- Parameters:
statName- gauge namegauge- gauge function
-
unregisterGauge
Description copied from interface:StatsLoggerUnregister given gauge from name name.- Specified by:
unregisterGaugein interfaceStatsLogger- Parameters:
statName- name of the gaugegauge- gauge function
-
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
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
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
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.
-