Пример #1
0
 @Deactivate
 public void deactivate() {
   providerRegistry.unregister(this);
   providerService = null;
   cfgService.unregisterConfigFactory(factory);
   cfgService.removeListener(cfgLister);
   log.info("Stopped");
 }
Пример #2
0
 @Activate
 public void activate() {
   appId = coreService.registerApplication(APP_NAME);
   providerService = providerRegistry.register(this);
   cfgService.registerConfigFactory(factory);
   cfgService.addListener(cfgLister);
   connectDevices();
   log.info("Started");
 }
 @Activate
 public void activate() {
   providerService = providerRegistry.register(this);
   appId = coreService.registerApplication(APP_NAME);
   cfgService.registerConfigFactory(factory);
   cfgService.addListener(cfgLister);
   controller.addDeviceListener(innerNodeListener);
   executor.execute(NetconfDeviceProvider.this::connectDevices);
   log.info("Started");
 }
Пример #4
0
 private void unregister() {
   deviceProviderRegistry.unregister(this);
   linkProviderRegistry.unregister(this);
   hostProviderRegistry.unregister(this);
 }
Пример #5
0
 private void register() {
   deviceProviderService = deviceProviderRegistry.register(this);
   linkProviderService = linkProviderRegistry.register(this);
   hostProviderService = hostProviderRegistry.register(this);
 }