@Override public void close() { log.info("Shutting down connection factory"); if (closed.compareAndSet(false, true)) { // Shut down the event loop to terminate all threads. group.shutdownGracefully(); ExecutorServiceHelpers.shutdown(executor); } }
@Override @Synchronized public void shutdown() { if (!shutdown) { log.info("Shutting down ControllerNameResolver"); if (this.scheduledExecutor != null) { ExecutorServiceHelpers.shutdown(this.scheduledExecutor); } shutdown = true; } }
@After public void stopZookeeper() throws Exception { cli.close(); zkTestServer.close(); ExecutorServiceHelpers.shutdown(executor); }
@After public void tearDown() throws Exception { cli.close(); zkTestServer.close(); ExecutorServiceHelpers.shutdown(executor); }
@After public void tearDown() throws IOException { ExecutorServiceHelpers.shutdown(executor); cli.close(); zkServer.close(); }
@After public void tearDown() { ExecutorServiceHelpers.shutdown(executor); testGRPCServer.shutdownNow(); }
@After public void shutdown() throws Exception { clusterZK.close(); ExecutorServiceHelpers.shutdown(Duration.ofSeconds(2), executor); curatorClient.close(); zkServer.close(); }
@Override public void tearDown() throws Exception { ExecutorServiceHelpers.shutdown(executorService); if (streamMetadataTasks != null) { streamMetadataTasks.close(); } if (streamTransactionMetadataTasks != null) { streamTransactionMetadataTasks.close(); } } }
@After public void tearDown() { streamManager.close(); ExecutorServiceHelpers.shutdown(executor); }
@After public void tearDown() throws Exception { zkClient.close(); zkServer.close(); streamMetadataTasks.close(); streamTransactionMetadataTasks.close(); ExecutorServiceHelpers.shutdown(executor); }
@After public void tearDown() { testState.stopReadFlag.set(true); testState.stopWriteFlag.set(true); //interrupt writers and readers threads if they are still running. testState.cancelAllPendingWork(); streamManager.close(); clientFactory.close(); //close the clientFactory/connectionFactory. readerGroupManager.close(); ExecutorServiceHelpers.shutdown(executorService, controllerExecutorService); }
@After public void tearDown() throws Exception { streamMetadataTasks.close(); cli.close(); zkServer.stop(); zkServer.close(); ExecutorServiceHelpers.shutdown(executor); }
@After public void teardown() throws Exception { streamMetadataTasks.close(); streamTransactionMetadataTasks.close(); zkClient.close(); zkServer.close(); connectionFactory.close(); ExecutorServiceHelpers.shutdown(executor); }
@After public void tearDown() throws Exception { clientFactory.close(); connectionFactory.close(); streamMetadataTasks.close(); streamTransactionMetadataTasks.close(); zkClient.close(); zkServer.close(); ExecutorServiceHelpers.shutdown(executor); }
@After public void tearDown() throws Exception { ExecutorServiceHelpers.shutdown(executor); controllerWrapper.close(); server.close(); serviceBuilder.close(); zkTestServer.close(); }
@After public void tearDown() throws Exception { ExecutorServiceHelpers.shutdown(executor); controllerWrapper.close(); server.close(); serviceBuilder.close(); zkTestServer.close(); }
@After public void tearDown() throws Exception { streamMetadataTasks.close(); service.stopAsync(); service.awaitTerminated(); connectionFactory.close(); ExecutorServiceHelpers.shutdown(executor); }
@After public void tearDown() { getClientFactory().close(); getConnectionFactory().close(); getController().close(); ExecutorServiceHelpers.shutdown(executorService, scaleExecutorService); }
@After public void tearDown() { getClientFactory().close(); getConnectionFactory().close(); getController().close(); ExecutorServiceHelpers.shutdown(executorService, scaleExecutorService); }