public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().cancelled(cancelled, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().cannotComplete(cannotComplete, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().closed(closed, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().compensated(compensated, inboundMap, arjunaContext) ; } }) ;
/** * End the current coordinator. */ private void ended() { changeState(State.STATE_ENDED) ; // 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 // a close/cancel 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) { ParticipantCompletionCoordinatorProcessor.getProcessor().deactivateCoordinator(this) ; } }
public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().fail(fail, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().completed(completed, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().exit(exit, inboundMap, arjunaContext) ; } }) ;
/** * Construct the engine for the coordinator in a specified state and register it. * @param id The coordinator id. * @param participant The participant endpoint reference. * @param state The initial state. */ public ParticipantCompletionCoordinatorEngine(final String id, final W3CEndpointReference participant, final State state, final boolean recovered) { this.id = id ; this.instanceIdentifier = new InstanceIdentifier(id) ; this.participant = participant ; this.state = state ; this.failureState = null; this.recovered = recovered; // unrecovered participants are always activated // we only need to reactivate recovered participants which were successfully COMPLETED or which began // CLOSING. any others will only have been saved because of a heuristic outcome. we can safely drop // them since we implement presumed abort. if (!recovered || state == State.STATE_COMPLETED || state == State.STATE_CLOSING) { ParticipantCompletionCoordinatorProcessor.getProcessor().activateCoordinator(this, id) ; } }
participant = (ParticipantCompletionCoordinatorEngine) ParticipantCompletionCoordinatorProcessor.getProcessor().getCoordinator(id); if (participant == null) { participant = new ParticipantCompletionCoordinatorEngine(id, endpointReference, state, true);
/** * End the current coordinator. */ private void ended() { changeState(State.STATE_ENDED) ; // 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 // a close/cancel 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) { ParticipantCompletionCoordinatorProcessor.getProcessor().deactivateCoordinator(this) ; } }
public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().compensated(compensated, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().fail(fail, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().completed(completed, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().exit(exit, inboundMap, arjunaContext) ; } }) ;
/** * Construct the engine for the coordinator in a specified state and register it. * @param id The coordinator id. * @param participant The participant endpoint reference. * @param state The initial state. */ public ParticipantCompletionCoordinatorEngine(final String id, final W3CEndpointReference participant, final State state, final boolean recovered) { this.id = id ; this.instanceIdentifier = new InstanceIdentifier(id) ; this.participant = participant ; this.state = state ; this.failureState = null; this.recovered = recovered; // unrecovered participants are always activated // we only need to reactivate recovered participants which were successfully COMPLETED or which began // CLOSING. any others will only have been saved because of a heuristic outcome. we can safely drop // them since we implement presumed abort. if (!recovered || state == State.STATE_COMPLETED || state == State.STATE_CLOSING) { ParticipantCompletionCoordinatorProcessor.getProcessor().activateCoordinator(this, id) ; } }
participant = (ParticipantCompletionCoordinatorEngine) ParticipantCompletionCoordinatorProcessor.getProcessor().getCoordinator(id); if (participant == null) { participant = new ParticipantCompletionCoordinatorEngine(id, endpointReference, state, true);
/** * End the current coordinator. */ private void ended() { changeState(State.STATE_ENDED) ; // 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 // a close/cancel 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) { ParticipantCompletionCoordinatorProcessor.getProcessor().deactivateCoordinator(this) ; } }
public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().cancelled(cancelled, inboundMap, arjunaContext) ; } }) ;
public void executeTask() { ParticipantCompletionCoordinatorProcessor.getProcessor().compensated(compensated, inboundMap, arjunaContext) ; } }) ;