public void stop( BundleContext bundleContext ) throws Exception { m_jclLogger.info( "Stopping Example... (jcl)" ); m_avalonLogger.info( "Stopping Example... (avalon)" ); m_slf4jLogger.info( "Stopping Example... (slf4j)"); m_jdkLogger.info( "Stopping Example... (jdk)"); m_juliLogger.info( "Stopping Example... (juli)"); m_server.stop(); } }
synchronized void stop() { servletHttpTransport.getEndpointService().removeMessageTransport(this); messengerEventListener = null; try { server.stop(); } catch (InterruptedException e) { if (Logging.SHOW_SEVERE && LOG.isLoggable(Level.SEVERE)) { LOG.log(Level.SEVERE, "Interrupted during stop()", e); } } if (Logging.SHOW_INFO && LOG.isLoggable(Level.INFO)) { LOG.info("HTTP Servlet Transport stopped."); } }
public static synchronized void destroyForPort(int p) { JettyHTTPServerEngine ref = portMap.remove(p); if (ref != null && ref.server != null) { try { ref.listener.getServerSocket().close(); ref.server.stop(true); ref.server.destroy(); ref.server = null; ref.listener = null; } catch (InterruptedException ex) { ex.printStackTrace(); } catch (IOException ex) { ex.printStackTrace(); } } }
public void stopServer() throws InterruptedException { wsLogger.info("Connections=" + fServer.getConnections()); wsLogger.info("ConnectionsOpen=" + fServer.getConnectionsOpen()); wsLogger.info("ConnectionsRequests=" + fServer.getRequests()); if (listener2 != null) { wsLogger.info("ACCEPTQUESIZE=" + listener2.getAcceptQueueSize()); } fServer.stop(true); }