@Override public void stop() { if (serverBootstrap != null) serverBootstrap.shutdown(); }
@Override protected void doStop() { if (bootstrap != null) { bootstrap.shutdown(); } }
@Override protected boolean doUnload() throws ModuleException { if (serverBootstrap != null) { serverBootstrap.shutdown(); } if (serverChannel != null) { serverChannel.close(); } return true; }
@Override protected void shutDown() throws Exception { LOG.info("Shutting down REST API at <{}>", configuration.getRestListenUri()); bootstrap.releaseExternalResources(); bootstrap.shutdown(); } }
protected void shutdown() { // if we get here w/o problems, the executor is already long finished. if(null != getExecutor() && !getExecutor().isTerminated()) { LOG.info("Forcefully terminating executors with done ={}", isDone()); getExecutor().shutdownNow(); // force kill, especially if got here by throw } if(this.rpcServer != null) { this.rpcServer.shutdown(); this.rpcServer.releaseExternalResources(); } if(this.taskTimeoutExecutor != null) { this.taskTimeoutExecutor.shutdownNow(); } }
protected void shutdown() { // if we get here w/o problems, the executor is already long finished. if(null != getExecutor() && !getExecutor().isTerminated()) { LOG.info("Forcefully terminating executors with done ={}", isDone()); getExecutor().shutdownNow(); // force kill, especially if got here by throw } if(this.rpcServer != null) { this.rpcServer.shutdown(); this.rpcServer.releaseExternalResources(); } if(this.taskTimeoutExecutor != null) { this.taskTimeoutExecutor.shutdownNow(); } }
@Override public void stop() { channel.close().awaitUninterruptibly(); bootstrap.releaseExternalResources(); bootstrap.shutdown(); deployment.stop(); if (LOGGER.isTraceEnabled()) { LOGGER.trace("Stopped Netty JAXRS Server: port=" + getPort() + ", resources=" + deployment.getResources()); } } }
server.shutdown();