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