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() throws IOException { if (this.acceptor == null) { return; } this.acceptor.dispose(false); }
/** * Close service. */ public boolean close() { if (acceptor != null) { acceptor.dispose(); return true; } return false; }
public synchronized void stop() { acceptor.dispose(); }
public void stop() { acceptor.unbind(); acceptor.dispose(); } }
/** * @see Listener#stop() */ public synchronized void stop() { // close server socket if (acceptor != null) { acceptor.unbind(); acceptor.dispose(); acceptor = null; } context = null; }
public void stop() { if (acceptor != null) { acceptor.unbind(); acceptor.dispose(); } } }
public void shutdown() { if (acceptor != null) { acceptor.unbind(); acceptor.dispose(); } logger.error("---------> socket server stop successfully"); }
/** * @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(); }
getSocketAcceptor( transport ).dispose();