public void stop() throws Exception { this.server.stop(); }
/** * {@inheritDoc} */ @Override public void extinguish() { logger.info(">>> {} shutting down ...", NAME); try { if (server != null) { server.stop(); } } catch (Exception e) { logger.error("stop failed", e); System.exit(100); // NOSONAR } logger.info("done"); }
@AfterClass(alwaysRun = true) public void tearDownGlobal() throws Exception { if (server != null) { server.stop(); } }
@AfterClass(alwaysRun = true) public void tearDownGlobal() throws Exception { for (Server srv : servers) { srv.stop(); } }
@Override public void close() throws IOException { if (server != null) { try { server.stop(); } catch (Exception e) { throw new IOException(e); } } }
@AfterClass public static void stopJettyServer() throws Exception { if (jettyServer != null) { jettyServer.stop(); } }
@AfterClass public static void stopServer() throws Exception { if (server != null) { server.stop(); } }
@Override public void close() { super.close(); // ServletManager.getInstance().removeServletContext(url.getParameter(Constants.BIND_PORT_KEY, url.getPort())); if (server != null) { try { server.stop(); } catch (Exception e) { logger.warn(e.getMessage(), e); } } }
@Override public void close() { super.close(); // ServletManager.getInstance().removeServletContext(url.getParameter(Constants.BIND_PORT_KEY, url.getPort())); if (server != null) { try { server.stop(); } catch (Exception e) { logger.warn(e.getMessage(), e); } } }
@AfterClass(alwaysRun = true) public void tearDownGlobal() throws Exception { super.tearDownGlobal(); server2.stop(); }
@After public void tearDown() throws Exception { client.close(); clientLosAngeles.close(); server.stop(); walker.close(); walker = null; client = null; clientLosAngeles = null; server = null; }
@Override protected void resetInternal() { try { if (this.jettyServer.isRunning()) { this.jettyServer.setStopTimeout(5000); this.jettyServer.stop(); this.jettyServer.destroy(); } } catch (Exception ex) { throw new IllegalStateException(ex); } finally { this.jettyServer = null; this.contextHandler = null; } }
@Override public void stop() throws Exception { try { if (this.contextHandler.isRunning()) { this.contextHandler.stop(); } } finally { if (this.jettyServer.isRunning()) { this.jettyServer.setStopTimeout(5000); this.jettyServer.stop(); } } }
@AfterClass public static void tearDown() throws Exception { removeEurekaConfiguration(); if (jerseyReplicationClient != null) { jerseyReplicationClient.shutdown(); } if (server != null) { server.stop(); } if (httpClientFactory != null) { httpClientFactory.shutdown(); } }
@Override protected void stopInternal() throws Exception { try { if (this.contextHandler.isRunning()) { this.contextHandler.stop(); } } finally { try { if (this.jettyServer.isRunning()) { this.jettyServer.setStopTimeout(5000); this.jettyServer.stop(); this.jettyServer.destroy(); } } catch (Exception ex) { // ignore } } }