@Deactivate public void deactivate() { providerRegistry.unregister(this); providerService = null; log.info("Stopped"); }
@Deactivate protected void deactivate() { providerRegistry.unregister(this); providerService = null; log.info("Stopped"); }
@Deactivate public void deactivate() { netcfgService.removeListener(listener); deviceProviderRegistry.unregister(deviceProvider); worker.shutdown(); try { worker.awaitTermination(5, TimeUnit.SECONDS); } catch (InterruptedException e) { log.warn("Interrupted.", e); Thread.currentThread().interrupt(); } factories.forEach(netcfgRegistry::unregisterConfigFactory); log.info("Stopped"); }
@Deactivate public void deactivate(ComponentContext context) { cfgService.unregisterProperties(getClass(), false); listener.disable(); controller.removeListener(listener); providerRegistry.unregister(this); collectors.values().forEach(PortStatsCollector::stop); collectors.clear(); providerService = null; LOG.info("Stopped"); }
@Deactivate public void deactivate() { cfgService.removeListener(cfgLister); controller.getDevices().keySet().forEach(this::deviceRemoved); providerRegistry.unregister(this); providerService = null; cfgService.unregisterConfigFactory(factory); log.info("Stopped"); }
@Deactivate public void deactivate() { log.debug("IsisDeviceProvider::deactivate...!!!!"); deviceProviderRegistry.unregister(this); deviceProviderService = null; linkProviderRegistry.unregister(this); linkProviderService = null; controller.removeRouterListener(listener); controller.removeLinkListener(listener); log.info("deactivated...!!!"); }
@Deactivate public void deactivate() { log.debug("IsisDeviceProvider::deactivate...!!!!"); deviceProviderRegistry.unregister(this); deviceProviderService = null; linkProviderRegistry.unregister(this); linkProviderService = null; controller.removeRouterListener(listener); controller.removeLinkListener(listener); }
@Deactivate public void deactivate(ComponentContext context) { try { controller.getDevices().stream().forEach(device -> { deviceBuilderExecutor.execute(new DeviceFactory(device, false)); }); deviceBuilderExecutor.awaitTermination(1000, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { log.error("Device builder did not terminate"); } deviceBuilderExecutor.shutdownNow(); netCfgService.unregisterConfigFactory(factory); netCfgService.removeListener(cfgLister); providerRegistry.unregister(this); providerService = null; log.info("Stopped"); }