org.jboss.txbridge.ba.participant
Class ParticipantCompletionParticipant

java.lang.Object
  extended by org.jboss.txbridge.ba.participant.Participant
      extended by org.jboss.txbridge.ba.participant.ParticipantCompletionParticipant
All Implemented Interfaces:
com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
Direct Known Subclasses:
CoordinatorCompletionParticipant

public class ParticipantCompletionParticipant
extends Participant
implements com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant

Implementation of the Participant that is enlisted for the Business Agreement with Participant Completion protocol.

Version:
0.1
Author:
Maciej P. Machulak (mmachulak@redhat.com)

Field Summary
private static org.apache.log4j.Logger log
           
 
Fields inherited from class org.jboss.txbridge.ba.participant.Participant
completed, serviceId, sim, stm, taskList, txId
 
Constructor Summary
ParticipantCompletionParticipant(java.lang.String txId, java.lang.String serviceId, SingleTransactionManager stm, ManagedDataFactory cdf)
           
 
Method Summary
 void cancel()
           
 void close()
           
 void compensate()
           
 void error()
           
 java.lang.String status()
           
 void unknown()
           
 
Methods inherited from class org.jboss.txbridge.ba.participant.Participant
associateTask, closeTransaction, compensateTask, compensateTransaction, get, getArguments, getReturn, put, putArguments, putReturn, removeTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log
Constructor Detail

ParticipantCompletionParticipant

public ParticipantCompletionParticipant(java.lang.String txId,
                                        java.lang.String serviceId,
                                        SingleTransactionManager stm,
                                        ManagedDataFactory cdf)
Method Detail

close

public void close()
           throws com.arjuna.wst.WrongStateException,
                  com.arjuna.wst.SystemException
Specified by:
close in interface com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
Throws:
com.arjuna.wst.WrongStateException
com.arjuna.wst.SystemException

cancel

public void cancel()
            throws com.arjuna.wst.WrongStateException,
                   com.arjuna.wst.SystemException
Specified by:
cancel in interface com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
Throws:
com.arjuna.wst.WrongStateException
com.arjuna.wst.SystemException

compensate

public void compensate()
                throws com.arjuna.wst.FaultedException,
                       com.arjuna.wst.WrongStateException,
                       com.arjuna.wst.SystemException
Specified by:
compensate in interface com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
Throws:
com.arjuna.wst.FaultedException
com.arjuna.wst.WrongStateException
com.arjuna.wst.SystemException

status

public java.lang.String status()
                        throws com.arjuna.wst.SystemException
Specified by:
status in interface com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
Throws:
com.arjuna.wst.SystemException

unknown

public void unknown()
             throws com.arjuna.wst.SystemException
Specified by:
unknown in interface com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
Throws:
com.arjuna.wst.SystemException

error

public void error()
           throws com.arjuna.wst.SystemException
Specified by:
error in interface com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
Throws:
com.arjuna.wst.SystemException