public class ActivationInterceptor extends CacheLoaderInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected static Object |
NULL |
protected ConcurrentHashMap |
transactions
List
|
protected TransactionManager |
txMgr |
buddyFqnTransformer, dataContainer, helper, isActivation, loader, notifier, txTable, useCacheStoreconfiguration, log, trace| Constructor and Description |
|---|
ActivationInterceptor() |
getCacheLoaderLoads, getCacheLoaderMisses, injectDependencies, startInterceptor, visitGetDataMapCommand, visitRollbackCommandcheckStatisticsUsed, getStatisticsEnabled, setStatisticsEnabledgetNext, handleDefault, hasNext, invokeNextInterceptor, setNextvisitCollection, visitCommitCommand, visitCreateNodeCommand, visitEvictFqnCommand, visitExistsNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitOptimisticPrepareCommand, visitPrepareCommandprotected TransactionManager txMgr
protected ConcurrentHashMap transactions
protected static final Object NULL
public void injectTransactionManager(TransactionManager txMgr)
public Object visitClearDataCommand(InvocationContext ctx, ClearDataCommand command) throws Throwable
VisitorvisitClearDataCommand in interface VisitorvisitClearDataCommand in class CacheLoaderInterceptorctx - 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 CacheLoaderInterceptorctx - 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 CacheLoaderInterceptorctx - 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 CacheLoaderInterceptorctx - 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 CacheLoaderInterceptorctx - 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 CacheLoaderInterceptorctx - 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 CacheLoaderInterceptorctx - 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 CacheLoaderInterceptorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public Object visitPutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws Throwable
VisitorvisitPutDataMapCommand in interface VisitorvisitPutDataMapCommand in class CacheLoaderInterceptorctx - 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 CacheLoaderInterceptorctx - 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 CacheLoaderInterceptorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public long getActivations()
public void resetStatistics()
JmxStatsCommandInterceptorresetStatistics in interface JmxStatisticsExposerresetStatistics in class CacheLoaderInterceptorpublic Map<String,Object> dumpStatistics()
JmxStatsCommandInterceptordumpStatistics in interface JmxStatisticsExposerdumpStatistics in class CacheLoaderInterceptorprotected void recordNodeLoaded(InvocationContext ctx, Fqn fqn)
recordNodeLoaded in class CacheLoaderInterceptorCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.