|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.wst.messaging.engines.ParticipantCompletionCoordinatorEngine
The participant completion coordinator state engine
Constructor Summary | |
ParticipantCompletionCoordinatorEngine(java.lang.String id,
com.arjuna.webservices.wsaddr.EndpointReferenceType participant)
Construct the initial engine for the coordinator. |
|
ParticipantCompletionCoordinatorEngine(java.lang.String id,
com.arjuna.webservices.wsaddr.EndpointReferenceType participant,
com.arjuna.webservices.wsba.State state)
Construct the engine for the coordinator in a specified state. |
Method Summary | |
com.arjuna.webservices.wsba.State |
cancel()
Handle the cancel event. |
void |
cancelled(com.arjuna.webservices.wsba.NotificationType cancelled,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the cancelled event. |
com.arjuna.webservices.wsba.State |
close()
Handle the close event. |
void |
closed(com.arjuna.webservices.wsba.NotificationType closed,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the closed event. |
com.arjuna.webservices.wsba.State |
compensate()
Handle the compensate event. |
void |
compensated(com.arjuna.webservices.wsba.NotificationType compensated,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the compensated event. |
void |
completed(com.arjuna.webservices.wsba.NotificationType completed,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the completed event. |
void |
exit(com.arjuna.webservices.wsba.NotificationType exit,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the exit event. |
void |
fault(com.arjuna.webservices.wsba.ExceptionType fault,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the fault event. |
BAParticipantManager |
getCoordinator()
Get the associated coordinator. |
java.lang.String |
getId()
Get the coordinator id. |
com.arjuna.webservices.wsaddr.EndpointReferenceType |
getParticipant()
Get the participant endpoint reference |
com.arjuna.webservices.wsba.State |
getStatus()
Handle the get status event. |
void |
getStatus(com.arjuna.webservices.wsba.NotificationType getStatus,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the getStatus event. |
void |
setCoordinator(BAParticipantManager coordinator)
Set the coordinator and register |
void |
soapFault(com.arjuna.webservices.SoapFault soapFault,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the soap fault event. |
void |
status(com.arjuna.webservices.wsba.StatusType status,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.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 ParticipantCompletionCoordinatorEngine(java.lang.String id, com.arjuna.webservices.wsaddr.EndpointReferenceType participant)
id
- The coordinator id.participant
- The participant endpoint reference.public ParticipantCompletionCoordinatorEngine(java.lang.String id, com.arjuna.webservices.wsaddr.EndpointReferenceType participant, com.arjuna.webservices.wsba.State state)
id
- The coordinator id.participant
- The participant endpoint reference.state
- The initial state.Method Detail |
public void setCoordinator(BAParticipantManager coordinator)
coordinator
- public void cancelled(com.arjuna.webservices.wsba.NotificationType cancelled, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
cancelled
in interface com.arjuna.webservices.wsba.ParticipantCompletionCoordinatorInboundEvents
cancelled
- The cancelled notification.addressingContext
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Ended
Completed -> Completed (invalid state)
Closing -> Closing (invalid state)
Compensating -> Compensating (invalid state)
Faulting -> Faulting (invalid state)
Faulting-Active -> Faulting (invalid state)
Faulting-Compensating ->Faulting (invalid state)
Exiting -> Exiting (invalid state)
Ended -> Endedpublic void closed(com.arjuna.webservices.wsba.NotificationType closed, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
closed
in interface com.arjuna.webservices.wsba.ParticipantCompletionCoordinatorInboundEvents
closed
- The closed notification.addressingContext
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Canceling (invalid state)
Completed -> Completed (invalid state)
Closing -> Ended
Compensating -> Compensating (invalid state)
Faulting -> Faulting (invalid state)
Faulting-Active -> Faulting (invalid state)
Faulting-Compensating -> Faulting (invalid state)
Exiting -> Exiting (invalid state)
Ended -> Endedpublic void compensated(com.arjuna.webservices.wsba.NotificationType compensated, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
compensated
in interface com.arjuna.webservices.wsba.ParticipantCompletionCoordinatorInboundEvents
compensated
- The compensated notification.addressingContext
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Canceling (invalid state)
Completed -> Completed (invalid state)
Closing -> Closing (invalid state)
Compensating -> Ended
Faulting -> Faulting (invalid state)
Faulting-Active -> Faulting (invalid state)
Faulting-Compensating -> Faulting (invalid state)
Exiting -> Exiting (invalid state)
Ended -> Endedpublic void completed(com.arjuna.webservices.wsba.NotificationType completed, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
completed
in interface com.arjuna.webservices.wsba.ParticipantCompletionCoordinatorInboundEvents
completed
- The completed notification.addressingContext
- The addressing context.arjunaContext
- The arjuna context.
Active -> Completed
Canceling -> Completed
Completed -> Completed
Closing -> Closing (resend close)
Compensating -> Compensating (resend compensate)
Faulting -> Faulting (invalid state)
Faulting-Active -> Faulting (invalid state)
Faulting-Compensating -> Faulting
Exiting -> Exiting (invalid state)
Ended -> Endedpublic void exit(com.arjuna.webservices.wsba.NotificationType exit, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
exit
in interface com.arjuna.webservices.wsba.ParticipantCompletionCoordinatorInboundEvents
exit
- The exit notification.addressingContext
- The addressing context.arjunaContext
- The arjuna context.
Active -> Exiting
Canceling -> Exiting
Completed -> Completed
Closing -> Closing (invalid state)
Compensating -> Compensating (invalid state)
Faulting -> Faulting (invalid state)
Faulting-Active -> Faulting (invalid state)
Faulting-Compensating -> Faulting (invalid state)
Exiting -> Exiting
Ended -> Ended (resend Exited)public void fault(com.arjuna.webservices.wsba.ExceptionType fault, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
fault
in interface com.arjuna.webservices.wsba.ParticipantCompletionCoordinatorInboundEvents
fault
- The fault exception.addressingContext
- The addressing context.arjunaContext
- The arjuna context.
Active -> Faulting-Active
Canceling -> Faulting-Active
Completed -> Completed (invalid state)
Closing -> Closing (invalid state)
Compensating -> Faulting-Compensating
Faulting -> Faulting
Faulting-Active -> Faulting
Faulting-Compensating -> Faulting
Exiting -> Exiting (invalid state)
Ended -> Ended (resend Faulted)public void getStatus(com.arjuna.webservices.wsba.NotificationType getStatus, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
getStatus
in interface com.arjuna.webservices.wsba.ParticipantCompletionCoordinatorInboundEvents
getStatus
- The getStatus notification.addressingContext
- The addressing context.arjunaContext
- The arjuna context.public void status(com.arjuna.webservices.wsba.StatusType status, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
status
in interface com.arjuna.webservices.wsba.ParticipantCompletionCoordinatorInboundEvents
status
- The status.addressingContext
- The addressing context.arjunaContext
- The arjuna context.public com.arjuna.webservices.wsba.State getStatus()
public com.arjuna.webservices.wsba.State cancel()
public com.arjuna.webservices.wsba.State compensate()
public com.arjuna.webservices.wsba.State close()
public void soapFault(com.arjuna.webservices.SoapFault soapFault, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
soapFault
in interface com.arjuna.webservices.wsba.ParticipantCompletionCoordinatorInboundEvents
soapFault
- The soap fault.addressingContext
- The addressing context.arjunaContext
- The arjuna context.public java.lang.String getId()
public com.arjuna.webservices.wsaddr.EndpointReferenceType getParticipant()
public BAParticipantManager getCoordinator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |