public abstract class ATParticipantRecoveryRecord extends Object implements PersistableParticipant
Modifier and Type | Field and Description |
---|---|
protected String |
id |
protected Durable2PCParticipant |
participant |
Modifier | Constructor and Description |
---|---|
protected |
ATParticipantRecoveryRecord(String id,
Durable2PCParticipant participant)
construct the protocol-independent part of a WS-AT participant recovery record
|
Modifier and Type | Method and Description |
---|---|
abstract void |
activate()
create a participant engine to manage commit or rollback processing for the
participant and install it in the active participants table
|
String |
getId() |
abstract boolean |
isActive()
test whether a participant is currently activated with the id of this recovery record.
|
protected abstract void |
restoreEndpointReference(InputObjectState ios)
restore the endpoint reference to the coordinator for this participant
|
boolean |
restoreParticipant(XTSATRecoveryModule module)
called during recovery processing to attempt to convert the restored application-
specific recovery state back into a participant
|
boolean |
restoreState(InputObjectState ios)
Restore the state of the particpant from the specified input object stream.
|
protected abstract void |
saveEndpointReference(OutputObjectState oos)
save the endpoint reference to the coordinator for this participant
|
boolean |
saveState(OutputObjectState oos)
Retrieve and save the state of the particpant to the specified input object stream.
|
static String |
type() |
protected Durable2PCParticipant participant
protected String id
protected ATParticipantRecoveryRecord(String id, Durable2PCParticipant participant)
id
- participant
- public final boolean saveState(OutputObjectState oos)
saveState
in interface PersistableParticipant
oos
- The output output stream.public boolean restoreState(InputObjectState ios)
restoreState
in interface PersistableParticipant
ios
- The Input object stream.public boolean restoreParticipant(XTSATRecoveryModule module) throws Exception
module
- the XTS recovery module to be used to attempt the conversionException
public String getId()
public static String type()
protected abstract void saveEndpointReference(OutputObjectState oos) throws IOException, XMLStreamException
IOException
XMLStreamException
protected abstract void restoreEndpointReference(InputObjectState ios) throws IOException, XMLStreamException
IOException
XMLStreamException
public abstract void activate()
public abstract boolean isActive()
Copyright © 2021 JBoss by Red Hat. All rights reserved.