public interface RecoveryManager
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RecoveryManager.RecoveryIterator
Stateful structure allowing prepared-tx retrieval in a batch-oriented manner, as required by
XAResource.recover(int). |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<String> |
forceTransactionCompletion(XidImpl xid,
boolean commit)
Replays the given transaction by re-running the prepare and commit.
|
String |
forceTransactionCompletionFromCluster(XidImpl xid,
Address where,
boolean commit)
This method invokes
forceTransactionCompletion(XidImpl, boolean) on the specified node. |
Set<InDoubtTxInfo> |
getInDoubtTransactionInfo()
Same as
getInDoubtTransactionInfoFromCluster(), but only returns transactions from the local node. |
Set<InDoubtTxInfo> |
getInDoubtTransactionInfoFromCluster()
Returns a
Set containing all the in-doubt transactions from the cluster, including the local node. |
List<XidImpl> |
getInDoubtTransactions()
Local call that returns a list containing:
|
RecoveryAwareTransaction |
getPreparedTransaction(XidImpl xid)
Local call returning the remote transaction identified by the supplied xid or null.
|
RecoveryManager.RecoveryIterator |
getPreparedTransactionsFromCluster()
Returns the list of transactions in prepared state from both local and remote cluster nodes.
|
boolean |
isTransactionPrepared(GlobalTransaction globalTx)
Checks both internal state and transaction table's state for the given tx.
|
void |
registerInDoubtTransaction(RecoveryAwareRemoteTransaction tx) |
CompletionStage<Void> |
removeRecoveryInformation(Collection<Address> where,
XidImpl xid,
GlobalTransaction gtx,
boolean fromCluster)
Removes from the specified nodes (or all nodes if the value of 'where' is null) the recovery information
associated with these Xids.
|
RecoveryAwareTransaction |
removeRecoveryInformation(Long internalId)
Same as
removeRecoveryInformation(XidImpl) but identifies the tx by its internal id. |
RecoveryAwareTransaction |
removeRecoveryInformation(XidImpl xid)
Remove recovery information stored on this node (doesn't involve rpc).
|
CompletionStage<Void> |
removeRecoveryInformationFromCluster(Collection<Address> where,
long internalId)
Same as
removeRecoveryInformation(Collection, XidImpl, GlobalTransaction, boolean)
but the transaction is identified by its internal id, and not by its xid. |
RecoveryManager.RecoveryIterator getPreparedTransactionsFromCluster()
Set<InDoubtTxInfo> getInDoubtTransactionInfoFromCluster()
Set containing all the in-doubt transactions from the cluster, including the local node. This
does not include transactions that are prepared successfully and for which the originator is still in the
cluster.InDoubtTxInfoSet<InDoubtTxInfo> getInDoubtTransactionInfo()
getInDoubtTransactionInfoFromCluster(), but only returns transactions from the local node.CompletionStage<Void> removeRecoveryInformation(Collection<Address> where, XidImpl xid, GlobalTransaction gtx, boolean fromCluster)
where - on which nodes should this be executed.xid - the list of xids to be removed.gtx - the global transactionfromCluster - true to remove the recovery information from all cluster.CompletionStage<Void> removeRecoveryInformationFromCluster(Collection<Address> where, long internalId)
removeRecoveryInformation(Collection, XidImpl, GlobalTransaction, boolean)
but the transaction is identified by its internal id, and not by its xid.List<XidImpl> getInDoubtTransactions()
- all the remote transactions prepared on this node for which the originator(i.e. the node where the tx stared) is no longer part of the cluster. AND - all the locally originated transactions which are prepared and for which the commit failed
RecoveryAwareTransaction getPreparedTransaction(XidImpl xid)
CompletionStage<String> forceTransactionCompletion(XidImpl xid, boolean commit)
xid - tx to commit or rollbackcommit - if true tx is committed, if false it is rolled backString forceTransactionCompletionFromCluster(XidImpl xid, Address where, boolean commit)
forceTransactionCompletion(XidImpl, boolean) on the specified node.boolean isTransactionPrepared(GlobalTransaction globalTx)
RecoveryAwareTransaction removeRecoveryInformation(Long internalId)
removeRecoveryInformation(XidImpl) but identifies the tx by its internal id.RecoveryAwareTransaction removeRecoveryInformation(XidImpl xid)
void registerInDoubtTransaction(RecoveryAwareRemoteTransaction tx)
Copyright © 2022 JBoss by Red Hat. All rights reserved.