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()
return the path string under which BA participant records are to be located in the TX
object store
|
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 PersistableParticipantoos - The output output stream.public boolean restoreState(InputObjectState ios)
restoreState in interface PersistableParticipantios - The Input object stream.public boolean restoreParticipant(XTSBARecoveryModule module) throws Exception
module - the XTS recovery module to be used to attempt the conversionExceptionpublic String getId()
public static String type()
protected abstract void saveEndpointReference(OutputObjectState oos) throws IOException, XMLStreamException
IOExceptionXMLStreamExceptionprotected abstract void restoreEndpointReference(InputObjectState ios) throws IOException, XMLStreamException
IOExceptionXMLStreamExceptionpublic abstract void activate()
public abstract boolean isActive()
Copyright © 2013. All rights reserved.