555657585960616263
// Wait until the server socket is closed. f.channel().closeFuture().sync(); } finally { // Shut down all event loops to terminate all threads. group.shutdownGracefully(); } } }
8687888990919293949596
ch.closeFuture().sync(); } finally { logger.info("Shutting down thread pools"); gremlinGroup.shutdownGracefully(); bossGroup.shutdownGracefully(); workerGroup.shutdownGracefully(); logger.info("Gremlin Server - shutdown complete"); }
219220221222223224225226227228229
l.shutdownGracefully(); e1.shutdownGracefully(); e2.shutdownGracefully(); e3.shutdownGracefully(); e4.shutdownGracefully(); e5.shutdownGracefully(); l.terminationFuture().sync(); e1.terminationFuture().sync(); e2.terminationFuture().sync(); e3.terminationFuture().sync();
193194195196197198199200201202203
System.out.println("H3R: " + h3.removalThreadNames); throw e; } finally { l.shutdownGracefully(); e1.shutdownGracefully(); e2.shutdownGracefully(); l.terminationFuture().sync(); e1.terminationFuture().sync(); e2.terminationFuture().sync(); }
319320321322323324325326327328329
l0.shutdownGracefully(); e1.shutdownGracefully(); e2.shutdownGracefully(); e3.shutdownGracefully(); e4.shutdownGracefully(); e5.shutdownGracefully(); l0.terminationFuture().sync(); e1.terminationFuture().sync(); e2.terminationFuture().sync(); e3.terminationFuture().sync();