|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.wst11.stub.SubordinateDurable2PCStub
public class SubordinateDurable2PCStub
A durable participant registered on behalf of an interposed WS-AT coordinator in order to ensure that durable participants in the subtransaction prepared, committed and aborted at the right time.
Constructor Summary | |
---|---|
SubordinateDurable2PCStub()
empty constructor for use only during recovery |
|
SubordinateDurable2PCStub(com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinate.SubordinateATCoordinator coordinator)
normal constructor used when the subordinate coordinator is registered as a durable participant with its parent coordinator. |
Method Summary | |
---|---|
void |
commit()
this will be called when the parent coordinator commits its durable participants and should ensure that the interposed cooordinator does the same |
void |
error()
this should never get called |
byte[] |
getRecoveryState()
this participant implements the PersistableATarticipant interface so it can save its state. |
boolean |
isRecovered()
test if this participant is recovered |
Vote |
prepare()
This will be called when the parent coordinator is preparing its durable participants and should ensure that the interposed cooordinator does the same. |
boolean |
restoreState(com.arjuna.ats.arjuna.state.InputObjectState ios)
Restore the state of the particpant from the specified input object stream. |
void |
rollback()
this will be called when the parent coordinator rolls back its durable participants and should ensure that the interposed cooordinator does the same |
boolean |
saveState(com.arjuna.ats.arjuna.state.OutputObjectState oos)
Save the state of the particpant to the specified input object stream. |
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 SubordinateDurable2PCStub(com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinate.SubordinateATCoordinator coordinator)
coordinator
- public SubordinateDurable2PCStub()
Method Detail |
---|
public Vote prepare() throws WrongStateException, SystemException
prepare
in interface Participant
WrongStateException
- if the subordinate coordinator does the same
SystemException
- if the subordinate coordinator does the sameVote
public void commit() throws WrongStateException, SystemException
commit
in interface Participant
WrongStateException
SystemException
public void rollback() throws WrongStateException, SystemException
rollback
in interface Participant
WrongStateException
SystemException
public void unknown() throws SystemException
unknown
in interface Participant
SystemException
public void error() throws SystemException
error
in interface Participant
SystemException
public boolean saveState(com.arjuna.ats.arjuna.state.OutputObjectState oos)
saveState
in interface PersistableParticipant
oos
- The output output stream.
public boolean restoreState(com.arjuna.ats.arjuna.state.InputObjectState ios)
restoreState
in interface PersistableParticipant
ios
- The Input object stream.
public boolean isRecovered()
public byte[] getRecoveryState() throws Exception
getRecoveryState
in interface org.jboss.jbossts.xts.recovery.participant.at.PersistableATParticipant
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |