|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.interceptors.Interceptor org.jboss.cache.interceptors.MethodDispacherInterceptor 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.
Field Summary | |
---|---|
protected static Object |
NULL
|
protected ConcurrentHashMap |
transactions
List |
protected TransactionManager |
tx_mgr
|
protected TransactionTable |
tx_table
|
Fields inherited from class org.jboss.cache.interceptors.CacheLoaderInterceptor |
---|
clm, isActivation, loader, useCacheStore, usingOptimisticInvalidation |
Fields inherited from class org.jboss.cache.interceptors.Interceptor |
---|
cache, configuration, last, log, next, trace |
Constructor Summary | |
---|---|
ActivationInterceptor()
|
Methods inherited from class org.jboss.cache.interceptors.CacheLoaderInterceptor |
---|
getCacheLoaderLoads, getCacheLoaderMisses, handleGetDataMapMethod, handleMoveMethod, handleRollbackMethod, injectDependencies, lock, startInterceptor |
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
---|
assertTransactionValid, getLast, getNext, getStatisticsEnabled, initLogger, isActive, isPreparing, isValid, nextInterceptor, peekNode, setCache, setLast, setNext, setStatisticsEnabled, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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 tx_mgr
protected TransactionTable tx_table
protected ConcurrentHashMap transactions
protected static final Object NULL
Constructor Detail |
---|
public ActivationInterceptor()
Method Detail |
---|
protected Object handleRemoveDataMethod(InvocationContext ctx, GlobalTransaction tx, Fqn fqn, boolean createUndoOps) throws Throwable
MethodDispacherInterceptor
CacheImpl._removeData(org.jboss.cache.transaction.GlobalTransaction, Fqn, boolean)
handleRemoveDataMethod
in class CacheLoaderInterceptor
Throwable
protected Object handleRemoveNodeMethod(InvocationContext ctx, GlobalTransaction tx, Fqn fqn, boolean createUndoOps) throws Throwable
MethodDispacherInterceptor
CacheImpl._remove(org.jboss.cache.transaction.GlobalTransaction, String, boolean)
handleRemoveNodeMethod
in class CacheLoaderInterceptor
Throwable
protected Object handlePrintMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl._print(org.jboss.cache.Fqn)
handlePrintMethod
in class CacheLoaderInterceptor
Throwable
protected Object handleReleaseAllLocksMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl._releaseAllLocks(org.jboss.cache.Fqn)
handleReleaseAllLocksMethod
in class CacheLoaderInterceptor
Throwable
protected Object handleGetChildrenNamesMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl._getChildrenNames(org.jboss.cache.Fqn)
handleGetChildrenNamesMethod
in class CacheLoaderInterceptor
Throwable
protected Object handleGetKeysMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
Cache.getKeys(Fqn)
handleGetKeysMethod
in class CacheLoaderInterceptor
Throwable
protected Object handleGetNodeMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl._get(org.jboss.cache.Fqn)
handleGetNodeMethod
in class CacheLoaderInterceptor
Throwable
protected Object handleGetKeyValueMethod(InvocationContext ctx, Fqn fqn, Object key, boolean sendNodeEvent) throws Throwable
MethodDispacherInterceptor
CacheImpl._get(org.jboss.cache.Fqn, Object, boolean)
handleGetKeyValueMethod
in class CacheLoaderInterceptor
Throwable
protected Object handleAddChildMethod(InvocationContext ctx, GlobalTransaction tx, Fqn parentFqn, Object childName, Node cn, boolean createUndoOps) throws Throwable
MethodDispacherInterceptor
CacheImpl._addChild(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, Object, org.jboss.cache.Node, boolean)
handleAddChildMethod
in class CacheLoaderInterceptor
Throwable
protected Object handlePutForExternalReadMethod(InvocationContext ctx, GlobalTransaction tx, Fqn fqn, Object key, Object value) throws Throwable
MethodDispacherInterceptor
CacheImpl._putForExternalRead(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, Object, Object)
handlePutForExternalReadMethod
in class CacheLoaderInterceptor
Throwable
protected Object handlePutDataMethod(InvocationContext ctx, GlobalTransaction tx, Fqn fqn, Map data, boolean createUndoOps) throws Throwable
MethodDispacherInterceptor
CacheImpl._put(org.jboss.cache.transaction.GlobalTransaction, String, java.util.Map, boolean)
handlePutDataMethod
in class CacheLoaderInterceptor
Throwable
protected Object handlePutKeyValueMethod(InvocationContext ctx, GlobalTransaction gtx, Fqn fqn, Object key, Object value, boolean createUndoOps) throws Throwable
MethodDispacherInterceptor
CacheImpl._put(org.jboss.cache.transaction.GlobalTransaction, String, Object, Object, boolean)
handlePutKeyValueMethod
in class CacheLoaderInterceptor
Throwable
protected Object handleRemoveKeyMethod(InvocationContext ctx, GlobalTransaction tx, Fqn fqn, Object key, boolean createUndoOps) throws Throwable
MethodDispacherInterceptor
CacheImpl._remove(org.jboss.cache.transaction.GlobalTransaction, String, Object, boolean)
handleRemoveKeyMethod
in class CacheLoaderInterceptor
Throwable
protected Object handlePutDataEraseMethod(InvocationContext ctx, GlobalTransaction gt, Fqn fqn, Map newData, boolean createUndoOps, boolean eraseContents) throws Throwable
MethodDispacherInterceptor
CacheImpl._put(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, java.util.Map, boolean, boolean)
handlePutDataEraseMethod
in class CacheLoaderInterceptor
Throwable
protected Object handleOptimisticPrepareMethod(InvocationContext ctx, GlobalTransaction gtx, List modifications, Map data, org.jgroups.Address address, boolean onePhaseCommit) throws Throwable
MethodDispacherInterceptor
CacheImpl.optimisticPrepare(org.jboss.cache.transaction.GlobalTransaction, java.util.List, java.util.Map, org.jgroups.Address, boolean)
handleOptimisticPrepareMethod
in class MethodDispacherInterceptor
Throwable
protected Object handlePrepareMethod(InvocationContext ctx, GlobalTransaction gtx, List modification, org.jgroups.Address coordinator, boolean onePhaseCommit) throws Throwable
MethodDispacherInterceptor
CacheImpl.prepare(org.jboss.cache.transaction.GlobalTransaction, java.util.List, org.jgroups.Address, boolean)
handlePrepareMethod
in class MethodDispacherInterceptor
Throwable
public long getActivations()
ActivationInterceptorMBean
getActivations
in interface ActivationInterceptorMBean
public void resetStatistics()
Interceptor
resetStatistics
in interface InterceptorMBean
resetStatistics
in class CacheLoaderInterceptor
public Map<String,Object> dumpStatistics()
Interceptor
dumpStatistics
in interface InterceptorMBean
dumpStatistics
in class CacheLoaderInterceptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |