예제 #1
0
 @Deactivate
 public void deactivate() {
   topologyService.removeListener(listener);
   resourceManager.removeListener(linkResourceListener);
   deviceService.removeListener(deviceListener);
   hostService.removeListener(hostListener);
   partitionService.removeListener(partitionListener);
   log.info("Stopped");
 }
예제 #2
0
 @Activate
 public void activate() {
   topologyService.addListener(listener);
   resourceManager.addListener(linkResourceListener);
   deviceService.addListener(deviceListener);
   hostService.addListener(hostListener);
   partitionService.addListener(partitionListener);
   log.info("Started");
 }