|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.wst.messaging.engines.CoordinatorEngine
The coordinator state engine
Constructor Summary | |
CoordinatorEngine(java.lang.String id,
boolean durable,
com.arjuna.webservices.wsaddr.EndpointReferenceType participant)
Construct the initial engine for the coordinator. |
|
CoordinatorEngine(java.lang.String id,
boolean durable,
com.arjuna.webservices.wsaddr.EndpointReferenceType participant,
com.arjuna.webservices.wsat.State state)
Construct the engine for the coordinator in a specified state. |
Method Summary | |
void |
aborted(com.arjuna.webservices.wsat.NotificationType aborted,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the aborted event. |
com.arjuna.webservices.wsat.State |
commit()
Handle the commit event. |
void |
committed(com.arjuna.webservices.wsat.NotificationType committed,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the committed event. |
java.lang.String |
getId()
Get the coordinator id. |
com.arjuna.webservices.wsaddr.EndpointReferenceType |
getParticipant()
Get the participant endpoint reference |
boolean |
isDurable()
Is the participant durable? |
boolean |
isReadOnly()
Was this a read only response? |
com.arjuna.webservices.wsat.State |
prepare()
Handle the prepare event. |
void |
prepared(com.arjuna.webservices.wsat.NotificationType prepared,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the prepared event. |
void |
readOnly(com.arjuna.webservices.wsat.NotificationType readOnly,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the readOnly event. |
void |
replay(com.arjuna.webservices.wsat.NotificationType aborted,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the replay event. |
com.arjuna.webservices.wsat.State |
rollback()
Handle the rollback event. |
void |
soapFault(com.arjuna.webservices.SoapFault soapFault,
com.arjuna.webservices.wsaddr.AddressingContext addressingContext,
com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
Handle the soap fault event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CoordinatorEngine(java.lang.String id, boolean durable, com.arjuna.webservices.wsaddr.EndpointReferenceType participant)
id
- The coordinator id.durable
- true if the participant is durable, false if volatile.participant
- The participant endpoint reference.public CoordinatorEngine(java.lang.String id, boolean durable, com.arjuna.webservices.wsaddr.EndpointReferenceType participant, com.arjuna.webservices.wsat.State state)
id
- The coordinator id.durable
- true if the participant is durable, false if volatile.participant
- The participant endpoint reference.state
- The initial state.Method Detail |
public void aborted(com.arjuna.webservices.wsat.NotificationType aborted, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
aborted
in interface com.arjuna.webservices.wsat.CoordinatorInboundEvents
aborted
- The aborted notification.addressingContext
- The addressing context.arjunaContext
- The arjuna context.
None -> None (ignore)
Active -> Aborting (forget)
Preparing -> Aborting (forget)
PreparedSuccess -> PreparedSuccess (invalid state)
Committing -> Committing (invalid state)
Aborting -> Aborting (forget)public void committed(com.arjuna.webservices.wsat.NotificationType committed, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
committed
in interface com.arjuna.webservices.wsat.CoordinatorInboundEvents
committed
- The committed notification.addressingContext
- The addressing context.arjunaContext
- The arjuna context.
None -> None (ignore)
Active -> Aborting (invalid state)
Preparing -> Aborting (invalid state)
PreparedSuccess -> PreparedSuccess (invalid state)
Committing -> Committing (forget)
Aborting -> Aborting (invalid state)public void prepared(com.arjuna.webservices.wsat.NotificationType prepared, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
prepared
in interface com.arjuna.webservices.wsat.CoordinatorInboundEvents
prepared
- The prepared notification.addressingContext
- The addressing context.arjunaContext
- The arjuna context.
None -> Durable: (send rollback), Volatile: Invalid state: none
Active -> Aborting (invalid state)
Preparing -> PreparedSuccess (Record Vote)
PreparedSuccess -> PreparedSuccess (ignore)
Committing -> Committing (resend Commit)
Aborting -> Aborting (resend Rollback and forget)public void readOnly(com.arjuna.webservices.wsat.NotificationType readOnly, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
readOnly
in interface com.arjuna.webservices.wsat.CoordinatorInboundEvents
readOnly
- The readOnly notification.addressingContext
- The addressing context.arjunaContext
- The arjuna context.
None -> None (ignore)
Active -> Active (forget)
Preparing -> Preparing (forget)
PreparedSuccess -> PreparedSuccess (invalid state)
Committing -> Committing (invalid state)
Aborting -> Aborting (forget)public void replay(com.arjuna.webservices.wsat.NotificationType aborted, com.arjuna.webservices.wsaddr.AddressingContext addressingContext, com.arjuna.webservices.wsarj.ArjunaContext arjunaContext)
replay
in interface com.arjuna.webservices.wsat.CoordinatorInboundEvents
addressingContext
- The addressing context.arjunaContext
- The arjuna context.
None -> Durable: (send rollback), Volatile: Invalid state: none
Active -> Aborting (send rollback)
Preparing -> Aborting (send rollback)
PreparedSuccess -> PreparedSuccess (ignore)
Committing -> Committing (send commit)
Aborting -> Aborting (send rollback)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.wsat.CoordinatorInboundEvents
soapFault
- The soap fault.addressingContext
- The addressing context.arjunaContext
- The arjuna context.public com.arjuna.webservices.wsat.State prepare()
public com.arjuna.webservices.wsat.State commit()
public com.arjuna.webservices.wsat.State rollback()
public java.lang.String getId()
public com.arjuna.webservices.wsaddr.EndpointReferenceType getParticipant()
public boolean isDurable()
public boolean isReadOnly()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |