|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.arjuna.wst11.messaging.engines.CoordinatorCompletionParticipantEngine
public class CoordinatorCompletionParticipantEngine
The coordinator completion participant state engine
Constructor Summary | |
---|---|
CoordinatorCompletionParticipantEngine(String id,
W3CEndpointReference coordinator,
BusinessAgreementWithCoordinatorCompletionParticipant participant)
Construct the initial engine for the participant. |
|
CoordinatorCompletionParticipantEngine(String id,
W3CEndpointReference coordinator,
BusinessAgreementWithCoordinatorCompletionParticipant participant,
com.arjuna.webservices11.wsba.State state,
boolean recovered)
Construct the engine for the participant in a specified state. |
Method Summary | |
---|---|
void |
cancel(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType cancel,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the cancel event. |
com.arjuna.webservices11.wsba.State |
cannotComplete()
Handle the cannot complete event. |
void |
close(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType close,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the close event. |
void |
compensate(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType compensate,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the compensate event. |
void |
complete(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType complete,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the complete event. |
com.arjuna.webservices11.wsba.State |
completed()
Handle the completed event. |
com.arjuna.webservices11.wsba.State |
exit()
Handle the exit event. |
void |
exited(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType exited,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the exited event. |
com.arjuna.webservices11.wsba.State |
fail(QName exceptionIdentifier)
Handle the fail event. |
void |
failed(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType failed,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the failed event. |
W3CEndpointReference |
getCoordinator()
Get the coordinator endpoint reference |
String |
getId()
Get the coordinator id. |
BusinessAgreementWithCoordinatorCompletionParticipant |
getParticipant()
Get the associated participant. |
void |
getStatus(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType getStatus,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the getStatus event. |
boolean |
isRecovered()
check whether this participant's details have been recovered from the log |
void |
notCompleted(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType notCompleted,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the not completed event. |
void |
recovery()
Handle the recovery event. |
void |
soapFault(com.arjuna.webservices.SoapFault soapFault,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the soap fault event. |
void |
status(org.oasis_open.docs.ws_tx.wsba._2006._06.StatusType status,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the status event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoordinatorCompletionParticipantEngine(String id, W3CEndpointReference coordinator, BusinessAgreementWithCoordinatorCompletionParticipant participant)
id
- The participant id.coordinator
- The coordinator endpoint reference.participant
- The participant.public CoordinatorCompletionParticipantEngine(String id, W3CEndpointReference coordinator, BusinessAgreementWithCoordinatorCompletionParticipant participant, com.arjuna.webservices11.wsba.State state, boolean recovered)
id
- The participant id.coordinator
- The coordinator endpoint reference.participant
- The participant.state
- The initial state.recovered
- true if the engine has been recovered from th elog otherwise falseMethod Detail |
---|
public void cancel(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType cancel, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
cancel
in interface com.arjuna.webservices11.wsba.CoordinatorCompletionParticipantInboundEvents
cancel
- The cancel notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Canceling
Canceling -> Canceling
Completing -> Canceling
Completed -> Completed (resend Completed)
Closing -> Closing
Compensating -> Compensating
Failing-Active -> Failing-Active (resend Fail)
Failing-Canceling -> Failing-Canceling (resend Fail)
Failing-Completing -> Failing-Completing (resend Fail)
Failing-Compensating -> Failing-Compensating
NotCompleting -> NotCompleting (resend CannotComplete)
Exiting -> Exiting (resend Exit)
Ended -> Ended (send Canceled)public void close(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType close, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
close
in interface com.arjuna.webservices11.wsba.CoordinatorCompletionParticipantInboundEvents
close
- The close notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Canceling (invalid state)
Completing -> Completing (invalid state)
Completed -> Closing
Closing -> Closing
Compensating -> Compensating (invalid state)
Failing-Active -> Failing-Active (invalid state)
Failing-Canceling -> Failing-Canceling (invalid state)
Failing-Completing -> Failing-Completing (invalid state)
Failing-Compensating -> Failing-Compensating (invalid state)
NotCompleting -> NotCompleting (invalid state)
Exiting -> Exiting (invalid state)
Ended -> Ended (send Closed)public void compensate(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType compensate, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
compensate
in interface com.arjuna.webservices11.wsba.CoordinatorCompletionParticipantInboundEvents
compensate
- The compensate notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Canceling (invalid state)
Completing -> Completing (invalid state)
Completed -> Compensating
Closing -> Closing (invalid state)
Compensating -> Compensating
Failing-Active -> Failing-Active (invalid state)
Failing-Canceling -> Failing-Canceling (invalid state)
Failing-Completing -> Failing-Completing (invalid state)
Failing-Compensating -> Failing-Compensating (resend Fail)
NotCompleting -> NotCompleting (invalid state)
Exiting -> Exiting (invalid state)
Ended -> Ended (send Compensated)public void complete(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType complete, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
complete
in interface com.arjuna.webservices11.wsba.CoordinatorCompletionParticipantInboundEvents
complete
- The complete notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Completing
Canceling -> Canceling
Completing -> Completing
Completed -> Completed (resend Completed)
Closing -> Closing
Compensating -> Compensating
Failing-Active -> Failing-Active (resend Fail)
Failing-Canceling -> Failing-Canceling (resend Fail)
Failing-Completing -> Failing-Completing (resend Fail)
Failing-Compensating -> Failing-Compensating
NotCompleting -> NotCompleting (resend CannotComplete)
Exiting -> Exiting (resend Exit)
Ended -> Ended (send Fail)public void exited(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType exited, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
exited
in interface com.arjuna.webservices11.wsba.CoordinatorCompletionParticipantInboundEvents
exited
- The exited notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Canceling (invalid state)
Completing -> Completing (invalid state)
Completed -> Completed (invalid state)
Closing -> Closing (invalid state)
Compensating -> Compensating (invalid state)
Failing-Active -> Failing-Active (invalid state)
Failing-Canceling -> Failing-Canceling (invalid state)
Failing-Completing -> Failing-Completing (invalid state)
Failing-Compensating -> Failing-Compensating (invalid state)
NotCompleting -> NotCompleting (invalid state)
Exiting -> Ended
Ended -> Endedpublic void failed(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType failed, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
failed
in interface com.arjuna.webservices11.wsba.CoordinatorCompletionParticipantInboundEvents
failed
- The failed notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Canceling (invalid state)
Completing -> Completing (invalid state)
Completed -> Completed (invalid state)
Closing -> Closing (invalid state)
Compensating -> Compensating (invalid state)
Failing-Active -> Ended
Failing-Canceling -> Ended
Failing-Completing -> Ended
Failing-Compensating -> Ended
NotCompleting -> NotCompleting (invalid state)
Exiting -> Exiting (invalid state)
Ended -> Endedpublic void notCompleted(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType notCompleted, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
notCompleted
in interface com.arjuna.webservices11.wsba.CoordinatorCompletionParticipantInboundEvents
notCompleted
- The not completed notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Canceling (invalid state)
Completing -> Completing (invalid state)
Completed -> Completed (invalid state)
Closing -> Closing (invalid state)
Compensating -> Compensating (invalid state)
Failing-Active -> Failing-Active (invalid state)
Failing-Canceling -> Failing-Canceling (invalid state)
Failing-Completing -> Failing-Completing (invalid state)
Failing-Compensating -> Failing-Compensating (invalid state)
NotCompleting -> Ended
Exiting -> Exiting (invalid state)
Ended -> Endedpublic void getStatus(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType getStatus, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
getStatus
in interface com.arjuna.webservices11.wsba.CoordinatorCompletionParticipantInboundEvents
getStatus
- The getStatus notification.map
- The addressing context.arjunaContext
- The arjuna context.public void status(org.oasis_open.docs.ws_tx.wsba._2006._06.StatusType status, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
status
in interface com.arjuna.webservices11.wsba.CoordinatorCompletionParticipantInboundEvents
status
- The status type.map
- The addressing context.arjunaContext
- The arjuna context.public void recovery()
public void soapFault(com.arjuna.webservices.SoapFault soapFault, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
soapFault
in interface com.arjuna.webservices11.wsba.CoordinatorCompletionParticipantInboundEvents
soapFault
- The soap fault.map
- The addressing context.arjunaContext
- The arjuna context.public com.arjuna.webservices11.wsba.State completed()
public com.arjuna.webservices11.wsba.State exit()
public com.arjuna.webservices11.wsba.State fail(QName exceptionIdentifier)
public com.arjuna.webservices11.wsba.State cannotComplete()
public String getId()
public W3CEndpointReference getCoordinator()
public BusinessAgreementWithCoordinatorCompletionParticipant getParticipant()
public boolean isRecovered()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |