Class ATParticipantRecoveryRecord
java.lang.Object
org.jboss.jbossts.xts.recovery.participant.at.ATParticipantRecoveryRecord
- All Implemented Interfaces:
PersistableParticipant
- Direct Known Subclasses:
ATParticipantRecoveryRecord
asbstract class used to implement save, recover and reactivate API for durable
XTS participants. this is subclassed by both a 1.0 and a 1.1 specific class because
the activate operation needs to create a participant engine appropriate to the
protocol in use when the participant was saved.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
ATParticipantRecoveryRecord
(String id, Durable2PCParticipant participant) construct the protocol-independent part of a WS-AT participant recovery record -
Method Summary
Modifier and TypeMethodDescriptionabstract void
activate()
create a participant engine to manage commit or rollback processing for the participant and install it in the active participants tablegetId()
abstract boolean
isActive()
test whether a participant is currently activated with the id of this recovery record.protected abstract void
restore the endpoint reference to the coordinator for this participantboolean
called during recovery processing to attempt to convert the restored application- specific recovery state back into a participantboolean
Restore the state of the particpant from the specified input object stream.protected abstract void
save the endpoint reference to the coordinator for this participantfinal boolean
Retrieve and save the state of the particpant to the specified input object stream.static String
type()
-
Field Details
-
participant
-
id
-
-
Constructor Details
-
ATParticipantRecoveryRecord
construct the protocol-independent part of a WS-AT participant recovery record- Parameters:
id
-participant
-
-
-
Method Details
-
saveState
Retrieve and save the state of the particpant to the specified input object stream.- Specified by:
saveState
in interfacePersistableParticipant
- Parameters:
oos
- The output output stream.- Returns:
- true if persisted, false otherwise.
-
restoreState
Restore the state of the particpant from the specified input object stream.- Specified by:
restoreState
in interfacePersistableParticipant
- Parameters:
ios
- The Input object stream.- Returns:
- true if restored, false otherwise.
-
restoreParticipant
called during recovery processing to attempt to convert the restored application- specific recovery state back into a participant- Parameters:
module
- the XTS recovery module to be used to attempt the conversion- Returns:
- whether the record could be restored using the XTSATRecoveryModule
- Throws:
Exception
-
getId
-
type
- Returns:
- the path string under which AT participant records are to be located in the TX object store
-
saveEndpointReference
protected abstract void saveEndpointReference(OutputObjectState oos) throws IOException, XMLStreamException save the endpoint reference to the coordinator for this participant- Throws:
IOException
XMLStreamException
-
restoreEndpointReference
protected abstract void restoreEndpointReference(InputObjectState ios) throws IOException, XMLStreamException restore the endpoint reference to the coordinator for this participant- Throws:
IOException
XMLStreamException
-
activate
public abstract void activate()create a participant engine to manage commit or rollback processing for the participant and install it in the active participants table -
isActive
public abstract boolean isActive()test whether a participant is currently activated with the id of this recovery record.- Returns:
- true if a participant is currently activated with the id of this recovery record
-