public class CacheMgmtInterceptor extends JmxStatsCommandInterceptor
cacheConfiguration
Constructor and Description |
---|
CacheMgmtInterceptor() |
Modifier and Type | Method and Description |
---|---|
long |
getAverageReadTime() |
long |
getAverageRemoveTime() |
long |
getAverageWriteTime() |
long |
getElapsedTime() |
long |
getEvictions() |
double |
getHitRatio() |
long |
getHits() |
protected Log |
getLog() |
long |
getMisses() |
int |
getNumberOfEntries() |
double |
getReadWriteRatio() |
long |
getRemoveHits() |
long |
getRemoveMisses() |
long |
getStores() |
long |
getTimeSinceReset() |
void |
resetStatistics()
Resets statistics gathered.
|
void |
setDependencies(DataContainer dataContainer,
TimeService timeService) |
void |
start() |
Object |
visitEvictCommand(InvocationContext ctx,
EvictCommand command) |
Object |
visitGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command) |
Object |
visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command) |
Object |
visitPutMapCommand(InvocationContext ctx,
PutMapCommand command) |
Object |
visitRemoveCommand(InvocationContext ctx,
RemoveCommand command) |
Object |
visitReplaceCommand(InvocationContext ctx,
ReplaceCommand command) |
checkStatisticsUsed, getStatisticsEnabled, setStatisticsEnabled
getLockAcquisitionTimeout, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNext
visitApplyDeltaCommand, visitClearCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEntrySetCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommand
protected Log getLog()
getLog
in class CommandInterceptor
public void setDependencies(DataContainer dataContainer, TimeService timeService)
public void start()
public Object visitEvictCommand(InvocationContext ctx, EvictCommand command) throws Throwable
visitEvictCommand
in interface Visitor
visitEvictCommand
in class AbstractVisitor
Throwable
public Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
visitGetKeyValueCommand
in interface Visitor
visitGetKeyValueCommand
in class AbstractVisitor
Throwable
public Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command) throws Throwable
visitPutMapCommand
in interface Visitor
visitPutMapCommand
in class AbstractVisitor
Throwable
public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
visitPutKeyValueCommand
in interface Visitor
visitPutKeyValueCommand
in class AbstractVisitor
Throwable
public Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
visitReplaceCommand
in interface Visitor
visitReplaceCommand
in class AbstractVisitor
Throwable
public Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
visitRemoveCommand
in interface Visitor
visitRemoveCommand
in class AbstractVisitor
Throwable
public long getHits()
public long getMisses()
public long getRemoveHits()
public long getRemoveMisses()
public long getStores()
public long getEvictions()
public double getHitRatio()
public double getReadWriteRatio()
public long getAverageReadTime()
public long getAverageWriteTime()
public long getAverageRemoveTime()
public int getNumberOfEntries()
public long getElapsedTime()
public long getTimeSinceReset()
public void resetStatistics()
JmxStatsCommandInterceptor
resetStatistics
in interface JmxStatisticsExposer
resetStatistics
in class JmxStatsCommandInterceptor
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.