public class CacheLoaderInterceptor extends JmxStatsCommandInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected BuddyFqnTransformer |
buddyFqnTransformer |
protected DataContainer |
dataContainer |
protected MVCCNodeHelper |
helper |
protected boolean |
isActivation |
protected CacheLoader |
loader |
protected Notifier |
notifier |
protected TransactionTable |
txTable |
protected boolean |
useCacheStore
True if CacheStoreInterceptor is in place.
|
configuration, log, trace| Constructor and Description |
|---|
CacheLoaderInterceptor() |
checkStatisticsUsed, getStatisticsEnabled, setStatisticsEnabledgetNext, handleDefault, hasNext, invokeNextInterceptor, setNextvisitCollection, visitCommitCommand, visitCreateNodeCommand, visitEvictFqnCommand, visitExistsNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitOptimisticPrepareCommand, visitPrepareCommandprotected TransactionTable txTable
protected CacheLoader loader
protected DataContainer dataContainer
protected Notifier notifier
protected boolean isActivation
protected MVCCNodeHelper helper
protected BuddyFqnTransformer buddyFqnTransformer
protected boolean useCacheStore
protected void injectDependencies(TransactionTable txTable, CacheLoaderManager clm, Configuration configuration, DataContainer dataContainer, Notifier notifier, MVCCNodeHelper helper, BuddyFqnTransformer buddyFqnTransformer)
protected void startInterceptor()
public Object visitPutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws Throwable
VisitorvisitPutDataMapCommand in interface VisitorvisitPutDataMapCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
VisitorvisitPutKeyValueCommand in interface VisitorvisitPutKeyValueCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitPutForExternalReadCommand(InvocationContext ctx, PutForExternalReadCommand command) throws Throwable
VisitorvisitPutForExternalReadCommand in interface VisitorvisitPutForExternalReadCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitMoveCommand(InvocationContext ctx, MoveCommand command) throws Throwable
VisitorvisitMoveCommand in interface VisitorvisitMoveCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
VisitorvisitGetKeyValueCommand in interface VisitorvisitGetKeyValueCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitGetNodeCommand(InvocationContext ctx, GetNodeCommand command) throws Throwable
VisitorvisitGetNodeCommand in interface VisitorvisitGetNodeCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitGetChildrenNamesCommand(InvocationContext ctx, GetChildrenNamesCommand command) throws Throwable
VisitorvisitGetChildrenNamesCommand in interface VisitorvisitGetChildrenNamesCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitGetKeysCommand(InvocationContext ctx, GetKeysCommand command) throws Throwable
VisitorvisitGetKeysCommand in interface VisitorvisitGetKeysCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitGetDataMapCommand(InvocationContext ctx, GetDataMapCommand command) throws Throwable
VisitorvisitGetDataMapCommand in interface VisitorvisitGetDataMapCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitRollbackCommand(InvocationContext ctx, RollbackCommand command) throws Throwable
VisitorvisitRollbackCommand in interface VisitorvisitRollbackCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitRemoveNodeCommand(InvocationContext ctx, RemoveNodeCommand command) throws Throwable
VisitorvisitRemoveNodeCommand in interface VisitorvisitRemoveNodeCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitRemoveKeyCommand(InvocationContext ctx, RemoveKeyCommand command) throws Throwable
VisitorvisitRemoveKeyCommand in interface VisitorvisitRemoveKeyCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitClearDataCommand(InvocationContext ctx, ClearDataCommand command) throws Throwable
VisitorvisitClearDataCommand in interface VisitorvisitClearDataCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public long getCacheLoaderLoads()
public long getCacheLoaderMisses()
public void resetStatistics()
JmxStatsCommandInterceptorresetStatistics in interface JmxStatisticsExposerresetStatistics in class JmxStatsCommandInterceptorpublic Map<String,Object> dumpStatistics()
JmxStatsCommandInterceptordumpStatistics in interface JmxStatisticsExposerdumpStatistics in class JmxStatsCommandInterceptorprotected void recordNodeLoaded(InvocationContext ctx, Fqn fqn)
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.