|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.interceptors.Interceptor
org.jboss.cache.interceptors.MethodDispacherInterceptor
org.jboss.cache.interceptors.CacheLoaderInterceptor
public class CacheLoaderInterceptor
Loads nodes that don't exist at the time of the call into memory from the CacheLoader
| Field Summary | |
|---|---|
protected CacheLoaderManager |
clm
|
protected boolean |
isActivation
|
protected CacheLoader |
loader
|
protected boolean |
useCacheStore
True if CacheStoreInterceptor is in place. |
protected boolean |
usingOptimisticInvalidation
|
| Fields inherited from class org.jboss.cache.interceptors.Interceptor |
|---|
cache, configuration, last, log, next, trace |
| Constructor Summary | |
|---|---|
CacheLoaderInterceptor()
|
|
| 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.InterceptorMBean |
|---|
getStatisticsEnabled, setStatisticsEnabled |
| Field Detail |
|---|
protected boolean isActivation
protected CacheLoader loader
protected CacheLoaderManager clm
protected boolean usingOptimisticInvalidation
protected boolean useCacheStore
| Constructor Detail |
|---|
public CacheLoaderInterceptor()
| Method Detail |
|---|
protected void injectDependencies(TransactionTable txTable,
CacheLoaderManager clm,
Configuration configuration)
protected void startInterceptor()
protected Object handlePutDataEraseMethod(InvocationContext ctx,
GlobalTransaction gt,
Fqn fqn,
Map newData,
boolean createUndoOps,
boolean eraseContents)
throws Throwable
MethodDispacherInterceptorCacheImpl._put(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, java.util.Map, boolean, boolean)
handlePutDataEraseMethod in class MethodDispacherInterceptorThrowable
protected Object handlePutDataMethod(InvocationContext ctx,
GlobalTransaction tx,
Fqn fqn,
Map data,
boolean createUndoOps)
throws Throwable
MethodDispacherInterceptorCacheImpl._put(org.jboss.cache.transaction.GlobalTransaction, String, java.util.Map, boolean)
handlePutDataMethod in class MethodDispacherInterceptorThrowable
protected Object handlePutForExternalReadMethod(InvocationContext ctx,
GlobalTransaction tx,
Fqn fqn,
Object key,
Object value)
throws Throwable
MethodDispacherInterceptorCacheImpl._putForExternalRead(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, Object, Object)
handlePutForExternalReadMethod in class MethodDispacherInterceptorThrowable
protected Object handlePutKeyValueMethod(InvocationContext ctx,
GlobalTransaction gtx,
Fqn fqn,
Object key,
Object value,
boolean createUndoOps)
throws Throwable
MethodDispacherInterceptorCacheImpl._put(org.jboss.cache.transaction.GlobalTransaction, String, Object, Object, boolean)
handlePutKeyValueMethod in class MethodDispacherInterceptorThrowable
protected Object handleMoveMethod(InvocationContext ctx,
Fqn from,
Fqn to)
throws Throwable
MethodDispacherInterceptorCacheImpl._move(org.jboss.cache.Fqn, org.jboss.cache.Fqn)
handleMoveMethod in class MethodDispacherInterceptorThrowable
protected Object handleAddChildMethod(InvocationContext ctx,
GlobalTransaction tx,
Fqn parentFqn,
Object childName,
Node cn,
boolean createUndoOps)
throws Throwable
MethodDispacherInterceptorCacheImpl._addChild(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, Object, org.jboss.cache.Node, boolean)
handleAddChildMethod in class MethodDispacherInterceptorThrowable
protected Object handleGetKeyValueMethod(InvocationContext ctx,
Fqn fqn,
Object key,
boolean sendNodeEvent)
throws Throwable
MethodDispacherInterceptorCacheImpl._get(org.jboss.cache.Fqn, Object, boolean)
handleGetKeyValueMethod in class MethodDispacherInterceptorThrowable
protected Object handleGetNodeMethod(InvocationContext ctx,
Fqn fqn)
throws Throwable
MethodDispacherInterceptorCacheImpl._get(org.jboss.cache.Fqn)
handleGetNodeMethod in class MethodDispacherInterceptorThrowable
protected Object handleGetChildrenNamesMethod(InvocationContext ctx,
Fqn fqn)
throws Throwable
MethodDispacherInterceptorCacheImpl._getChildrenNames(org.jboss.cache.Fqn)
handleGetChildrenNamesMethod in class MethodDispacherInterceptorThrowable
protected Object handleReleaseAllLocksMethod(InvocationContext ctx,
Fqn fqn)
throws Throwable
MethodDispacherInterceptorCacheImpl._releaseAllLocks(org.jboss.cache.Fqn)
handleReleaseAllLocksMethod in class MethodDispacherInterceptorThrowable
protected Object handlePrintMethod(InvocationContext ctx,
Fqn fqn)
throws Throwable
MethodDispacherInterceptorCacheImpl._print(org.jboss.cache.Fqn)
handlePrintMethod in class MethodDispacherInterceptorThrowable
protected Object handleGetKeysMethod(InvocationContext ctx,
Fqn fqn)
throws Throwable
MethodDispacherInterceptorCache.getKeys(Fqn)
handleGetKeysMethod in class MethodDispacherInterceptorThrowable
protected Object handleGetDataMapMethod(InvocationContext ctx,
Fqn fqn)
throws Throwable
MethodDispacherInterceptorCacheImpl._getData(org.jboss.cache.Fqn)
handleGetDataMapMethod in class MethodDispacherInterceptorThrowable
protected Object handleRollbackMethod(InvocationContext ctx,
GlobalTransaction globalTransaction)
throws Throwable
MethodDispacherInterceptorCacheImpl.rollback(org.jboss.cache.transaction.GlobalTransaction)
handleRollbackMethod in class MethodDispacherInterceptorThrowable
protected Object handleRemoveNodeMethod(InvocationContext ctx,
GlobalTransaction tx,
Fqn fqn,
boolean createUndoOps)
throws Throwable
MethodDispacherInterceptorCacheImpl._remove(org.jboss.cache.transaction.GlobalTransaction, String, boolean)
handleRemoveNodeMethod in class MethodDispacherInterceptorThrowable
protected Object handleRemoveKeyMethod(InvocationContext ctx,
GlobalTransaction tx,
Fqn fqn,
Object key,
boolean createUndoOps)
throws Throwable
MethodDispacherInterceptorCacheImpl._remove(org.jboss.cache.transaction.GlobalTransaction, String, Object, boolean)
handleRemoveKeyMethod in class MethodDispacherInterceptorThrowable
protected Object handleRemoveDataMethod(InvocationContext ctx,
GlobalTransaction tx,
Fqn fqn,
boolean createUndoOps)
throws Throwable
MethodDispacherInterceptorCacheImpl._removeData(org.jboss.cache.transaction.GlobalTransaction, Fqn, boolean)
handleRemoveDataMethod in class MethodDispacherInterceptorThrowablepublic long getCacheLoaderLoads()
CacheLoaderInterceptorMBean
getCacheLoaderLoads in interface CacheLoaderInterceptorMBeanpublic long getCacheLoaderMisses()
CacheLoaderInterceptorMBean
getCacheLoaderMisses in interface CacheLoaderInterceptorMBeanpublic void resetStatistics()
Interceptor
resetStatistics in interface InterceptorMBeanresetStatistics in class Interceptorpublic Map<String,Object> dumpStatistics()
Interceptor
dumpStatistics in interface InterceptorMBeandumpStatistics in class Interceptor
protected void lock(Fqn fqn,
NodeLock.LockType lock_type,
boolean recursive)
throws Throwable
Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||