|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.commands.AbstractVisitor
org.jboss.cache.interceptors.base.CommandInterceptor
org.jboss.cache.interceptors.CacheMgmtInterceptor
public class CacheMgmtInterceptor
Captures cache management statistics
| Field Summary |
|---|
| Fields inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
|---|
configuration, log, trace |
| Constructor Summary | |
|---|---|
CacheMgmtInterceptor()
|
|
| Method Summary | |
|---|---|
Map<String,Object> |
dumpStatistics()
Returns a map of statistics. |
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 |
void |
resetStatistics()
Resets statistics gathered. |
void |
setDependencies(DataContainer dataContainer)
|
Object |
visitEvictFqnCommand(InvocationContext ctx,
EvictCommand command)
Visits a EvictCommand. |
Object |
visitGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command)
Visits a GetKeyValueCommand. |
Object |
visitPutDataMapCommand(InvocationContext ctx,
PutDataMapCommand command)
Visits a PutDataMapCommand. |
Object |
visitPutForExternalReadCommand(InvocationContext ctx,
PutForExternalReadCommand command)
Visits a PutForExternalReadCommand. |
Object |
visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
Visits a PutKeyValueCommand. |
| Methods inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
|---|
getNext, getStatisticsEnabled, handleDefault, hasNext, invokeNextInterceptor, setNext, setStatisticsEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.cache.interceptors.InterceptorMBean |
|---|
getStatisticsEnabled, setStatisticsEnabled |
| Constructor Detail |
|---|
public CacheMgmtInterceptor()
| Method Detail |
|---|
public void setDependencies(DataContainer dataContainer)
public Object visitEvictFqnCommand(InvocationContext ctx,
EvictCommand command)
throws Throwable
Visitor
visitEvictFqnCommand in interface VisitorvisitEvictFqnCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command)
throws Throwable
Visitor
visitGetKeyValueCommand in interface VisitorvisitGetKeyValueCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitPutDataMapCommand(InvocationContext ctx,
PutDataMapCommand command)
throws Throwable
Visitor
visitPutDataMapCommand in interface VisitorvisitPutDataMapCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitPutForExternalReadCommand(InvocationContext ctx,
PutForExternalReadCommand command)
throws Throwable
Visitor
visitPutForExternalReadCommand in interface VisitorvisitPutForExternalReadCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
public Object visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
throws Throwable
Visitor
visitPutKeyValueCommand in interface VisitorvisitPutKeyValueCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.public long getHits()
CacheMgmtInterceptorMBean
getHits in interface CacheMgmtInterceptorMBeanpublic long getMisses()
CacheMgmtInterceptorMBean
getMisses in interface CacheMgmtInterceptorMBeanpublic long getStores()
CacheMgmtInterceptorMBean
getStores in interface CacheMgmtInterceptorMBeanpublic long getEvictions()
CacheMgmtInterceptorMBean
getEvictions in interface CacheMgmtInterceptorMBeanpublic double getHitMissRatio()
CacheMgmtInterceptorMBean
getHitMissRatio in interface CacheMgmtInterceptorMBeanpublic double getReadWriteRatio()
CacheMgmtInterceptorMBean
getReadWriteRatio in interface CacheMgmtInterceptorMBeanpublic long getAverageReadTime()
CacheMgmtInterceptorMBean
getAverageReadTime in interface CacheMgmtInterceptorMBeanpublic long getAverageWriteTime()
CacheMgmtInterceptorMBean
getAverageWriteTime in interface CacheMgmtInterceptorMBeanpublic int getNumberOfAttributes()
getNumberOfAttributes in interface CacheMgmtInterceptorMBeanpublic int getNumberOfNodes()
getNumberOfNodes in interface CacheMgmtInterceptorMBeanpublic long getElapsedTime()
CacheMgmtInterceptorMBean
getElapsedTime in interface CacheMgmtInterceptorMBeanpublic long getTimeSinceReset()
CacheMgmtInterceptorMBean
getTimeSinceReset in interface CacheMgmtInterceptorMBeanpublic Map<String,Object> dumpStatistics()
CommandInterceptor
dumpStatistics in interface InterceptorMBeandumpStatistics in class CommandInterceptorpublic void resetStatistics()
CommandInterceptor
resetStatistics in interface InterceptorMBeanresetStatistics in class CommandInterceptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||