Class FastCodahaleStatsLogger
- java.lang.Object
-
- org.apache.bookkeeper.stats.codahale.CodahaleStatsLogger
-
- org.apache.bookkeeper.stats.codahale.FastCodahaleStatsLogger
-
- All Implemented Interfaces:
StatsLogger
public class FastCodahaleStatsLogger extends CodahaleStatsLogger
AStatsLogger
implemented based on Codahale metrics library.
-
-
Field Summary
-
Fields inherited from class org.apache.bookkeeper.stats.codahale.CodahaleStatsLogger
basename, metrics
-
-
Constructor Summary
Constructors Constructor Description FastCodahaleStatsLogger(com.codahale.metrics.MetricRegistry metrics, java.lang.String basename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpStatsLogger
getOpStatsLogger(java.lang.String statName)
StatsLogger
scope(java.lang.String scope)
Provide the stats logger under scope name.-
Methods inherited from class org.apache.bookkeeper.stats.codahale.CodahaleStatsLogger
getCounter, getThreadScopedCounter, getThreadScopedOpStatsLogger, registerGauge, removeScope, unregisterGauge
-
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
-
getOpStatsLogger
public OpStatsLogger getOpStatsLogger(java.lang.String statName)
- Specified by:
getOpStatsLogger
in interfaceStatsLogger
- Overrides:
getOpStatsLogger
in classCodahaleStatsLogger
- Parameters:
statName
- Stats Name- Returns:
- Get the logger for an OpStat described by the name.
-
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 classCodahaleStatsLogger
- Parameters:
scope
- scope name.- Returns:
- stats logger under scope name.
-
-