Usages of

org.onosproject.net.host.HostService.addListener(?)
@Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) protected HostService hostService; // code omitted ... @Activate protected void activate() { threadFactory = groupedThreads("onos/route", "listener-%d", log); routeStore.setDelegate(delegate); hostService.addListener(hostListener); netcfgRegistry.addListener(netcfgListener); netcfgRegistry.registerConfigFactory(routeConfigFactory); }
@Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) protected HostService hostService; // code omitted ... @Activate public void activate() { topologyService.addListener(listener); resourceManager.addListener(linkResourceListener); deviceService.addListener(deviceListener); hostService.addListener(hostListener); log.info("Started"); }
@Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) protected HostService hostService; // code omitted ... @Activate public void activate() { topologyService.addListener(listener); resourceService.addListener(resourceListener); hostService.addListener(hostListener); partitionService.addListener(partitionListener); log.info("Started"); }
@Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) protected HostService hostService; // code omitted ... @Activate public void activate() { appId = coreService.registerApplication(VPLS_APP); intentInstaller = new IntentInstaller(appId, intentService, intentSynchronizer); applicationService.registerDeactivateHook(appId, intentSynchronizerAdmin::removeIntents); hostService.addListener(hostListener); setupConnectivity(); log.info("Started"); }
@Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) protected HostService hostService; // code omitted ... @Activate public void activate() { this.appId = coreService.registerApplication(APP_NAME); deviceService.addListener(deviceListener); networkConfigService.addListener(networkConfigListener); hostService.addListener(hostListener); interfaceService.addListener(interfaceListener); updateConfig(); }
@Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) protected HostService hostService; // code omitted ... @Activate public void activate() { oxpVersion = domainController.getOxpVersion(); oxpFactory = OXPFactories.getFactory(oxpVersion); domainController.addMessageListener(oxpMsgListener); domainController.addOxpSuperListener(oxpSuperListener); hostService.addListener(hostListener); log.info("Started"); }
@Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) protected HostService hostService; // code omitted ... @Activate protected void activate() { ApplicationId appId = coreService.registerApplication("org.onosproject.cordvtn"); nodeStore = storageService.<CordVtnNode, NodeState>consistentMapBuilder() .withSerializer(Serializer.using(NODE_SERIALIZER.build())) .withName("cordvtn-nodestore") .withApplicationId(appId) .build(); ruleInstaller = new CordVtnRuleInstaller(appId, flowObjectiveService, driverService, DEFAULT_TUNNEL); deviceService.addListener(deviceListener); hostService.addListener(hostListener); log.info("Started"); }
@Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) protected HostService hostService; // code omitted ... @Activate protected void activate() { appId = coreService .registerApplication("org.onosproject.openstackswitching"); packetService.addProcessor(internalPacketProcessor, PacketProcessor.director(1)); deviceService.addListener(internalDeviceListener); hostService.addListener(internalHostListener); initializeFlowRules(); log.info("Started"); }
@Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) protected HostService hostService; // code omitted ... @Activate protected void activate() { appId = coreService.registerApplication("gist.ac.netcs.fwdtraffic"); map = new ConcurrentHashMap<DeviceId, ConcurrentMap<HostPair, Long>>(); packetService.addProcessor(processor, PacketProcessor.ADVISOR_MAX + 10); requestPackests(); log.info("Started with Application ID {}", appId.id()); hostService.addListener(hostListener); }
@Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) protected HostService hostService; // code omitted ... @Activate public void activate() { appId = coreService.registerApplication(PROVIDER_NAME); configRegistry.registerConfigFactory(configFactory); configService.addListener(configListener); deviceService.addListener(deviceListener); linkService.addListener(linkListener); hostService.addListener(hostListener); }
Usage snippet has been bookmarked! Review your bookmarks
Thank you! Review your likes