|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.interceptors.Interceptor
org.jboss.cache.interceptors.CacheMgmtInterceptor
public class CacheMgmtInterceptor
Captures cache management statistics
Field Summary |
---|
Fields inherited from class org.jboss.cache.interceptors.Interceptor |
---|
cache, configuration, last, log, next |
Constructor Summary | |
---|---|
CacheMgmtInterceptor()
|
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
dumpStatistics()
This implementation returns an empty Map. |
long |
getAverageReadTime()
Returns average milliseconds for an attribute read operation This includes both hits and misses. |
long |
getAverageWriteTime()
Returns average milliseconds for an attribute write operation |
long |
getElapsedTime()
Returns seconds since cache started |
long |
getEvictions()
Returns the number of cache eviction operations |
double |
getHitMissRatio()
Returns the hit/miss ratio for the cache This ratio is defined as hits/(hits + misses) |
long |
getHits()
Returns the number of cache attribute hits |
long |
getMisses()
Returns the number of cache attribute misses |
int |
getNumberOfAttributes()
|
int |
getNumberOfNodes()
|
double |
getReadWriteRatio()
Returns the read/write ratio for the cache This ratio is defined as (hits + misses)/stores |
long |
getStores()
Returns the number of cache attribute put operations |
long |
getTimeSinceReset()
Returns seconds since cache statistics reset If statistics haven't been reset, this will be the same as ElapsedTime |
java.lang.Object |
invoke(InvocationContext ctx)
Pass the method on and capture cache statistics |
void |
resetStatistics()
This implementation is a no-op. |
void |
setCache(CacheSPI cache)
|
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
---|
getLast, getNext, getStatisticsEnabled, isActive, isOnePhaseCommitPrepareMehod, isPreparing, isValid, setLast, setNext, setStatisticsEnabled, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.cache.interceptors.InterceptorMBean |
---|
getStatisticsEnabled, setStatisticsEnabled |
Constructor Detail |
---|
public CacheMgmtInterceptor()
Method Detail |
---|
public void setCache(CacheSPI cache)
setCache
in class Interceptor
public java.lang.Object invoke(InvocationContext ctx) throws java.lang.Throwable
invoke
in class Interceptor
java.lang.Throwable
public long getHits()
CacheMgmtInterceptorMBean
getHits
in interface CacheMgmtInterceptorMBean
public long getMisses()
CacheMgmtInterceptorMBean
getMisses
in interface CacheMgmtInterceptorMBean
public long getStores()
CacheMgmtInterceptorMBean
getStores
in interface CacheMgmtInterceptorMBean
public long getEvictions()
CacheMgmtInterceptorMBean
getEvictions
in interface CacheMgmtInterceptorMBean
public double getHitMissRatio()
CacheMgmtInterceptorMBean
getHitMissRatio
in interface CacheMgmtInterceptorMBean
public double getReadWriteRatio()
CacheMgmtInterceptorMBean
getReadWriteRatio
in interface CacheMgmtInterceptorMBean
public long getAverageReadTime()
CacheMgmtInterceptorMBean
getAverageReadTime
in interface CacheMgmtInterceptorMBean
public long getAverageWriteTime()
CacheMgmtInterceptorMBean
getAverageWriteTime
in interface CacheMgmtInterceptorMBean
public int getNumberOfAttributes()
getNumberOfAttributes
in interface CacheMgmtInterceptorMBean
public int getNumberOfNodes()
getNumberOfNodes
in interface CacheMgmtInterceptorMBean
public long getElapsedTime()
CacheMgmtInterceptorMBean
getElapsedTime
in interface CacheMgmtInterceptorMBean
public long getTimeSinceReset()
CacheMgmtInterceptorMBean
getTimeSinceReset
in interface CacheMgmtInterceptorMBean
public java.util.Map<java.lang.String,java.lang.Object> dumpStatistics()
Interceptor
dumpStatistics
in interface InterceptorMBean
dumpStatistics
in class Interceptor
public void resetStatistics()
Interceptor
resetStatistics
in interface InterceptorMBean
resetStatistics
in class Interceptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |