Package net.rubyeye.xmemcached.monitor
Class StatisticsHandler
java.lang.Object
net.rubyeye.xmemcached.monitor.StatisticsHandler
- All Implemented Interfaces:
StatisticsHandlerMBean
Statistics helper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidlonglonglonglonglonglonglonglonglonglonglonglonglongfinal booleanvoidReset the statisticsfinal voidsetStatistics(boolean statistics) final voidstatistics(CommandType cmdType) final voidstatistics(CommandType cmdType, int count)
-
Field Details
-
counterMap
-
statistics
private boolean statistics
-
-
Constructor Details
-
StatisticsHandler
public StatisticsHandler()
-
-
Method Details
-
buildCounterMap
private void buildCounterMap() -
isStatistics
public final boolean isStatistics()- Specified by:
isStatisticsin interfaceStatisticsHandlerMBean
-
statistics
-
statistics
-
setStatistics
public final void setStatistics(boolean statistics) - Specified by:
setStatisticsin interfaceStatisticsHandlerMBean
-
resetStats
public void resetStats()Description copied from interface:StatisticsHandlerMBeanReset the statistics- Specified by:
resetStatsin interfaceStatisticsHandlerMBean
-
getAppendCount
public long getAppendCount()- Specified by:
getAppendCountin interfaceStatisticsHandlerMBean
-
getCASCount
public long getCASCount()- Specified by:
getCASCountin interfaceStatisticsHandlerMBean
-
getDecrCount
public long getDecrCount()- Specified by:
getDecrCountin interfaceStatisticsHandlerMBean
-
getDeleteCount
public long getDeleteCount()- Specified by:
getDeleteCountin interfaceStatisticsHandlerMBean
-
getGetHitCount
public long getGetHitCount()- Specified by:
getGetHitCountin interfaceStatisticsHandlerMBean
-
getGetMissCount
public long getGetMissCount()- Specified by:
getGetMissCountin interfaceStatisticsHandlerMBean
-
getIncrCount
public long getIncrCount()- Specified by:
getIncrCountin interfaceStatisticsHandlerMBean
-
getMultiGetCount
public long getMultiGetCount()- Specified by:
getMultiGetCountin interfaceStatisticsHandlerMBean
-
getMultiGetsCount
public long getMultiGetsCount()- Specified by:
getMultiGetsCountin interfaceStatisticsHandlerMBean
-
getPrependCount
public long getPrependCount()- Specified by:
getPrependCountin interfaceStatisticsHandlerMBean
-
getSetCount
public long getSetCount()- Specified by:
getSetCountin interfaceStatisticsHandlerMBean
-
getAddCount
public long getAddCount()- Specified by:
getAddCountin interfaceStatisticsHandlerMBean
-
getReplaceCount
public long getReplaceCount()- Specified by:
getReplaceCountin interfaceStatisticsHandlerMBean
-