public class ParticipantEngine extends Object implements com.arjuna.webservices11.wsat.ParticipantInboundEvents
Constructor and Description |
---|
ParticipantEngine(Participant participant,
String id,
com.arjuna.webservices11.wsat.State state,
W3CEndpointReference coordinator,
boolean recovered)
Construct the engine for the participant in a specified state.
|
ParticipantEngine(Participant participant,
String id,
W3CEndpointReference coordinator)
Construct the initial engine for the participant.
|
Modifier and Type | Method and Description |
---|---|
void |
commit(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification commit,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the commit event.
|
void |
earlyReadonly()
Handle the early readonly event.
|
void |
earlyRollback()
Handle the early rollback event.
|
W3CEndpointReference |
getCoordinator()
Return the endpoint reference for the coordinator associated with this participant.
|
String |
getId()
Get the coordinator id.
|
boolean |
isPersisted()
Is the participant persisted to disk?
|
boolean |
isRecovered()
Is the participant recovered?
|
void |
prepare(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification prepare,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the prepare event.
|
void |
recovery()
Handle the recovery event.
|
void |
rollback(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification rollback,
org.jboss.ws.api.addressing.MAP map,
com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
Handle the rollback 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.
|
public ParticipantEngine(Participant participant, String id, W3CEndpointReference coordinator)
participant
- The participant.id
- The participant id.coordinator
- The coordinator endpoint reference.public ParticipantEngine(Participant participant, String id, com.arjuna.webservices11.wsat.State state, W3CEndpointReference coordinator, boolean recovered)
participant
- The participant.id
- The participant id.state
- The initial state.coordinator
- The coordinator endpoint reference.public void commit(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification commit, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
commit
in interface com.arjuna.webservices11.wsat.ParticipantInboundEvents
commit
- The commit notification.map
- The addressing context.arjunaContext
- The arjuna context.
None -> None (send committed)
Active -> Aborting (do nothing)
Preparing -> Aborting (do nothing)
PreparedSuccess -> Committing (initiate commit)
Committing -> Committing (do nothing)
Aborting -> Aborting (do nothing)public void prepare(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification prepare, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
prepare
in interface com.arjuna.webservices11.wsat.ParticipantInboundEvents
prepare
- The prepare notification.map
- The addressing context.arjunaContext
- The arjuna context.
None -> None (send aborted)
Active -> Preparing (execute prepare)
Preparing -> Preparing (do nothing)
PreparedSuccess -> PreparedSuccess (resend prepared)
Committing -> Committing (ignore)
Aborting -> Aborting (send aborted and forget)public void rollback(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification rollback, org.jboss.ws.api.addressing.MAP map, com.arjuna.webservices11.wsarj.ArjunaContext arjunaContext)
rollback
in interface com.arjuna.webservices11.wsat.ParticipantInboundEvents
rollback
- The rollback notification.map
- The addressing context.arjunaContext
- The arjuna context.
None -> None (send aborted)
Active -> Aborting (execute rollback, send aborted and forget)
Preparing -> Aborting (execute rollback, send aborted and forget)
PreparedSuccess -> Aborting (execute rollback, send aborted and forget)
Committing -> Committing (ignore)
Aborting -> Aborting (send aborted and forget)public void earlyRollback()
public void earlyReadonly()
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.wsat.ParticipantInboundEvents
soapFault
- The soap fault.map
- The addressing context.arjunaContext
- The arjuna context.public String getId()
public W3CEndpointReference getCoordinator()
com.arjuna.webservices11.wsat.ParticipantInboundEvents
getCoordinator
in interface com.arjuna.webservices11.wsat.ParticipantInboundEvents
public boolean isPersisted()
public boolean isRecovered()
Copyright © 2013. All Rights Reserved.