Class XTSATSubordinateRecoveryModule
java.lang.Object
org.jboss.jbossts.xts.recovery.participant.at.XTSATSubordinateRecoveryModule
- All Implemented Interfaces:
XTSATRecoveryModule
A recovery module which recovers durable participants registered by subordinate coordinators
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(String id, ObjectInputStream stream) called during recovery processing to allow an application to identify a participant id belonging to one of its participants and recreate the participant by deserializing it from the supplied object input stream.void
endScan()
we don't need to use this because the AT recovery manager tracks whether a subordinate AT scan has happenedcalled during recovery processing to allow an application to identify a participant id belonging to one of its participants and use the saved recovery state to recreate the participant.
-
Constructor Details
-
XTSATSubordinateRecoveryModule
public XTSATSubordinateRecoveryModule()
-
-
Method Details
-
deserialize
Description copied from interface:XTSATRecoveryModule
called during recovery processing to allow an application to identify a participant id belonging to one of its participants and recreate the participant by deserializing it from the supplied object input stream. n.b. this is only appropriate in case the participant was originally saved using serialization.- Specified by:
deserialize
in interfaceXTSATRecoveryModule
- Parameters:
id
- the id used when the participant was createdstream
- a stream from which the application should deserialise the participant if it recognises that the id belongs to the module's application- Returns:
- the deserialized Durable2PCParticipant
- Throws:
Exception
- if an error occurs deserializing the durable participant
-
recreate
Description copied from interface:XTSATRecoveryModule
called during recovery processing to allow an application to identify a participant id belonging to one of its participants and use the saved recovery state to recreate the participant. n.b. this is only appropriate in case the participant was originally saved after being converted to a byte array using the PersistibleATParticipant interface.- Specified by:
recreate
in interfaceXTSATRecoveryModule
- Parameters:
id
- the id used when the participant was createdrecoveryState
- a byte array returned form the original participant via a call to method getRecoveryState of interface PersistableATParticipant- Returns:
- the recreated Durable2PCParticipant
- Throws:
Exception
- if an error occurs converting the recoveryState back to a durable participant
-
endScan
public void endScan()we don't need to use this because the AT recovery manager tracks whether a subordinate AT scan has happened- Specified by:
endScan
in interfaceXTSATRecoveryModule
-