|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.jotm.TransactionRecoveryImpl
public class TransactionRecoveryImpl
| Constructor Summary | |
|---|---|
TransactionRecoveryImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
forget()
close Transaction Recovery Log |
JotmRecovery |
getJotmRecovery()
|
Vector |
getRmRegistration()
|
static TransactionRecoveryImpl |
getTransactionRecovery()
Returns the unique instance of the class or null if not
initialized in case of plain client. |
org.objectweb.howl.log.xa.XACommittingTx |
howlCommitLog(byte[][] xaCmRec)
write the Commit record to the Howl Log |
void |
howlDoneLog(byte[][] xaDnRec,
org.objectweb.howl.log.xa.XACommittingTx xaCmTx)
write the Done record to the Howl Log |
void |
logNewResourceManagerRM1(String rmName,
XAResource xaRes,
String xaresName)
Log a ResourceManager |
void |
recoverResourceManager()
Recover a Resource Manager with the JOTM Transaction Manager. |
void |
registerResourceManager(String rmName,
XAResource rmXares,
String info,
Properties rmProperties,
TransactionResourceManager trm)
Register a Resource Manager with the JOTM Transaction Manager. |
void |
registerResourceManager(String rmName,
XAResource rmXares,
String info,
TransactionResourceManager tranrm)
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 (in Howl) every Resource Manager (XAResource) that has been registered. |
void |
unregisterResourceManager(String rmName,
XAResource rmXares)
Unregister a Resource Manager from the JOTM Transaction Manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionRecoveryImpl()
| Method Detail |
|---|
public static TransactionRecoveryImpl getTransactionRecovery()
null if not
initialized in case of plain client.
TransactionRecovery object createdpublic JotmRecovery getJotmRecovery()
getJotmRecovery in interface TransactionRecoverypublic Vector getRmRegistration()
getRmRegistration in interface TransactionRecovery
public void registerResourceManager(String rmName,
XAResource rmXares,
String info,
Properties rmProperties,
TransactionResourceManager trm)
throws XAException
registerResourceManager in interface TransactionRecoveryrmName - The Resource Manager to be registered.rmXares - XAResource associated with the Resource Managerinfo - String of information for display with admin interfacermProperties - - Strings specifying recovery properties for resourcetrm - TransactionResourceManager to return the registered XAResource
XAException - if an error occurs
public void registerResourceManager(String rmName,
XAResource rmXares,
String info,
TransactionResourceManager tranrm)
throws XAException
TransactionRecovery
registerResourceManager in interface TransactionRecoveryrmName - The Resource Manager to be registered.rmXares - XAResource associated with the Resource Managerinfo - String of information for display with admin interfacetranrm - TransactionResourceManager to return the registered XAResource
XAException - if an error occurs
public XAResource reportResourceManager(String rmName)
throws XAException
reportResourceManager in interface TransactionRecoveryrmName - The Resource Manager to be reported upon.
XAException - if an error occurs
public void unregisterResourceManager(String rmName,
XAResource rmXares)
throws XAException
unregisterResourceManager in interface TransactionRecoveryrmName - The Resource Manager to be unregistered.rmXares - XAResource associated with the Resource Manager
XAException - if an error occurs
public void startResourceManagerRecovery()
throws XAException
startResourceManagerRecovery in interface TransactionRecoveryXAException - Thrown if the transaction manager
encounters an unexpected error condition
public void logNewResourceManagerRM1(String rmName,
XAResource xaRes,
String xaresName)
throws XAException
rmName - ResourceManager namexaRes - XAResourcexaresName - name of the XAResource
XAException - Cannot write the log
public void recoverResourceManager()
throws XAException
XAException - Thrown if the transaction manager
encounters an unexpected error condition
public org.objectweb.howl.log.xa.XACommittingTx howlCommitLog(byte[][] xaCmRec)
throws org.objectweb.howl.log.LogException,
IOException,
InterruptedException
xaCmRec - the Commit Record
org.objectweb.howl.log.LogException - could not log the record
IOException
InterruptedException
public void howlDoneLog(byte[][] xaDnRec,
org.objectweb.howl.log.xa.XACommittingTx xaCmTx)
throws org.objectweb.howl.log.LogException,
IOException,
InterruptedException
xaDnRec - the Done RecordxaCmTx - the XACommittingTx
org.objectweb.howl.log.LogException - could not log the record
IOException
InterruptedException
public void forget()
throws org.objectweb.howl.log.LogException,
SystemException
forget in interface TransactionRecoveryorg.objectweb.howl.log.LogException
SystemException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||