/** * On host controller reload, remove a not running server registered in the process controller declared as stopping. */ protected synchronized void setServerProcessStopping() { this.requiredState = InternalState.STOPPED; internalSetState(null, InternalState.STOPPED, InternalState.PROCESS_STOPPING); }
/** * On host controller reload, remove a not running server registered in the process controller declared as stopping. */ synchronized void setServerProcessStopping() { this.requiredState = InternalState.STOPPED; internalSetState(null, InternalState.STOPPED, InternalState.PROCESS_STOPPING); }
synchronized void serverStarted(final TransitionTask task) { internalSetState(task, InternalState.SERVER_STARTING, InternalState.SERVER_STARTED); }
/** * On host controller reload, remove a not running server registered in the process controller declared as stopping. */ synchronized void setServerProcessStopping() { this.requiredState = InternalState.STOPPED; internalSetState(null, InternalState.STOPPED, InternalState.PROCESS_STOPPING); }
synchronized void serverStarted(final TransitionTask task) { internalSetState(task, InternalState.SERVER_STARTING, InternalState.SERVER_STARTED); }
/** * Reload a managed server. * * @param permit the controller permit * @return whether the state was changed successfully or not */ synchronized boolean reload(int permit, boolean suspend) { return internalSetState(new ReloadTask(permit, suspend), InternalState.SERVER_STARTED, InternalState.RELOADING); }
/** * Reload a managed server. * * @param permit the controller permit * @return whether the state was changed successfully or not */ synchronized boolean reload(int permit, boolean suspend) { return internalSetState(new ReloadTask(permit, suspend), InternalState.SERVER_STARTED, InternalState.RELOADING); }
/** * On host controller reload, remove a not running server registered in the process controller declared as down. */ synchronized void removeServerProcess() { this.requiredState = InternalState.STOPPED; internalSetState(new ProcessRemoveTask(), InternalState.STOPPED, InternalState.PROCESS_REMOVING); }
/** * On host controller reload, remove a not running server registered in the process controller declared as down. */ protected synchronized void removeServerProcess() { this.requiredState = InternalState.STOPPED; internalSetState(new ProcessRemoveTask(), InternalState.STOPPED, InternalState.PROCESS_REMOVING); }
/** * On host controller reload, remove a not running server registered in the process controller declared as down. */ synchronized void removeServerProcess() { this.requiredState = InternalState.STOPPED; internalSetState(new ProcessRemoveTask(), InternalState.STOPPED, InternalState.PROCESS_REMOVING); }
/** * 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); } }
/** * Try to reconnect to a started server. */ synchronized void reconnectServerProcess(final ManagedServerBootCmdFactory factory) { if(this.requiredState != InternalState.SERVER_STARTED) { this.bootConfiguration = factory; this.requiredState = InternalState.SERVER_STARTED; ROOT_LOGGER.reconnectingServer(serverName); internalSetState(new ReconnectTask(), InternalState.STOPPED, InternalState.SEND_STDIN); } }
/** * Try to reconnect to a started server. */ protected synchronized void reconnectServerProcess() { if(this.requiredState != InternalState.SERVER_STARTED) { ROOT_LOGGER.reconnectingServer(serverName); this.requiredState = InternalState.SERVER_STARTED; internalSetState(new ReconnectTask(), InternalState.STOPPED, InternalState.SEND_STDIN); } }
/** * Finish a state transition from a notification. * * @param current * @param next */ private synchronized void finishTransition(final InternalState current, final InternalState next) { internalSetState(getTransitionTask(next), current, next); transition(); }
/** * Finish a state transition from a notification. * * @param current * @param next */ private synchronized void finishTransition(final InternalState current, final InternalState next) { internalSetState(getTransitionTask(next), current, next); transition(); }
/** * Try to reconnect to a started server. */ synchronized void reconnectServerProcess(final ManagedServerBootCmdFactory factory) { if(this.requiredState != InternalState.SERVER_STARTED) { this.bootConfiguration = factory; this.requiredState = InternalState.SERVER_STARTED; ROOT_LOGGER.reconnectingServer(serverName); internalSetState(new ReconnectTask(), InternalState.STOPPED, InternalState.SEND_STDIN); } }
/** * Finish a state transition from a notification. * * @param current * @param next */ private synchronized void finishTransition(final InternalState current, final InternalState next) { internalSetState(getTransitionTask(next), current, next); transition(); }
private synchronized void transition(boolean checkAsync) { final InternalState required = this.requiredState; final InternalState current = this.internalState; // Check if we are waiting for a notification from the server if(checkAsync && current.isAsync()) { return; } final InternalState next = nextState(current, required); if (next != null) { final TransitionTask task = getTransitionTask(next); internalSetState(task, current, next); } }
private synchronized void transition(boolean checkAsync) { final InternalState required = this.requiredState; final InternalState current = this.internalState; // Check if we are waiting for a notification from the server if(checkAsync && current.isAsync()) { return; } final InternalState next = nextState(current, required); if (next != null) { final TransitionTask task = getTransitionTask(next); internalSetState(task, current, next); } }
private synchronized void transition(boolean checkAsync) { final InternalState required = this.requiredState; final InternalState current = this.internalState; // Check if we are waiting for a notification from the server if(checkAsync && current.isAsync()) { return; } final InternalState next = nextState(current, required); if(next != null) { final TransitionTask task = getTransitionTask(next); internalSetState(task, current, next); } }