@Override public LifecycleState getState() { if (delegate instanceof Lifecycle) { return ((Lifecycle) delegate).getState(); } return null; }
public void lifecycleEvent(LifecycleEvent event) { if (event.getLifecycle().getState() == LifecycleState.FAILED) { Server server = tomcat.getServer(); if (server instanceof StandardServer) { System.err.println("SEVERE: Context [" + ctxName + "] failed in [" + event.getLifecycle().getClass().getName() + "] lifecycle. Allowing Tomcat to shutdown."); ((StandardServer) server).stopAwait(); } } } });
public void lifecycleEvent(LifecycleEvent event) { if (event.getLifecycle().getState() == LifecycleState.FAILED) { Server server = tomcat.getServer(); if (server instanceof StandardServer) { System.err.println("SEVERE: Context [" + ctxName + "] failed in [" + event.getLifecycle().getClass().getName() + "] lifecycle. Allowing Tomcat to shutdown."); ((StandardServer) server).stopAwait(); } } } });
@Override public void lifecycleEvent(LifecycleEvent event) { if (event.getLifecycle().getState() == state) { synchronized (mutex) { tomcat.getServer().removeLifecycleListener(this); mutex.notify(); } } } });
@Override public void lifecycleEvent(LifecycleEvent event) { if (event.getLifecycle().getState() == LifecycleState.FAILED) { ((StandardServer) EmbeddedTomcat.this.tomcat.getServer()).stopAwait(); } } });
((Lifecycle) pipeline).getState().isAvailable()) { ((Lifecycle) pipeline).stop();
((Lifecycle) pipeline).getState().isAvailable()) { ((Lifecycle) pipeline).stop();
((Lifecycle) pipeline).getState().isAvailable()) { ((Lifecycle) pipeline).stop();