@Override public void close() throws IOException { if ( isClosed.compareAndSet(false, true) ) { log.info("Shutting down"); CloseableUtils.closeQuietly(exhibitor); try { server.stop(); } catch ( Exception e ) { log.error("Error shutting down Jetty", e); } server.destroy(); } }
public void close() { try { for (final ObjectName name : this.registeredMBeans) { this.mbeanServer.unregisterMBean(name); logger.info("Jmx MBean " + name.getCanonicalName() + " unregistered."); } } catch (final Exception e) { logger.error("Failed to cleanup MBeanServer", e); } this.scheduleManager.shutdown(); this.executorManagerAdapter.shutdown(); try { this.server.stop(); } catch (final Exception e) { // Catch all while closing server logger.error(e); } this.server.destroy(); }
public void run() { log.info("shutting down..."); try { server.stop(); } catch (Exception e) { log.error(e.getMessage(), e); } finally { server.destroy(); log.info("shutdown successful"); } } });
private void stopHttpServer() throws Exception { if (webServer != null) { webServer.stop(); webServer.destroy(); webServer = null; } }
public void stopServer() throws Exception { server.stop(); server.destroy(); }
/** * Stop the servlet container. */ public void stop() { try { server.stop(); } catch (Exception e) { // ignore exception } try { server.destroy(); } catch (Exception e) { // ignore exception } host = null; port = -1; }
public void run() { logger.info("Shutting down http server..."); try { app.close(); server.stop(); server.destroy(); } catch (Exception e) { logger.error("Error while shutting down http server.", e); } logger.info("kk thx bye."); } });
@Override public void destroy() { try { server.stop(); server.setStopAtShutdown(false); server.destroy(); } catch (Exception e) { throw new TestException(e.getMessage(), e); } finally { session = null; server = null; } }
protected void stop() throws Exception { try { server.stop(); } catch (Exception e) { } try { server.destroy(); } catch (Exception e) { } }
protected void stopJetty() throws Exception { try { server.stop(); } catch (Exception e) { } try { server.destroy(); } catch (Exception e) { } }
private void stopHttpServer() throws Exception { if (webServer != null) { webServer.stop(); webServer.destroy(); webServer = null; } }
protected void stopJetty() throws Exception { try { server.stop(); } catch (Exception e) { } try { server.destroy(); } catch (Exception e) { } }
protected void stopJetty() throws Exception { try { server.stop(); } catch (Exception e) { } try { server.destroy(); } catch (Exception e) { } }
protected void destroyServer() throws Exception { LOG.info("Stopping Jetty server..."); server.stop(); LOG.info("Jetty server stopped..."); LOG.info("Destroying Jetty server..."); server.destroy(); LOG.info("Jetty server destroyed."); }
@AfterClass public static void afterClass() throws Exception { if (server != null) { server.stop(); server.destroy(); } }
public void tearDown() throws Exception { super.tearDown(); if (server != null) { server.stop(); server.destroy(); server = null; } }
@AfterClass public static void stop() throws Exception { try { server.stop(); } catch (Exception e) { } try { server.destroy(); } catch (Exception e) { } }
protected static void destroyServer() throws Exception { LOG.info("Stopping Jetty server..."); server.stop(); LOG.info("Jetty server stopped..."); LOG.info("Destroying Jetty server..."); server.destroy(); server = null; LOG.info("Jetty server destroyed."); }