@Override public void stop() { LOG.info("Stopping Router..."); Futures.getUnchecked(Services.chainStop(router, zkClientService)); try { routeStore.close(); } catch (Exception ex) { LOG.debug("Exception when trying to close RouteStore.", ex); } LOG.info("Router stopped."); }
@Override protected void shutDown() throws Exception { coreSchedulerService.stopAndWait(); routeStore.close(); bootstrapService.stopAndWait(); cancelHttpService.cancel(); programRuntimeService.stopAndWait(); applicationLifecycleService.stopAndWait(); programNotificationSubscriberService.stopAndWait(); runRecordCorrectorService.stopAndWait(); pluginService.stopAndWait(); provisioningService.stopAndWait(); if (runCountUpgradeService != null && runCountUpgradeService.isRunning()) { runCountUpgradeService.stopAndWait(); } }
@Override protected void shutDown() throws Exception { coreSchedulerService.stopAndWait(); routeStore.close(); bootstrapService.stopAndWait(); cancelHttpService.cancel(); programRuntimeService.stopAndWait(); applicationLifecycleService.stopAndWait(); notificationService.stopAndWait(); programNotificationSubscriberService.stopAndWait(); runRecordCorrectorService.stopAndWait(); pluginService.stopAndWait(); provisioningService.stopAndWait(); if (runCountUpgradeService != null && runCountUpgradeService.isRunning()) { runCountUpgradeService.stopAndWait(); } }