/** * Stop the server. */ public void stop() { if (server != null) { try { server.stop(); } catch (Exception e) { LOG.warn("Error stopping Jetty server", e); } } } }
public void stop() throws Exception { server.stop(); }
public void stop() throws IOException { if ( this.server != null ) { try { this.server.stop(); } catch ( Exception var2 ) { Throwables.propagateIfPossible( var2 ); throw new IOException( var2 ); } this.server = null; } }
public void stop() throws Exception { server.stop(); server = null; port = 0; registrationStatusesQueue.clear(); registrationStatuses.clear(); applicationMap.clear(); remoteRegionApps.clear(); remoteRegionAppsDelta.clear(); applicationDeltaMap.clear(); }
@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 stop() throws Exception { if( server.isRunning() ) { server.stop(); server.join(); } }
@Override public void stopInner() { try { if(httpServer != null) { httpServer.stop(); for(Connector c: httpServer.getConnectors()) { c.close(); } } if(context != null) context.destroy(); } catch(Exception e) { throw new VoldemortException(e); } this.httpServer = null; this.context = null; }
@Override @After public void tearDown() throws Exception { httpStore.close(); server.stop(); context.destroy(); VoldemortIOUtils.closeQuietly(httpClient); }
@Override public void tearDown() throws Exception { super.tearDown(); httpStore.close(); server.stop(); context.destroy(); VoldemortIOUtils.closeQuietly(httpClient); }
/** * Stop the internal HTTP server * * @throws StopException when stopping fails */ public void stop() throws StopException { try { server.stop(); } catch (Exception e) { throw new StopException(e, parent); } }
@After public final void afterTest() throws Exception { try { this.server.stop(); this.server.join(); } finally { FileUtils.deleteDirectory(this.httpRoot); } }
@Override public void close() { try { server.stop(); } catch (Exception e) { throw new AvroRuntimeException(e); } } }
public void stop() throws Exception { jetty.stop(); System.clearProperty("org.mortbay.log.class"); }
public void close() throws IOException{ //need to stop server and reset injector try { agentServer.stop(); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOException(e.toString(), e); } }
public void stop() throws Exception { if (isStarted()) { httpServer.stop(); httpServer = null; } }
private void doStop() throws Exception { // destroyRequest(); server.stop(); waitUntilStopped(); }
@Override public void stop() throws ServiceException { try { server.stop(); } catch (Exception e) { throw new ServiceException(e); } } }
@TearDown @SuppressWarnings("unused") private void tearDown() throws Exception { server.stop(); } }
private void stopHttpServer() throws Exception { if (webServer != null) { webServer.stop(); webServer.destroy(); webServer = null; } }