Package com.sun.jts.CosTransactions
Class DelegatedRecoveryManager
- java.lang.Object
-
- com.sun.jts.CosTransactions.DelegatedRecoveryManager
-
public class DelegatedRecoveryManager extends Object
This class manages information required for Delegated recovery. This class supports multiple delegated recoveries at the same time. Functionality is alsomost same as RecoveryManager.java. This class maintains the map between state and log location instead of static data incase of Recovery Manager.- Version:
- 0.01
- Author:
- Sankara Rao Bhogi
-
-
Constructor Summary
Constructors Constructor Description DelegatedRecoveryManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
delegated_recover(String serverName, String logPath, XAResource[] resources)
static boolean
delegated_recover(String logPath, XAResource[] resources)
static void
waitForRecovery(String logPath)
static void
waitForResync(String logPath)
Waits for resync to complete.
-
-
-
Method Detail
-
delegated_recover
public static boolean delegated_recover(String logPath, XAResource[] resources) throws Exception
- Throws:
Exception
-
delegated_recover
public static boolean delegated_recover(String serverName, String logPath, XAResource[] resources) throws Exception
- Throws:
Exception
-
waitForRecovery
public static void waitForRecovery(String logPath)
-
waitForResync
public static void waitForResync(String logPath)
Waits for resync to complete.- Parameters:
logPath
- log location for which the delegated recovery is done
-
-