|
||||||||||
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.BaseTransactionalContextInterceptor org.jboss.cache.interceptors.TxInterceptor
public class TxInterceptor
This interceptor is the new default at the head of all interceptor chains, and makes transactional attributes available to all interceptors in the chain. This interceptor is also responsible for registering for synchronisation on transaction completion.
Field Summary |
---|
Fields inherited from class org.jboss.cache.interceptors.BaseTransactionalContextInterceptor |
---|
txManager, txTable |
Fields inherited from class org.jboss.cache.interceptors.Interceptor |
---|
cache, configuration, last, log, next, trace |
Constructor Summary | |
---|---|
TxInterceptor()
|
Methods inherited from class org.jboss.cache.interceptors.BaseTransactionalContextInterceptor |
---|
copyInvocationScopeOptionsToTxScope, isRollingBack, setTransactionalContext |
Methods inherited from class org.jboss.cache.interceptors.MethodDispacherInterceptor |
---|
handleBlockChannelMethod, handleUnblockChannelMethod, invoke, skipMethodCall |
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 |
Constructor Detail |
---|
public TxInterceptor()
Method Detail |
---|
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
protected Object handleCommitMethod(InvocationContext ctx, GlobalTransaction globalTransaction) throws Throwable
MethodDispacherInterceptor
CacheImpl.commit(org.jboss.cache.transaction.GlobalTransaction)
handleCommitMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleRollbackMethod(InvocationContext ctx, GlobalTransaction globalTransaction) throws Throwable
MethodDispacherInterceptor
CacheImpl.rollback(org.jboss.cache.transaction.GlobalTransaction)
handleRollbackMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleLockMethod(InvocationContext ctx, Fqn fqn, NodeLock.LockType lockType, boolean recursive) throws Throwable
MethodDispacherInterceptor
CacheImpl._lock(org.jboss.cache.Fqn, org.jboss.cache.lock.NodeLock.LockType, boolean)
handleLockMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleRemoveDataVersionedMethod(InvocationContext ctx, GlobalTransaction gtx, Fqn fqn, boolean createUndoOps, DataVersion dv) throws Throwable
MethodDispacherInterceptor
CacheImpl._removeData(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, boolean, org.jboss.cache.optimistic.DataVersion)
handleRemoveDataVersionedMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleRemoveKeyVersionedMethod(InvocationContext ctx, GlobalTransaction gtx, Fqn fqn, Object key, boolean createUndoOps, DataVersion dv) throws Throwable
MethodDispacherInterceptor
CacheImpl._remove(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, Object, boolean, org.jboss.cache.optimistic.DataVersion)
handleRemoveKeyVersionedMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleRemoveNodeVersionedMethod(InvocationContext ctx, GlobalTransaction gtx, Fqn fqn, boolean createUndoOps, DataVersion dv) throws Throwable
MethodDispacherInterceptor
CacheImpl._remove(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, boolean, org.jboss.cache.optimistic.DataVersion)
handleRemoveNodeVersionedMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleDataGravitationCleanupMethod(InvocationContext ctx, Fqn primary, Fqn backup) throws Throwable
MethodDispacherInterceptor
RemoteCacheInvocationDelegate.dataGravitationCleanup(org.jboss.cache.Fqn, org.jboss.cache.Fqn)
handleDataGravitationCleanupMethod
in class MethodDispacherInterceptor
Throwable
protected Object handlePutForExternalReadVersionedMethod(InvocationContext ctx, GlobalTransaction gtx, Fqn fqn, Object key, Object value, DataVersion dv) throws Throwable
MethodDispacherInterceptor
CacheImpl._putForExternalRead(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, Object, Object, org.jboss.cache.optimistic.DataVersion)
handlePutForExternalReadVersionedMethod
in class MethodDispacherInterceptor
Throwable
protected Object handlePutKeyValueVersionedMethod(InvocationContext ctx, GlobalTransaction gtx, Fqn fqn, Object key, Object value, boolean createUndoOps, DataVersion dv) throws Throwable
MethodDispacherInterceptor
CacheImpl._put(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, Object, Object, boolean, org.jboss.cache.optimistic.DataVersion)
handlePutKeyValueVersionedMethod
in class MethodDispacherInterceptor
Throwable
protected Object handlePutDataVersionedMethod(InvocationContext ctx, GlobalTransaction globalTransaction, Fqn fqn, Map map, Boolean createUndoOps, DataVersion dataVersion) throws Throwable
MethodDispacherInterceptor
CacheImpl._put(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, java.util.Map, boolean, org.jboss.cache.optimistic.DataVersion)
handlePutDataVersionedMethod
in class MethodDispacherInterceptor
Throwable
protected Object handlePutDataEraseVersionedMethod(InvocationContext ctx, GlobalTransaction gtx, Fqn fqn, Map data, boolean createUndoOps, boolean eraseContent, DataVersion dv) throws Throwable
MethodDispacherInterceptor
CacheImpl._put(org.jboss.cache.transaction.GlobalTransaction, org.jboss.cache.Fqn, java.util.Map, boolean, boolean, org.jboss.cache.optimistic.DataVersion)
handlePutDataEraseVersionedMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleExistsMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl.exists(String)
handleExistsMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleEvictVersionedNodeMethod(InvocationContext ctx, Fqn fqn, DataVersion dataVersion) throws Throwable
MethodDispacherInterceptor
CacheImpl._evict(org.jboss.cache.Fqn, org.jboss.cache.optimistic.DataVersion)
handleEvictVersionedNodeMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleEvictMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
handleEvictMethod
in class MethodDispacherInterceptor
Throwable
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 MethodDispacherInterceptor
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 MethodDispacherInterceptor
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 MethodDispacherInterceptor
Throwable
protected Object handleGetDataMapMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl._getData(org.jboss.cache.Fqn)
handleGetDataMapMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleGetKeysMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
Cache.getKeys(Fqn)
handleGetKeysMethod
in class MethodDispacherInterceptor
Throwable
protected Object handlePrintMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl._print(org.jboss.cache.Fqn)
handlePrintMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleReleaseAllLocksMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl._releaseAllLocks(org.jboss.cache.Fqn)
handleReleaseAllLocksMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleGetChildrenNamesMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl._getChildrenNames(org.jboss.cache.Fqn)
handleGetChildrenNamesMethod
in class MethodDispacherInterceptor
Throwable
protected Object handleGetNodeMethod(InvocationContext ctx, Fqn fqn) throws Throwable
MethodDispacherInterceptor
CacheImpl._get(org.jboss.cache.Fqn)
handleGetNodeMethod
in class MethodDispacherInterceptor
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 MethodDispacherInterceptor
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 MethodDispacherInterceptor
Throwable
protected Object handleMoveMethod(InvocationContext ctx, Fqn from, Fqn to) throws Throwable
MethodDispacherInterceptor
CacheImpl._move(org.jboss.cache.Fqn, org.jboss.cache.Fqn)
handleMoveMethod
in class MethodDispacherInterceptor
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 MethodDispacherInterceptor
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 MethodDispacherInterceptor
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 MethodDispacherInterceptor
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 MethodDispacherInterceptor
Throwable
public long getPrepares()
TxInterceptorMBean
getPrepares
in interface TxInterceptorMBean
public long getCommits()
TxInterceptorMBean
getCommits
in interface TxInterceptorMBean
public long getRollbacks()
TxInterceptorMBean
getRollbacks
in interface TxInterceptorMBean
public void resetStatistics()
Interceptor
resetStatistics
in interface InterceptorMBean
resetStatistics
in class Interceptor
public Map<String,Object> dumpStatistics()
Interceptor
dumpStatistics
in interface InterceptorMBean
dumpStatistics
in class Interceptor
protected void runCommitPhase(InvocationContext ctx, GlobalTransaction gtx, Transaction tx, List modifications, List clModifications, boolean onePhaseCommit)
gtx
- protected void runRollbackPhase(InvocationContext ctx, GlobalTransaction gtx, Transaction tx, List modifications)
gtx
- protected Object runPreparePhase(InvocationContext ctx, GlobalTransaction gtx, List modifications) throws Throwable
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |