org.objectweb.jotm

Class JotmRecovery


public class JotmRecovery
extends Object

Constructor Summary

JotmRecovery()
Constructor.

Method Summary

static JotmRecovery
getJotmRecovery()
Returns the unique instance of the class or null if not initialized.
static Vector
getRecoverRmInfo()
Returns the unique instance of the class or null if not initialized.
int
getRmIndex(byte[] pxares)
Returns the index of the Resource Manager's XAResource.
static Vector
getTxRecovered()
Returns the unique instance of the class or null if not initialized.
Vector
getUserRecoveryVector()
void
rebuildTransaction(XALogRecord lr)
Processes an XACOMMIT entry (putCommit) that does not have an associated XADONE entry (putDone).
void
recoverTransactions(Vector rmreg)

Constructor Details

JotmRecovery

public JotmRecovery()
Constructor.

Method Details

getJotmRecovery

public static JotmRecovery getJotmRecovery()
Returns the unique instance of the class or null if not initialized.

Returns:
The JotmRecovery object created


getRecoverRmInfo

public static Vector getRecoverRmInfo()
Returns the unique instance of the class or null if not initialized.

Returns:
The RecoverRmInfo vector created


getRmIndex

public int getRmIndex(byte[] pxares)
Returns the index of the Resource Manager's XAResource.

Returns:
Index of the Resource Manager's XAResource.


getTxRecovered

public static Vector getTxRecovered()
Returns the unique instance of the class or null if not initialized.

Returns:
The TxRecovered vector created


getUserRecoveryVector

public Vector getUserRecoveryVector()


rebuildTransaction

public void rebuildTransaction(XALogRecord lr)
Processes an XACOMMIT entry (putCommit) that does not have an associated XADONE entry (putDone).

Parameters:
lr - LogRecord that was passed to onRecord() method.


recoverTransactions

public void recoverTransactions(Vector rmreg)
            throws XAException