com.sun.jts.CosTransactions
Class RecoveryManager

java.lang.Object
  extended by com.sun.jts.CosTransactions.RecoveryManager

public class RecoveryManager
extends java.lang.Object

This class manages information required for recovery, and also general state regarding transactions in a process.

Version:
0.01
Author:
Simon Holdsworth, IBM Corporation
See Also:

Constructor Summary
RecoveryManager()
           
 
Method Summary
static byte[] getRestart()
          Gets the restart data for the process.
static java.lang.Boolean isIncompleteTxRecoveryRequired()
           
static void recoverIncompleteTx(XAResource[] xaresArray)
           
static void recoverXAResources(java.util.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 sizeOfInCompleTx()
           
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecoveryManager

public RecoveryManager()
Method Detail

recoverXAResources

public static void recoverXAResources(java.util.Enumeration xaResources)
Recovers the in doubt transactions from the provided list of XAResource objects. This method is never called by the recovery thread, and its the application threads which wants to pass in the XA resources that call this.

Parameters:
xaResources - enumerated list of XA Resources to be recovered

getRestart

public static byte[] getRestart()
Gets the restart data for the process.

Parameters:
-
Returns:
The restart data.
See Also:

setRestart

public static void setRestart(byte[] bytes)
Sets the restart data for the process.

Parameters:
bytes - The restart data.
See Also:

waitForRecovery

public static void waitForRecovery()
Waits for recovery to complete.

Parameters:
-
See Also:

waitForResync

public static void waitForResync()
Waits for resync to complete.

Parameters:
-
See Also:

isIncompleteTxRecoveryRequired

public static java.lang.Boolean isIncompleteTxRecoveryRequired()

sizeOfInCompleTx

public static int sizeOfInCompleTx()

recoverIncompleteTx

public static void recoverIncompleteTx(XAResource[] xaresArray)

registerTransactionRecoveryFence

public static void registerTransactionRecoveryFence(TransactionRecoveryFence fence)
Register the implementation of Transaction recovery fence. This service is started as soon as all the resources are available.


startTransactionRecoveryFence

public static void startTransactionRecoveryFence()
Start Transaction recovery fence.


startResyncThread

public static void startResyncThread()
Start resync thread



Copyright © 2012 GlassFish Community. All Rights Reserved.