org.objectweb.jotm

Interface TransactionRecovery

Known Implementing Classes:
TransactionRecoveryImpl

public interface TransactionRecovery

Method Summary

void
forget()
JotmRecovery
getJotmRecovery()
Vector
getRmRegistration()
void
registerResourceManager(String rmName, XAResource rmXares, String info, TransactionResourceManager trm)
Register a Resource Manager with the JOTM Transaction Manager.
XAResource
reportResourceManager(String rmName)
Provide information regarding the status and state of the XAResource.
void
startResourceManagerRecovery()
Log all the Resource Managers with the JOTM Transaction Manager.
void
unregisterResourceManager(String rmName, XAResource rmXares)
Unregister a Resource Manager from the JOTM Transaction Manager.

Method Details

forget

public void forget()
            throws LogException,
                   Exception


getJotmRecovery

public JotmRecovery getJotmRecovery()


getRmRegistration

public Vector getRmRegistration()


registerResourceManager

public void registerResourceManager(String rmName,
                                    XAResource rmXares,
                                    String info,
                                    TransactionResourceManager trm)
            throws XAException
Register a Resource Manager with the JOTM Transaction Manager.

Parameters:
rmName - The Resource Manager to be registered.
rmXares - XAResource associated with the Resource Manager
info - String of information for display with admin interface
trm - TransactionResourceManager to return the registered XAResource


reportResourceManager

public XAResource reportResourceManager(String rmName)
            throws XAException
Provide information regarding the status and state of the XAResource.

Returns:
The XAResource to be reported upon.


startResourceManagerRecovery

public void startResourceManagerRecovery()
            throws XAException
Log all the Resource Managers with the JOTM Transaction Manager.


unregisterResourceManager

public void unregisterResourceManager(String rmName,
                                      XAResource rmXares)
            throws XAException
Unregister a Resource Manager from the JOTM Transaction Manager.

Parameters:
rmName - The Resource Manager to be unregistered.
rmXares - XAResource associated with the Resource Manager