|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jotm.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 |
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() throws org.objectweb.howl.log.LogException, IOException, Exception
Method Detail |
public static TransactionRecoveryImpl getTransactionRecovery()
null
if not
initialized in case of plain client.
TransactionRecovery
object createdpublic JotmRecovery getJotmRecovery()
getJotmRecovery
in interface TransactionRecovery
public Vector getRmRegistration()
getRmRegistration
in interface TransactionRecovery
public void registerResourceManager(String rmName, XAResource rmXares, String info, Properties rmProperties, TransactionResourceManager trm) throws XAException
registerResourceManager
in interface TransactionRecovery
rmName
- 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 occurspublic void registerResourceManager(String rmName, XAResource rmXares, String info, TransactionResourceManager tranrm) throws XAException
TransactionRecovery
registerResourceManager
in interface TransactionRecovery
rmName
- 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 occurspublic XAResource reportResourceManager(String rmName) throws XAException
reportResourceManager
in interface TransactionRecovery
rmName
- The Resource Manager to be reported upon.
XAException
- if an error occurspublic void unregisterResourceManager(String rmName, XAResource rmXares) throws XAException
unregisterResourceManager
in interface TransactionRecovery
rmName
- The Resource Manager to be unregistered.rmXares
- XAResource associated with the Resource Manager
XAException
- if an error occurspublic void startResourceManagerRecovery() throws XAException
startResourceManagerRecovery
in interface TransactionRecovery
XAException
- Thrown if the transaction manager
encounters an unexpected error conditionpublic void recoverResourceManager() throws XAException
XAException
- Thrown if the transaction manager
encounters an unexpected error conditionpublic org.objectweb.howl.log.xa.XACommittingTx howlCommitLog(byte[][] xaCmRec) throws org.objectweb.howl.log.LogException, Exception
org.objectweb.howl.log.LogException
Exception
public void howlDoneLog(byte[][] xaDnRec, org.objectweb.howl.log.xa.XACommittingTx xaCmTx) throws org.objectweb.howl.log.LogException, Exception
org.objectweb.howl.log.LogException
Exception
public void forget() throws org.objectweb.howl.log.LogException, Exception
forget
in interface TransactionRecovery
org.objectweb.howl.log.LogException
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |