@Override public void stop() { log.info("Stopping Http Server [" + id + "] ... "); try { ioReactor.shutdown(); } catch (IOException e) { log.warn("Error occured while shutting down", e); } log.info("Http Server stopped"); }
public void stop() throws IOException { LOG.debug("Stopping the jhc ioReactor "); ioReactor.shutdown(); LOG.debug("Waiting the runner"); try { runner.join(); } catch (InterruptedException e) { //do nothing here } isStarted = false; LOG.debug("Runner stopped"); } }
public void stop() throws IOException { if (this.ioReactor != null) { this.ioReactor.shutdown(2000); } }
/** * ShutdownIOReactor which is registered by HTTPListener running on given port * * @param port Port of axis2 PTT Listener * @throws IOException Exception throwing when Shutdown */ public void shutdownIOReactor(int port) throws IOException { ListeningIOReactor ioReactor = shutdownReactor(port); if (ioReactor != null) { try { ioReactor.shutdown(); } catch (IOException e) { throw new IOException( "IOException occurred when shutting down IOReactor for Listener started on port " + port, e); } passThroughListenerIOReactorMapper.remove(port); passThroughListenerServerIODispatchMapper.remove(port); } }
/** * ShutdownIOReactor which is registered by HTTPListener running on given port * * @param port Port of axis2 PTT Listener * @param miliSeconds Waiting Time before close IO Reactor * @throws IOException Exception throwing when Shutdown */ public void shutdownIOReactor(int port, long miliSeconds) throws IOException { ListeningIOReactor ioReactor = shutdownReactor(port); if (ioReactor != null) { try { ioReactor.shutdown(miliSeconds); } catch (IOException e) { throw new IOException( "IOException occurred when shutting down IOReactor for Listener started on port " + port, e); } passThroughListenerIOReactorMapper.remove(port); passThroughListenerServerIODispatchMapper.remove(port); } }
ioReactor.shutdown(); } catch (IOException e) { log.error("Failed to shutdown ioReactor", e);
try { if ( ioReactor!=null ) { ioReactor.shutdown();