|
||||||||||
| 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.CacheStoreInterceptor
public class CacheStoreInterceptor
Writes modifications back to the store on the way out: stores modifications back through the CacheLoader, either after each method call (no TXs), or at TX commit.
| Field Summary | |
|---|---|
protected CacheLoader |
loader
|
protected CacheLoaderConfig |
loaderConfig
|
protected TransactionManager |
tx_mgr
|
protected TransactionTable |
tx_table
|
| Fields inherited from class org.jboss.cache.interceptors.Interceptor |
|---|
cache, configuration, last, log, next, trace |
| Constructor Summary | |
|---|---|
CacheStoreInterceptor()
|
|
| 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 CacheLoaderConfig loaderConfig
protected TransactionManager tx_mgr
protected TransactionTable tx_table
protected CacheLoader loader
| Constructor Detail |
|---|
public CacheStoreInterceptor()
| Method Detail |
|---|
protected void startInterceptor()
protected boolean skipMethodCall(InvocationContext ctx)
skipMethodCall in class MethodDispacherInterceptor
protected Object handleCommitMethod(InvocationContext ctx,
GlobalTransaction gtx)
throws Throwable
MethodDispacherInterceptorCacheImpl.commit(org.jboss.cache.transaction.GlobalTransaction)
handleCommitMethod in class MethodDispacherInterceptorThrowable
protected Object handleRollbackMethod(InvocationContext ctx,
GlobalTransaction gtx)
throws Throwable
MethodDispacherInterceptorCacheImpl.rollback(org.jboss.cache.transaction.GlobalTransaction)
handleRollbackMethod in class MethodDispacherInterceptorThrowable
protected Object handleOptimisticPrepareMethod(InvocationContext ctx,
GlobalTransaction gtx,
List modifications,
Map data,
org.jgroups.Address address,
boolean onePhaseCommit)
throws Throwable
MethodDispacherInterceptorCacheImpl.optimisticPrepare(org.jboss.cache.transaction.GlobalTransaction, java.util.List, java.util.Map, org.jgroups.Address, boolean)
handleOptimisticPrepareMethod in class MethodDispacherInterceptorThrowable
protected Object handlePrepareMethod(InvocationContext ctx,
GlobalTransaction gtx,
List modification,
org.jgroups.Address coordinator,
boolean onePhaseCommit)
throws Throwable
MethodDispacherInterceptorCacheImpl.prepare(org.jboss.cache.transaction.GlobalTransaction, java.util.List, org.jgroups.Address, boolean)
handlePrepareMethod in class MethodDispacherInterceptorThrowable
protected Object handleRemoveNodeMethod(InvocationContext ctx,
GlobalTransaction tx,
Fqn fqn,
boolean createUndoOps)
throws Throwable
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 MethodDispacherInterceptorThrowablehandleRemoveNodeMethod(org.jboss.cache.InvocationContext, org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, boolean)
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 MethodDispacherInterceptorThrowablehandleRemoveNodeMethod(org.jboss.cache.InvocationContext, org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, boolean)
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 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 MethodDispacherInterceptorThrowablepublic long getCacheLoaderStores()
CacheStoreInterceptorMBean
getCacheLoaderStores in interface CacheStoreInterceptorMBeanpublic void resetStatistics()
Interceptor
resetStatistics in interface InterceptorMBeanresetStatistics in class Interceptorpublic Map<String,Object> dumpStatistics()
Interceptor
dumpStatistics in interface InterceptorMBeandumpStatistics in class Interceptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||