/** * 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 CoordinatorCompletionCoordinatorEngine(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) { CoordinatorCompletionCoordinatorProcessor.getProcessor().activateCoordinator(this, id) ; } }
/** * 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 CoordinatorCompletionCoordinatorEngine(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) { CoordinatorCompletionCoordinatorProcessor.getProcessor().activateCoordinator(this, id) ; } }
/** * 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 CoordinatorCompletionCoordinatorEngine(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) { CoordinatorCompletionCoordinatorProcessor.getProcessor().activateCoordinator(this, id) ; } }