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