Ejemplo n.º 1
0
 @Deactivate
 public void deactivate() {
   providerRegistry.unregister(this);
   providerService = null;
   cfgService.unregisterConfigFactory(factory);
   cfgService.removeListener(cfgLister);
   log.info("Stopped");
 }
Ejemplo n.º 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");
 }
Ejemplo n.º 3
0
 @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");
 }
Ejemplo n.º 4
0
 private void unregister() {
   deviceProviderRegistry.unregister(this);
   linkProviderRegistry.unregister(this);
   hostProviderRegistry.unregister(this);
 }
Ejemplo n.º 5
0
 private void register() {
   deviceProviderService = deviceProviderRegistry.register(this);
   linkProviderService = linkProviderRegistry.register(this);
   hostProviderService = hostProviderRegistry.register(this);
 }