|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.commands.AbstractVisitor org.jboss.cache.interceptors.base.CommandInterceptor org.jboss.cache.interceptors.CacheLoaderInterceptor org.jboss.cache.interceptors.ActivationInterceptor
public class ActivationInterceptor
Loads nodes that don't exist at the time of the call into memory from the CacheLoader. If the nodes were evicted earlier then we remove them from the cache loader after their attributes have been initialized and their children have been loaded in memory.
Nested Class Summary | |
---|---|
class |
ActivationInterceptor.ActivationModificationsBuilder
|
Field Summary | |
---|---|
protected static Object |
NULL
|
protected ConcurrentHashMap |
transactions
List |
protected TransactionManager |
txMgr
|
Fields inherited from class org.jboss.cache.interceptors.CacheLoaderInterceptor |
---|
dataContainer, isActivation, loader, notifier, txTable, useCacheStore, usingOptimisticInvalidation |
Fields inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
---|
configuration, log, trace |
Constructor Summary | |
---|---|
ActivationInterceptor()
|
Methods inherited from class org.jboss.cache.interceptors.CacheLoaderInterceptor |
---|
getCacheLoaderLoads, getCacheLoaderMisses, injectDependencies, lock, startInterceptor, visitGetDataMapCommand, visitRollbackCommand |
Methods inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
---|
getNext, getStatisticsEnabled, handleDefault, hasNext, invokeNextInterceptor, setNext, setStatisticsEnabled |
Methods inherited from class org.jboss.cache.commands.AbstractVisitor |
---|
visitCollection, visitCommitCommand, visitCreateNodeCommand, visitEvictFqnCommand, visitExistsNodeCommand, visitGravitateDataCommand, visitInvalidateCommand |
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.CacheLoaderInterceptorMBean |
---|
getCacheLoaderLoads, getCacheLoaderMisses |
Methods inherited from interface org.jboss.cache.interceptors.InterceptorMBean |
---|
getStatisticsEnabled, setStatisticsEnabled |
Field Detail |
---|
protected TransactionManager txMgr
protected ConcurrentHashMap transactions
protected static final Object NULL
Constructor Detail |
---|
public ActivationInterceptor()
Method Detail |
---|
public void injectTransactionManager(TransactionManager txMgr)
public void createModificationsBuilder()
public Object visitRemoveDataCommand(InvocationContext ctx, RemoveDataCommand command) throws Throwable
Visitor
visitRemoveDataCommand
in interface Visitor
visitRemoveDataCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitRemoveNodeCommand(InvocationContext ctx, RemoveNodeCommand command) throws Throwable
Visitor
visitRemoveNodeCommand
in interface Visitor
visitRemoveNodeCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitGetChildrenNamesCommand(InvocationContext ctx, GetChildrenNamesCommand command) throws Throwable
Visitor
visitGetChildrenNamesCommand
in interface Visitor
visitGetChildrenNamesCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitGetKeysCommand(InvocationContext ctx, GetKeysCommand command) throws Throwable
Visitor
visitGetKeysCommand
in interface Visitor
visitGetKeysCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitGetNodeCommand(InvocationContext ctx, GetNodeCommand command) throws Throwable
Visitor
visitGetNodeCommand
in interface Visitor
visitGetNodeCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
Visitor
visitGetKeyValueCommand
in interface Visitor
visitGetKeyValueCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
Visitor
visitPutKeyValueCommand
in interface Visitor
visitPutKeyValueCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitPutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws Throwable
Visitor
visitPutDataMapCommand
in interface Visitor
visitPutDataMapCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitRemoveKeyCommand(InvocationContext ctx, RemoveKeyCommand command) throws Throwable
Visitor
visitRemoveKeyCommand
in interface Visitor
visitRemoveKeyCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitMoveCommand(InvocationContext ctx, MoveCommand command) throws Throwable
Visitor
visitMoveCommand
in interface Visitor
visitMoveCommand
in class CacheLoaderInterceptor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitOptimisticPrepareCommand(InvocationContext ctx, OptimisticPrepareCommand command) throws Throwable
Visitor
visitOptimisticPrepareCommand
in interface Visitor
visitOptimisticPrepareCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitPrepareCommand(InvocationContext ctx, PrepareCommand command) throws Throwable
Visitor
visitPrepareCommand
in interface Visitor
visitPrepareCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public long getActivations()
ActivationInterceptorMBean
getActivations
in interface ActivationInterceptorMBean
public void resetStatistics()
CommandInterceptor
resetStatistics
in interface InterceptorMBean
resetStatistics
in class CacheLoaderInterceptor
public Map<String,Object> dumpStatistics()
CommandInterceptor
dumpStatistics
in interface InterceptorMBean
dumpStatistics
in class CacheLoaderInterceptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |