public abstract class BAParticipantRecoveryRecord extends Object implements PersistableParticipant
Modifier and Type | Field and Description |
---|---|
protected String |
id |
protected boolean |
isParticipantCompletion |
protected BusinessAgreementWithParticipantCompletionParticipant |
participant |
Modifier | Constructor and Description |
---|---|
protected |
BAParticipantRecoveryRecord(String id,
BusinessAgreementWithParticipantCompletionParticipant participant,
boolean isParticipantCompletion)
construct the protocol-independent part of a WS-BA 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(XTSBARecoveryModule 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 BusinessAgreementWithParticipantCompletionParticipant participant
protected String id
protected boolean isParticipantCompletion
protected BAParticipantRecoveryRecord(String id, BusinessAgreementWithParticipantCompletionParticipant participant, boolean isParticipantCompletion)
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(XTSBARecoveryModule 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.