com.arjuna.wst11.stub
Class SubordinateVolatile2PCStub

java.lang.Object
  extended by com.arjuna.wst11.stub.SubordinateVolatile2PCStub
All Implemented Interfaces:
Participant, Volatile2PCParticipant

public class SubordinateVolatile2PCStub
extends Object
implements Volatile2PCParticipant

A volatile participant registered on behalf of an interposed WS-AT coordinator in order to ensure that volatile participants in the subtransaction are prepared at the right time.


Constructor Summary
SubordinateVolatile2PCStub(com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinate.SubordinateATCoordinator coordinator)
           
 
Method Summary
 void commit()
          this is called as part of the after completion processing and should ensure that the interposed coordinator performs its afterCompletion processing
 void error()
          this should never get called
 Vote prepare()
          This will be called when the parent coordinator is preparing its volatile participants and should ensure that the interposed cooordinator does the same.
 void rollback()
          this is called as part of the after completion processing and should ensure that the interposed coordinator performs its afterCompletion processing
 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

SubordinateVolatile2PCStub

public SubordinateVolatile2PCStub(com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinate.SubordinateATCoordinator coordinator)
Method Detail

prepare

public Vote prepare()
             throws WrongStateException,
                    SystemException
This will be called when the parent coordinator is preparing its volatile participants and should ensure that the interposed cooordinator does the same.

Specified by:
prepare in interface Participant
Returns:
the Vote returned by the subordinate coordinator.
Throws:
WrongStateException - if the subordinate coordinator does the same
SystemException - if the subordinate coordinator does the same
See Also:
Vote

commit

public void commit()
            throws WrongStateException,
                   SystemException
this is called as part of the after completion processing and should ensure that the interposed coordinator performs its afterCompletion processing

Specified by:
commit in interface Participant
Throws:
WrongStateException
SystemException

rollback

public void rollback()
              throws WrongStateException,
                     SystemException
this is called as part of the after completion processing and should ensure that the interposed coordinator performs its afterCompletion processing

Specified by:
rollback in interface Participant
Throws:
WrongStateException
SystemException

unknown

public void unknown()
             throws SystemException
this should never get called

Specified by:
unknown in interface Participant
Throws:
SystemException

error

public void error()
           throws SystemException
this should never get called

Specified by:
error in interface Participant
Throws:
SystemException


Copyright © 2012. All Rights Reserved.