com.arjuna.wst.stub
Class LocalCoordinatorCompletionParticipantStub

java.lang.Object
  extended by com.arjuna.wst.stub.LocalParticipantCompletionParticipantStub
      extended by com.arjuna.wst.stub.LocalCoordinatorCompletionParticipantStub
All Implemented Interfaces:
BusinessAgreementWithCoordinatorCompletionParticipant, BusinessAgreementWithParticipantCompletionParticipant, PersistableParticipant

public class LocalCoordinatorCompletionParticipantStub
extends LocalParticipantCompletionParticipantStub
implements BusinessAgreementWithCoordinatorCompletionParticipant, PersistableParticipant

wrapper class allowing an application participant to be registered directly with the local coordinator service. this extends the local participant completion wrapper to also provide the complete method.


Field Summary
 
Fields inherited from class com.arjuna.wst.stub.LocalParticipantCompletionParticipantStub
id, participant
 
Constructor Summary
LocalCoordinatorCompletionParticipantStub()
           
LocalCoordinatorCompletionParticipantStub(BusinessAgreementWithCoordinatorCompletionParticipant participant, java.lang.String id)
           
 
Method Summary
 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.
 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.
 
Methods inherited from class com.arjuna.wst.stub.LocalParticipantCompletionParticipantStub
cancel, close, compensate, error, status, unknown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
cancel, close, compensate, error, status, unknown
 

Constructor Detail

LocalCoordinatorCompletionParticipantStub

public LocalCoordinatorCompletionParticipantStub(BusinessAgreementWithCoordinatorCompletionParticipant participant,
                                                 java.lang.String id)

LocalCoordinatorCompletionParticipantStub

public LocalCoordinatorCompletionParticipantStub()
Method Detail

complete

public void complete()
              throws WrongStateException,
                     SystemException
The coordinator is informing the participant that all work it needs to do within the scope of this business activity has been received.

Specified by:
complete in interface BusinessAgreementWithCoordinatorCompletionParticipant
Throws:
WrongStateException
SystemException

saveState

public boolean saveState(com.arjuna.ats.arjuna.state.OutputObjectState oos)
Save the state of the particpant to the specified input object stream.

Specified by:
saveState in interface PersistableParticipant
Overrides:
saveState in class LocalParticipantCompletionParticipantStub
Parameters:
oos - The output output stream.
Returns:
true if persisted, false otherwise.

restoreState

public boolean restoreState(com.arjuna.ats.arjuna.state.InputObjectState ios)
Restore the state of the particpant from the specified input object stream.

Specified by:
restoreState in interface PersistableParticipant
Overrides:
restoreState in class LocalParticipantCompletionParticipantStub
Parameters:
ios - The Input object stream.
Returns:
true if restored, false otherwise.