public void stop() { log.info("RTMP Mina Transport stop"); // first we unbind to prevent new connections acceptor.unbind(); // second we shutdown the customized executor, if we used it if (!enableDefaultAcceptor) { executor.shutdownNow(); } // lastly dispose the acceptor without allowing for deadlocks acceptor.dispose(false); // deregister with jmx if (serviceManagerObjectName != null) { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); try { mbs.unregisterMBean(serviceManagerObjectName); } catch (Exception e) { log.warn("Error on jmx unregistration", e); } } }
public void stop() { acceptor.unbind(); acceptor = null; }
/** * @see Listener#suspend() */ public synchronized void suspend() { if (acceptor != null && !suspended) { LOG.debug("Suspending listener"); acceptor.unbind(); suspended = true; LOG.debug("Listener suspended"); } }
/** * @see Listener#suspend() */ public synchronized void suspend() { if (acceptor != null && !suspended) { LOG.debug("Suspending listener"); acceptor.unbind(); suspended = true; LOG.debug("Listener suspended"); } }
/** * @see Listener#stop() */ public synchronized void stop() { // close server socket if (acceptor != null) { acceptor.unbind(); acceptor.dispose(); acceptor = null; } context = null; }
public void stop() { acceptor.unbind(); acceptor.dispose(); } }
public void shutdown() { if (acceptor != null) { acceptor.unbind(); acceptor.dispose(); } logger.error("---------> socket server stop successfully"); }
public void stop() { if (acceptor != null) { acceptor.unbind(); acceptor.dispose(); } } }
/** * Ports and addresses are unbound (stop listening). */ @Override public void destroy() throws Exception { log.info("stopped {} websocket transport", (isSecure() ? "secure" : "")); acceptor.unbind(); }
/** * @see Listener#stop() */ public synchronized void stop() { // close server socket if (acceptor != null) { acceptor.unbind(); acceptor.dispose(); acceptor = null; } if (filterExecutor != null) { filterExecutor.shutdown(); try { filterExecutor.awaitTermination(5000, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { } finally { // TODO: how to handle? } } context = null; }
/** * Stops the FTP server. */ @Destroy public void stop() { acceptor.unbind(); acceptor.dispose(); }
acceptor.unbind(new InetSocketAddress(socketPort));