public class ParticipantCompletionParticipantEngine extends Object implements ParticipantCompletionParticipantInboundEvents
Constructor and Description |
---|
ParticipantCompletionParticipantEngine(String id,
W3CEndpointReference coordinator,
BusinessAgreementWithParticipantCompletionParticipant participant)
Construct the initial engine for the participant.
|
ParticipantCompletionParticipantEngine(String id,
W3CEndpointReference coordinator,
BusinessAgreementWithParticipantCompletionParticipant participant,
State state,
boolean recovered)
Construct the engine for the participant in a specified state.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel(NotificationType cancel,
MAP map,
ArjunaContext arjunaContext)
Handle the cancel event.
|
State |
cannotComplete()
Handle the cannot complete event.
|
void |
close(NotificationType close,
MAP map,
ArjunaContext arjunaContext)
Handle the close event.
|
void |
compensate(NotificationType compensate,
MAP map,
ArjunaContext arjunaContext)
Handle the compensate event.
|
State |
completed()
Handle the completed event.
|
State |
exit()
Handle the exit event.
|
void |
exited(NotificationType exited,
MAP map,
ArjunaContext arjunaContext)
Handle the exited event.
|
State |
fail(QName exceptionIdentifier)
Handle the fail event.
|
void |
failed(NotificationType failed,
MAP map,
ArjunaContext arjunaContext)
Handle the failed event.
|
W3CEndpointReference |
getCoordinator()
Get the coordinator endpoint reference
|
String |
getId()
Get the coordinator id.
|
BusinessAgreementWithParticipantCompletionParticipant |
getParticipant()
Get the associated participant.
|
void |
getStatus(NotificationType getStatus,
MAP map,
ArjunaContext arjunaContext)
Handle the getStatus event.
|
boolean |
isRecovered()
check whether this participant's details have been recovered from the log
|
void |
notCompleted(NotificationType notCompleted,
MAP map,
ArjunaContext arjunaContext)
Handle the not completed event.
|
void |
recovery()
Handle the recovery event.
|
void |
soapFault(SoapFault soapFault,
MAP map,
ArjunaContext arjunaContext)
Handle the soap fault event.
|
void |
status(StatusType status,
MAP map,
ArjunaContext arjunaContext)
Handle the status event.
|
public ParticipantCompletionParticipantEngine(String id, W3CEndpointReference coordinator, BusinessAgreementWithParticipantCompletionParticipant participant)
id
- The participant id.coordinator
- The coordinator endpoint reference.participant
- The participant.public ParticipantCompletionParticipantEngine(String id, W3CEndpointReference coordinator, BusinessAgreementWithParticipantCompletionParticipant participant, 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 falsepublic void cancel(NotificationType cancel, MAP map, ArjunaContext arjunaContext)
cancel
in interface ParticipantCompletionParticipantInboundEvents
cancel
- The cancel notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Canceling
Canceling -> Canceling
Completed -> Completed (resend Completed)
Closing -> Closing
Compensating -> Compensating
Failing-Active -> Failing-Active (resend Fail)
Failing-Canceling -> Failing-Canceling (resend Fail)
Failing-Compensating -> Failing-Compensating
NotCompleting -> NotCompleting (resend CannotComplete)
Exiting -> Exiting (resend Exit)
Ended -> Ended (resend Cancelled)public void close(NotificationType close, MAP map, ArjunaContext arjunaContext)
close
in interface ParticipantCompletionParticipantInboundEvents
close
- The close notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Canceling (invalid state)
Completed -> Closing
Closing -> Closing
Compensating -> Compensating (invalid state)
Failing-Active -> Failing-Active (invalid state)
Failing-Canceling -> Failing-Canceling (invalid state)
Failing-Compensating -> Failing-Compensating (invalid state)
NotCompleting -> NotCompleting (invalid state)
Exiting -> Exiting (invalid state)
Ended -> Ended (send Closed)public void compensate(NotificationType compensate, MAP map, ArjunaContext arjunaContext)
compensate
in interface ParticipantCompletionParticipantInboundEvents
compensate
- The compensate notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Canceling (invalid state)
Completed -> Compensating
Closing -> Closing (invalid state)
Compensating -> Compensating
Failing-Active -> Failing-Active (invalid state)
Failing-Canceling -> Failing-Canceling (invalid state)
Failing-Compensating -> Failing-Compensating (resend Fail)
NotCompleting -> NotCompleting (invalid state)
Exiting -> Exiting (invalid state)
Ended -> Ended (send Compensated)public void exited(NotificationType exited, MAP map, ArjunaContext arjunaContext)
exited
in interface ParticipantCompletionParticipantInboundEvents
exited
- The exited notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Canceling (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-Compensating -> Failing-Compensating (invalid state)
NotCompleting -> NotCompleting (invalid state)
Exiting -> Ended
Ended -> Endedpublic void failed(NotificationType failed, MAP map, ArjunaContext arjunaContext)
failed
in interface ParticipantCompletionParticipantInboundEvents
failed
- The failed notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Canceling (invalid state)
Completed -> Completed (invalid state)
Closing -> Closing (invalid state)
Compensating -> Compensating (invalid state)
Failing-Active -> Ended
Failing-Canceling -> Ended
Failing-Compensating -> Ended
NotCompleting -> NotCompleting (invalid state)
Exiting -> Exiting (invalid state)
Ended -> Endedpublic void notCompleted(NotificationType notCompleted, MAP map, ArjunaContext arjunaContext)
notCompleted
in interface ParticipantCompletionParticipantInboundEvents
notCompleted
- The notCompleted notification.map
- The addressing context.arjunaContext
- The arjuna context.
Active -> Active (invalid state)
Canceling -> Canceling (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-Compensating -> Failing-Compensating (invalid state)
NotCompleting -> Ended
Exiting -> Exiting (invalid state)
Ended -> Endedpublic void getStatus(NotificationType getStatus, MAP map, ArjunaContext arjunaContext)
getStatus
in interface ParticipantCompletionParticipantInboundEvents
getStatus
- The getStatus notification.map
- The addressing context.arjunaContext
- The arjuna context.public void status(StatusType status, MAP map, ArjunaContext arjunaContext)
status
in interface ParticipantCompletionParticipantInboundEvents
status
- The status type.map
- The addressing context.arjunaContext
- The arjuna context.public void recovery()
public void soapFault(SoapFault soapFault, MAP map, ArjunaContext arjunaContext)
soapFault
in interface ParticipantCompletionParticipantInboundEvents
soapFault
- The soap fault.map
- The addressing context.arjunaContext
- The arjuna context.public State completed()
public State exit()
public State fail(QName exceptionIdentifier)
public State cannotComplete()
public String getId()
public W3CEndpointReference getCoordinator()
public BusinessAgreementWithParticipantCompletionParticipant getParticipant()
public boolean isRecovered()
Copyright © 2017 JBoss by Red Hat. All rights reserved.