/** * Notification that the process was started. */ void processStarted() { finishTransition(InternalState.PROCESS_STARTING, InternalState.PROCESS_STARTED); }
/** * Notification that the process got removed from the process controller. */ void processRemoved() { finishTransition(InternalState.PROCESS_REMOVING, InternalState.STOPPED); unstable = false; }
/** * Notification that the process was added */ void processAdded() { finishTransition(InternalState.PROCESS_ADDING, InternalState.PROCESS_ADDED); }
/** * Notification that the process got removed from the process controller. */ void processRemoved() { finishTransition(InternalState.PROCESS_REMOVING, InternalState.STOPPED); unstable = false; }
/** * Notification that the process got removed from the process controller. */ protected void processRemoved() { finishTransition(InternalState.PROCESS_REMOVING, InternalState.STOPPED); }
/** * Notification that the process was started. */ void processStarted() { finishTransition(InternalState.PROCESS_STARTING, InternalState.PROCESS_STARTED); }
/** * Notification that the process was added */ protected void processAdded() { finishTransition(InternalState.PROCESS_ADDING, InternalState.PROCESS_ADDED); }
/** * Notification that the process was started. */ protected void processStarted() { finishTransition(InternalState.PROCESS_STARTING, InternalState.PROCESS_STARTED); }
/** * Notification that the process was added */ void processAdded() { finishTransition(InternalState.PROCESS_ADDING, InternalState.PROCESS_ADDED); }
/** * Notification that the server process finished. */ protected synchronized void processFinished() { final InternalState required = this.requiredState; final InternalState state = this.internalState; // If the server was not stopped if(required == InternalState.STOPPED && state == InternalState.PROCESS_STOPPING) { finishTransition(InternalState.PROCESS_STOPPING, InternalState.PROCESS_STOPPED); } else { this.requiredState = InternalState.FAILED; internalSetState(null, state, InternalState.PROCESS_STOPPED); } }
/** * Notification that the server process finished. */ synchronized void processFinished() { final InternalState required = this.requiredState; final InternalState state = this.internalState; // If the server was not stopped if(required == InternalState.STOPPED && state == InternalState.PROCESS_STOPPING) { finishTransition(InternalState.PROCESS_STOPPING, InternalState.PROCESS_STOPPED); } else { this.requiredState = InternalState.STOPPED; if ( !(internalSetState(getTransitionTask(InternalState.PROCESS_STOPPING), internalState, InternalState.PROCESS_STOPPING) && internalSetState(getTransitionTask(InternalState.PROCESS_REMOVING), internalState, InternalState.PROCESS_REMOVING) && internalSetState(getTransitionTask(InternalState.STOPPED), internalState, InternalState.STOPPED)) ){ this.requiredState = InternalState.FAILED; internalSetState(null, internalState, InternalState.PROCESS_STOPPED); } } }
/** * Notification that the server process finished. */ synchronized void processFinished() { final InternalState required = this.requiredState; final InternalState state = this.internalState; // If the server was not stopped if(required == InternalState.STOPPED && state == InternalState.PROCESS_STOPPING) { finishTransition(InternalState.PROCESS_STOPPING, InternalState.PROCESS_STOPPED); } else { this.requiredState = InternalState.STOPPED; if ( !(internalSetState(getTransitionTask(InternalState.PROCESS_STOPPING), internalState, InternalState.PROCESS_STOPPING) && internalSetState(getTransitionTask(InternalState.PROCESS_REMOVING), internalState, InternalState.PROCESS_REMOVING) && internalSetState(getTransitionTask(InternalState.STOPPED), internalState, InternalState.STOPPED)) ){ this.requiredState = InternalState.FAILED; internalSetState(null, internalState, InternalState.PROCESS_STOPPED); } } }