public void executeTask() { CoordinatorProcessor.getProcessor().readOnly(readOnly, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().soapFault(soapFault, inboundMap, arjunaContext); ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().prepared(prepared, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().aborted(aborted, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().prepared(prepared, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().aborted(aborted, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().committed(committed, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().soapFault(soapFault, inboundMap, arjunaContext); ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().prepared(prepared, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().committed(committed, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().soapFault(soapFault, inboundMap, arjunaContext); ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().aborted(aborted, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().committed(committed, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().readOnly(readOnly, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { CoordinatorProcessor.getProcessor().readOnly(readOnly, inboundMap, arjunaContext) ; } }) ;
/** * Forget the current coordinator. */ private void forget() { // first, change state to null to indicate that the participant has completed. changeState(null) ; // participants which have not been recovered from the log can be deactivated now. // participants which have been recovered are left for the recovery thread to deactivate. // this is because the recovery thread may have timed out waiting for a response to // the commit message and gone on to complete its scan and suspend. the next scan // will detect this activated participant and note that it has completed. if a crash // happens in between the recovery thread can safely recreate and reactivate the // participant and resend the commit since the commit/committed exchange is idempotent. if (!recovered) { CoordinatorProcessor.getProcessor().deactivateCoordinator(this) ; } }
/** * Forget the current coordinator. */ private void forget() { // first, change state to null to indicate that the participant has completed. changeState(null) ; // participants which have not been recovered from the log can be deactivated now. // participants which have been recovered are left for the recovery thread to deactivate. // this is because the recovery thread may have timed out waiting for a response to // the commit message and gone on to complete its scan and suspend. the next scan // will detect this activated participant and note that it has completed. if a crash // happens in between the recovery thread can safely recreate and reactivate the // participant and resend the commit since the commit/committed exchange is idempotent. if (!recovered) { CoordinatorProcessor.getProcessor().deactivateCoordinator(this) ; } }
/** * Forget the current coordinator. */ private void forget() { // first, change state to null to indicate that the participant has completed. changeState(null) ; // participants which have not been recovered from the log can be deactivated now. // participants which have been recovered are left for the recovery thread to deactivate. // this is because the recovery thread may have timed out waiting for a response to // the commit message and gone on to complete its scan and suspend. the next scan // will detect this activated participant and note that it has completed. if a crash // happens in between the recovery thread can safely recreate and reactivate the // participant and resend the commit since the commit/committed exchange is idempotent. if (!recovered) { CoordinatorProcessor.getProcessor().deactivateCoordinator(this) ; } }
/** * Construct the engine for the coordinator in a specified state. * @param id The coordinator id. * @param durable true if the participant is durable, false if volatile. * @param participant The participant endpoint reference. * @param state The initial state. */ public CoordinatorEngine(final String id, final boolean durable, final W3CEndpointReference participant, boolean recovered, final State state) { this.id = id ; this.instanceIdentifier = new InstanceIdentifier(id) ; this.durable = durable ; this.participant = participant ; this.state = state ; this.recovered = recovered; // unrecovered participants are always activated // we only need to reactivate recovered participants which were successfully prepared // any others will only have been saved because of a heuristic outcome e.g. a comms // timeout at prepare will write a heuristic record for an ABORTED TX including a // participant in state PREPARING. we can safely drop it since we implement presumed abort. if (!recovered || state == State.STATE_PREPARED_SUCCESS) { CoordinatorProcessor.getProcessor().activateCoordinator(this, id) ; } }
/** * Construct the engine for the coordinator in a specified state. * @param id The coordinator id. * @param durable true if the participant is durable, false if volatile. * @param participant The participant endpoint reference. * @param state The initial state. */ public CoordinatorEngine(final String id, final boolean durable, final W3CEndpointReference participant, boolean recovered, final State state) { this.id = id ; this.instanceIdentifier = new InstanceIdentifier(id) ; this.durable = durable ; this.participant = participant ; this.state = state ; this.recovered = recovered; // unrecovered participants are always activated // we only need to reactivate recovered participants which were successfully prepared // any others will only have been saved because of a heuristic outcome e.g. a comms // timeout at prepare will write a heuristic record for an ABORTED TX including a // participant in state PREPARING. we can safely drop it since we implement presumed abort. if (!recovered || state == State.STATE_PREPARED_SUCCESS) { CoordinatorProcessor.getProcessor().activateCoordinator(this, id) ; } }