@Override protected void shutDown() throws Exception { server.stop(); server.join(); registrar.close(); agentReaper.ifPresent(reaper -> reaper.stopAsync().awaitTerminated()); oldJobReaper.ifPresent(reaper -> reaper.stopAsync().awaitTerminated()); jobHistoryReaper.ifPresent(reaper -> reaper.stopAsync().awaitTerminated()); rollingUpdateService.stopAsync().awaitTerminated(); expiredJobReaper.stopAsync().awaitTerminated(); zkRegistrar.stopAsync().awaitTerminated(); zooKeeperClient.close(); }
@Override protected void shutDown() throws Exception { server.stop(); server.join(); registrar.close(); rollingUpdateService.stopAsync().awaitTerminated(); expiredJobReaper.stopAsync().awaitTerminated(); zkRegistrar.stopAsync().awaitTerminated(); zooKeeperClient.close(); }