public void shutdown() { try { ss.close(); closeAll(); thread.interrupt(); thread.join(); if (login != null) { login.shutdown(); } } catch (InterruptedException e) { LOG.warn("Ignoring interrupted exception during shutdown", e); } catch (Exception e) { LOG.warn("Ignoring unexpected exception during shutdown", e); } try { selector.close(); } catch (IOException e) { LOG.warn("Selector closing", e); } if (zkServer != null) { zkServer.shutdown(); } }
public void shutdown() { try { // close listen socket and signal selector threads to stop stop(); // wait for selector and worker threads to shutdown join(); // close all open connections closeAll(); if (login != null) { login.shutdown(); } } catch (InterruptedException e) { LOG.warn("Ignoring interrupted exception during shutdown", e); } catch (Exception e) { LOG.warn("Ignoring unexpected exception during shutdown", e); } if (zkServer != null) { zkServer.shutdown(); } }
closeAll(); LOG.info("NIOServerCnxn factory exited run method");