Package com.arjuna.ats.jbossatx.jta
Class RecoveryManagerService
java.lang.Object
com.arjuna.ats.jbossatx.jta.RecoveryManagerService
- All Implemented Interfaces:
org.jboss.tm.XAResourceRecoveryRegistry
- Direct Known Subclasses:
RecoveryManagerService
public class RecoveryManagerService
extends Object
implements org.jboss.tm.XAResourceRecoveryRegistry
JBoss Transaction Recovery Service.
- Version:
- $Id$
- Author:
- Jonathan Halliday (jonathan.halliday@redhat.com)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSerializableXAResourceDeserializer
(SerializableXAResourceDeserializer serializableXAResourceDeserializer) void
addXAResourceRecovery
(org.jboss.tm.XAResourceRecovery xaResourceRecovery) Register an XAResourceRecovery instance with the transaction recovery system.void
create()
void
destroy()
void
removeXAResourceRecovery
(org.jboss.tm.XAResourceRecovery xaResourceRecovery) Unregister an XAResourceRecovery instance from the transaction recovery system.void
resume()
void
start()
void
stop()
void
suspend()
-
Constructor Details
-
RecoveryManagerService
public RecoveryManagerService()
-
-
Method Details
-
create
public void create() -
destroy
public void destroy() -
start
public void start() -
stop
- Throws:
Exception
-
suspend
public void suspend() -
resume
public void resume() -
addXAResourceRecovery
public void addXAResourceRecovery(org.jboss.tm.XAResourceRecovery xaResourceRecovery) Description copied from interface:org.jboss.tm.XAResourceRecoveryRegistry
Register an XAResourceRecovery instance with the transaction recovery system. This should be called by deployers that are deploying a new XA aware module that needs recovery support. For example, a database connection pool, JMS adapter or JCA connector.- Specified by:
addXAResourceRecovery
in interfaceorg.jboss.tm.XAResourceRecoveryRegistry
- Parameters:
xaResourceRecovery
- The XAResourceRecovery instance to register.
-
removeXAResourceRecovery
public void removeXAResourceRecovery(org.jboss.tm.XAResourceRecovery xaResourceRecovery) Description copied from interface:org.jboss.tm.XAResourceRecoveryRegistry
Unregister an XAResourceRecovery instance from the transaction recovery system. This should be called when an XA aware module is undeployed, to inform the recovery system that recovery is no longer required or supported. Note this method may block whilst an ongoing recovery operation is completed. Recovery behavior is undefined if the undeployment does not wait for this operation to complete.- Specified by:
removeXAResourceRecovery
in interfaceorg.jboss.tm.XAResourceRecoveryRegistry
- Parameters:
xaResourceRecovery
- The XAResourceRecovery instance to unregister. Implementations should fail silent if an attempt is made to unregister an XAResourceRecovery instance that is not currently registered.
-
addSerializableXAResourceDeserializer
public void addSerializableXAResourceDeserializer(SerializableXAResourceDeserializer serializableXAResourceDeserializer)
-