public class RecoveryManager extends Object
| Constructor and Description |
|---|
RecoveryManager() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getRestart()
Gets the restart data for the process.
|
static Boolean |
isIncompleteTxRecoveryRequired() |
static void |
recoverIncompleteTx(XAResource[] xaresArray) |
static void |
recoverXAResources(Enumeration xaResources)
Recovers the in doubt transactions from the provided list of
XAResource objects.
|
static void |
registerTransactionRecoveryFence(TransactionRecoveryFence fence)
Register the implementation of Transaction recovery fence.
|
static void |
setRestart(byte[] bytes)
Sets the restart data for the process.
|
static int |
sizeOfInCompleteTx() |
static void |
startResyncThread()
Start resync thread
|
static void |
startTransactionRecoveryFence()
Start Transaction recovery fence.
|
static void |
waitForRecovery()
Waits for recovery to complete.
|
static void |
waitForResync()
Waits for resync to complete.
|
static void |
waitForResync(int cmtTimeOut)
Waits for resync to complete with timeout.
|
public static void recoverXAResources(Enumeration xaResources)
xaResources - enumerated list of XA Resources to be recoveredpublic static byte[] getRestart()
public static void setRestart(byte[] bytes)
bytes - The restart data.public static void waitForRecovery()
public static void waitForResync()
public static void waitForResync(int cmtTimeOut)
cmtTimeout - Container managed transaction timeoutpublic static Boolean isIncompleteTxRecoveryRequired()
public static int sizeOfInCompleteTx()
public static void recoverIncompleteTx(XAResource[] xaresArray)
public static void registerTransactionRecoveryFence(TransactionRecoveryFence fence)
public static void startTransactionRecoveryFence()
public static void startResyncThread()
Copyright © 2019. All rights reserved.