public class RecoveryAwareTransactionTable extends XaTransactionTable
RecoveryManager.xid2LocalTxCACHE_STOPPED_VIEW_ID, clustered, clusteringLogic, commandsFactory, configuration, icc, rpcManager, txCoordinator, txFactory| Constructor and Description |
|---|
RecoveryAwareTransactionTable() |
| Modifier and Type | Method and Description |
|---|---|
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)
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) |
protected void |
updateStateOnNodesLeaving(Collection<Address> leavers)
First moves the prepared transactions originated on the leavers into the recovery cache and then cleans up the
transactions that are not yet prepared.
|
addLocalTransactionMapping, enlist, getLocalTransaction, getLocalTxCount, getRecoveryManager, init, removeLocalTransaction, removeLocalTransaction, setRecoveryManagercontainRemoteTx, containsLocalTx, createRemoteTransaction, getLocalTransaction, getLocalTransactions, getLocalTx, getLockedKeysForRemoteTransaction, getMinViewId, getOrCreateLocalTransaction, getRemoteTransactions, getRemoteTxCount, initialize, recalculateMinViewIdIfNeeded, recalculateMinViewIdOnTopologyChange, removeLocalTransactionInternal, removeRemoteTransactionpublic void initialize(RecoveryManager recoveryManager)
public void remoteTransactionPrepared(GlobalTransaction gtx)
updateStateOnNodesLeaving(java.util.Collection)remoteTransactionPrepared in class TransactionTablepublic void localTransactionPrepared(LocalTransaction localTransaction)
localTransactionPrepared in class TransactionTablelocalTransactionPrepared(org.infinispan.transaction.LocalTransaction)protected void updateStateOnNodesLeaving(Collection<Address> leavers)
updateStateOnNodesLeaving in class TransactionTablepublic RemoteTransaction getRemoteTransaction(GlobalTransaction txId)
TransactionTableRemoteTransaction associated with the supplied transaction id. Returns null if no such
association exists.getRemoteTransaction in class TransactionTablepublic void remoteTransactionRollback(GlobalTransaction gtx)
remoteTransactionRollback in class TransactionTablepublic void remoteTransactionCommitted(GlobalTransaction gtx)
TransactionTableRemoteTransaction corresponding to the given tx.remoteTransactionCommitted in class TransactionTablepublic void failureCompletingTransaction(Transaction tx)
failureCompletingTransaction in class TransactionTablepublic Set<RecoveryAwareLocalTransaction> getLocalTxThatFailedToComplete()
public Xid getRemoteTransactionXid(Long internalId)
public RemoteTransaction removeRemoteTransaction(Xid xid)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.