Class CodahaleOpStatsLogger
- java.lang.Object
- 
- org.apache.bookkeeper.stats.codahale.CodahaleOpStatsLogger
 
- 
- All Implemented Interfaces:
- OpStatsLogger
 
 class CodahaleOpStatsLogger extends java.lang.Object implements OpStatsLogger 
- 
- 
Constructor SummaryConstructors Constructor Description CodahaleOpStatsLogger(com.codahale.metrics.Timer success, com.codahale.metrics.Timer fail)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear stats for this operation.voidregisterFailedEvent(long eventLatency, java.util.concurrent.TimeUnit unit)Increment the failed op counter with the given eventLatency.voidregisterFailedValue(long value)An operation with the given value failed.voidregisterSuccessfulEvent(long eventLatency, java.util.concurrent.TimeUnit unit)An operation succeeded with the given eventLatency.voidregisterSuccessfulValue(long value)An operation with the given value succeeded.OpStatsDatatoOpStatsData()This function should go away soon (hopefully).
 
- 
- 
- 
Method Detail- 
registerFailedEventpublic void registerFailedEvent(long eventLatency, java.util.concurrent.TimeUnit unit)Description copied from interface:OpStatsLoggerIncrement the failed op counter with the given eventLatency.- Specified by:
- registerFailedEventin interface- OpStatsLogger
- Parameters:
- eventLatency- The event latency
 
 - 
registerSuccessfulEventpublic void registerSuccessfulEvent(long eventLatency, java.util.concurrent.TimeUnit unit)Description copied from interface:OpStatsLoggerAn operation succeeded with the given eventLatency. Update stats to reflect the same- Specified by:
- registerSuccessfulEventin interface- OpStatsLogger
- Parameters:
- eventLatency- The event latency
 
 - 
registerSuccessfulValuepublic void registerSuccessfulValue(long value) Description copied from interface:OpStatsLoggerAn operation with the given value succeeded.- Specified by:
- registerSuccessfulValuein interface- OpStatsLogger
 
 - 
registerFailedValuepublic void registerFailedValue(long value) Description copied from interface:OpStatsLoggerAn operation with the given value failed.- Specified by:
- registerFailedValuein interface- OpStatsLogger
 
 - 
clearpublic void clear() Description copied from interface:OpStatsLoggerClear stats for this operation.- Specified by:
- clearin interface- OpStatsLogger
 
 - 
toOpStatsDatapublic OpStatsData toOpStatsData() This function should go away soon (hopefully).- Specified by:
- toOpStatsDatain interface- OpStatsLogger
- Returns:
- Returns an OpStatsData object with necessary values. We need this function to support JMX exports. This should be deprecated sometime in the near future. populated.
 
 
- 
 
-