@Override protected void shutDown() throws Exception { LOG.info("Stopping DatasetService..."); for (DatasetMetricsReporter metricsReporter : metricReporters) { metricsReporter.stop(); } if (opExecutorServiceWatch != null) { opExecutorServiceWatch.cancel(); } typeService.stopAndWait(); if (cancelDiscovery != null) { cancelDiscovery.cancel(); } // Wait for a few seconds for requests to stop try { TimeUnit.SECONDS.sleep(3); } catch (InterruptedException e) { LOG.error("Interrupted while waiting...", e); } httpService.stop(); opExecutorClient.stopAndWait(); }
@Override protected void shutDown() throws Exception { LOG.info("Stopping DatasetService..."); for (DatasetMetricsReporter metricsReporter : metricReporters) { metricsReporter.stop(); } if (opExecutorServiceWatch != null) { opExecutorServiceWatch.cancel(); } typeService.stopAndWait(); if (cancelDiscovery != null) { cancelDiscovery.cancel(); } // Wait for a few seconds for requests to stop try { TimeUnit.SECONDS.sleep(3); } catch (InterruptedException e) { LOG.error("Interrupted while waiting...", e); } httpService.stop(); opExecutorClient.stopAndWait(); }
@AfterClass public static void afterClass() { dsService.stopAndWait(); dsOpsService.stopAndWait(); txService.stopAndWait(); }
dsOpService.stopAndWait(); txService.stopAndWait();
dsOpService.stopAndWait(); txService.stopAndWait();
@AfterClass public static void afterClass() throws Exception { deleteNamespaces(); appFabricServer.stopAndWait(); metricsCollectionService.stopAndWait(); datasetService.stopAndWait(); dsOpService.stopAndWait(); txManager.stopAndWait(); serviceStore.stopAndWait(); metadataSubscriberService.stopAndWait(); metadataService.stopAndWait(); if (messagingService instanceof Service) { ((Service) messagingService).stopAndWait(); } }