|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.arjuna.wst11.stub.SubordinateCoordinatorCompletionParticipantStub
public class SubordinateCoordinatorCompletionParticipantStub
A coordinator completion participant registered on behalf of an interposed WS-BA coordinator in order to ensure that durable participants in the interposed transaction are completed, closed or cancelled when requested from the parent transaction.
| Constructor Summary | |
|---|---|
SubordinateCoordinatorCompletionParticipantStub()
|
|
SubordinateCoordinatorCompletionParticipantStub(com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinate.SubordinateBACoordinator coordinator)
|
|
| Method Summary | |
|---|---|
void |
cancel()
The transaction has cancelled, and the participant should undo any work. |
void |
close()
The transaction has completed successfully. |
void |
compensate()
The transaction has cancelled. |
void |
complete()
The coordinator is informing the participant that all work it needs to do within the scope of this business activity has been received. |
void |
error()
this should never get called |
byte[] |
getRecoveryState()
|
boolean |
restoreState(com.arjuna.ats.arjuna.state.InputObjectState ios)
Restore the state of the particpant from the specified input object stream. |
boolean |
saveState(com.arjuna.ats.arjuna.state.OutputObjectState oos)
Save the state of the particpant to the specified input object stream. |
void |
setManager(BAParticipantManager manager)
set the participant manager for this stub. |
String |
status()
this should never get called |
void |
unknown()
this should never get called |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubordinateCoordinatorCompletionParticipantStub(com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinate.SubordinateBACoordinator coordinator)
public SubordinateCoordinatorCompletionParticipantStub()
| Method Detail |
|---|
public void setManager(BAParticipantManager manager)
manager - the manager for this participant
public void complete()
throws WrongStateException,
SystemException
BusinessAgreementWithCoordinatorCompletionParticipant
complete in interface BusinessAgreementWithCoordinatorCompletionParticipantWrongStateException
SystemException
public void close()
throws WrongStateException,
SystemException
BusinessAgreementWithParticipantCompletionParticipant
close in interface BusinessAgreementWithParticipantCompletionParticipantWrongStateException
SystemException
public void cancel()
throws FaultedException,
WrongStateException,
SystemException
BusinessAgreementWithParticipantCompletionParticipant
cancel in interface BusinessAgreementWithParticipantCompletionParticipantFaultedException
WrongStateException
SystemException
public void compensate()
throws FaultedException,
WrongStateException,
SystemException
BusinessAgreementWithParticipantCompletionParticipant
compensate in interface BusinessAgreementWithParticipantCompletionParticipantFaultedException - if the participant was unable to
perform the required compensation action because of an
unrecoverable error. The coordinator is notified of this fault
and as a result will stop resending compensation requests.
SystemException - if the participant was unable to
perform the required compensation action because of a transient
fault. The coordinator is not notified of this fault so it
will retry the compensate request after a suitable timeout.
WrongStateException
public String status()
throws SystemException
status in interface BusinessAgreementWithParticipantCompletionParticipantSystemException
public void unknown()
throws SystemException
unknown in interface BusinessAgreementWithParticipantCompletionParticipantSystemException
public void error()
throws SystemException
error in interface BusinessAgreementWithParticipantCompletionParticipantSystemExceptionpublic boolean saveState(com.arjuna.ats.arjuna.state.OutputObjectState oos)
saveState in interface PersistableParticipantoos - The output output stream.
public boolean restoreState(com.arjuna.ats.arjuna.state.InputObjectState ios)
restoreState in interface PersistableParticipantios - The Input object stream.
public byte[] getRecoveryState()
throws Exception
getRecoveryState in interface org.jboss.jbossts.xts.recovery.participant.ba.PersistableBAParticipantException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||