/** * Stop nested components ({@link Connector}s and {@link Engine}s) and * implement the requirements of * {@link org.apache.catalina.util.LifecycleBase#stopInternal()}. * * @exception LifecycleException if this component detects a fatal error * that needs to be reported */ @Override protected void stopInternal() throws LifecycleException { if( log.isDebugEnabled() ) log.debug("Stopping embedded server"); setState(LifecycleState.STOPPING); // Stop our defined Connectors first for (int i = 0; i < connectors.length; i++) { ((Lifecycle) connectors[i]).stop(); } // Stop our defined Engines second for (int i = 0; i < engines.length; i++) { engines[i].stop(); } }
/** * Stop nested components ({@link Connector}s and {@link Engine}s) and * implement the requirements of * {@link org.apache.catalina.util.LifecycleBase#stopInternal()}. * * @exception LifecycleException if this component detects a fatal error * that needs to be reported */ @Override protected void stopInternal() throws LifecycleException { if( log.isDebugEnabled() ) log.debug("Stopping embedded server"); setState(LifecycleState.STOPPING); // Stop our defined Connectors first for (int i = 0; i < connectors.length; i++) { ((Lifecycle) connectors[i]).stop(); } // Stop our defined Engines second for (int i = 0; i < engines.length; i++) { engines[i].stop(); } }
class Vehicle { Engine myEngine = new Engine(); void start() { myEngine.start(); } void stop() { myEngine.stop(); } } class VehicleWithSteering extends Vehicle { Steering mySteering = new Steering(); void start() { mySteering.reset(); myEngine.start(); } void steerLeft() { mySteering.left(); } void steerRight() { mySteering.right(); } }
/** * Stop nested components ({@link Connector}s and {@link Engine}s) and * implement the requirements of * {@link org.apache.catalina.util.LifecycleBase#stopInternal()}. * * @exception LifecycleException if this component detects a fatal error * that needs to be reported */ @Override protected void stopInternal() throws LifecycleException { if( log.isDebugEnabled() ) log.debug("Stopping embedded server"); fireLifecycleEvent(STOP_EVENT, null); setState(LifecycleState.STOPPING); // Stop our defined Connectors first for (int i = 0; i < connectors.length; i++) { ((Lifecycle) connectors[i]).stop(); } // Stop our defined Engines second for (int i = 0; i < engines.length; i++) { engines[i].stop(); } }
/** * Stop nested components ({@link Connector}s and {@link Engine}s) and * implement the requirements of * {@link org.apache.catalina.util.LifecycleBase#stopInternal()}. * * @exception LifecycleException if this component detects a fatal error * that needs to be reported */ @Override protected void stopInternal() throws LifecycleException { if( log.isDebugEnabled() ) log.debug("Stopping embedded server"); fireLifecycleEvent(STOP_EVENT, null); setState(LifecycleState.STOPPING); // Stop our defined Connectors first for (int i = 0; i < connectors.length; i++) { ((Lifecycle) connectors[i]).stop(); } // Stop our defined Engines second for (int i = 0; i < engines.length; i++) { engines[i].stop(); } }
/** * Stop nested components ({@link Connector}s and {@link Engine}s) and * implement the requirements of * {@link org.apache.catalina.util.LifecycleBase#stopInternal()}. * * @exception LifecycleException if this component detects a fatal error * that needs to be reported */ @Override protected void stopInternal() throws LifecycleException { if( log.isDebugEnabled() ) log.debug("Stopping embedded server"); fireLifecycleEvent(STOP_EVENT, null); setState(LifecycleState.STOPPING); // Stop our defined Connectors first for (int i = 0; i < connectors.length; i++) { ((Lifecycle) connectors[i]).stop(); } // Stop our defined Engines second for (int i = 0; i < engines.length; i++) { engines[i].stop(); } }
oldEngine.stop(); } catch (LifecycleException e) { log.warn(sm.getString("standardService.engine.stopFailed"), e);
oldEngine.stop(); } catch (LifecycleException e) { log.warn(sm.getString("standardService.engine.stopFailed"), e);
log.debug(" Stopping this Engine"); try { engine.stop(); } catch (LifecycleException e) { log.error("Engine.stop", e);
log.debug(" Stopping this Engine"); try { engine.stop(); } catch (LifecycleException e) { log.error("Engine.stop", e);
log.debug(" Stopping this Engine"); try { engine.stop(); } catch (LifecycleException e) { log.error("Engine.stop", e);
log.debug(" Stopping this Engine"); try { engine.stop(); } catch (LifecycleException e) { log.error("Engine.stop", e);
log.debug(" Stopping this Engine"); try { engine.stop(); } catch (LifecycleException e) { log.error("Engine.stop", e);