public class RecoveryAwareTransactionTable extends XaTransactionTable
RecoveryManager
.xid2LocalTx
CACHE_STOPPED_TOPOLOGY_ID, clustered, clusteringLogic, commandsFactory, configuration, icf, rpcManager, txCoordinator, txFactory
Constructor and Description |
---|
RecoveryAwareTransactionTable() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupStaleTransactions(CacheTopology cacheTopology)
First moves the prepared transactions originated on the leavers into the recovery cache and then cleans up the
transactions that are not yet prepared.
|
void |
failureCompletingTransaction(Transaction tx) |
List<Xid> |
getLocalPreparedXids() |
Set<RecoveryAwareLocalTransaction> |
getLocalTxThatFailedToComplete() |
RemoteTransaction |
getRemoteTransaction(GlobalTransaction txId)
Returns the
RemoteTransaction associated with the supplied transaction id. |
Xid |
getRemoteTransactionXid(Long internalId)
Iterates over the remote transactions and returns the XID of the one that has an internal id equal with the
supplied internal Id.
|
void |
initialize(RecoveryManager recoveryManager) |
void |
localTransactionPrepared(LocalTransaction localTransaction) |
void |
remoteTransactionCommitted(GlobalTransaction gtx,
boolean onePc)
Removes the
RemoteTransaction corresponding to the given tx. |
void |
remoteTransactionPrepared(GlobalTransaction gtx)
Marks the transaction as prepared.
|
void |
remoteTransactionRollback(GlobalTransaction gtx) |
RemoteTransaction |
removeRemoteTransaction(Xid xid) |
addLocalTransactionMapping, enlist, getLocalTransaction, getLocalTxCount, getRecoveryManager, init, removeLocalTransaction, setRecoveryManager
cleanupCompletedTransactions, containRemoteTx, containsLocalTx, containsLocalTx, getLocalTransaction, getLocalTransaction, getLocalTransactions, getLockedKeysForRemoteTransaction, getMinTopologyId, getOrCreateLocalTransaction, getOrCreateRemoteTransaction, getRemoteTransactions, getRemoteTxCount, initialize, isTransactionCompleted, markTransactionCompleted, onTopologyChange, recalculateMinTopologyIdIfNeeded, removeLocalTransactionInternal, removeRemoteTransaction
public void initialize(RecoveryManager recoveryManager)
public void remoteTransactionPrepared(GlobalTransaction gtx)
cleanupStaleTransactions(org.infinispan.topology.CacheTopology)
remoteTransactionPrepared
in class TransactionTable
public void localTransactionPrepared(LocalTransaction localTransaction)
localTransactionPrepared
in class TransactionTable
localTransactionPrepared(org.infinispan.transaction.LocalTransaction)
public void cleanupStaleTransactions(CacheTopology cacheTopology)
cleanupStaleTransactions
in class TransactionTable
cacheTopology
- public RemoteTransaction getRemoteTransaction(GlobalTransaction txId)
TransactionTable
RemoteTransaction
associated with the supplied transaction id. Returns null if no such
association exists.getRemoteTransaction
in class TransactionTable
public void remoteTransactionRollback(GlobalTransaction gtx)
remoteTransactionRollback
in class TransactionTable
public void remoteTransactionCommitted(GlobalTransaction gtx, boolean onePc)
TransactionTable
RemoteTransaction
corresponding to the given tx.remoteTransactionCommitted
in class TransactionTable
public void failureCompletingTransaction(Transaction tx)
failureCompletingTransaction
in class TransactionTable
public Set<RecoveryAwareLocalTransaction> getLocalTxThatFailedToComplete()
public Xid getRemoteTransactionXid(Long internalId)
public RemoteTransaction removeRemoteTransaction(Xid xid)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.