public NEMORenderer(DataBroker dataBroker0, RpcProviderRegistry rpcProviderRegistry0) { this.dataBroker = dataBroker0; this.rpcProviderRegistry = rpcProviderRegistry0; this.nemoEngine = rpcProviderRegistry.getRpcService(NemoIntentService.class); }
public TsdrCollectorSpiService getTSDRService(){ if(this.collectorSPIService==null){ this.collectorSPIService = this.rpcRegistry .getRpcService(TsdrCollectorSpiService.class); } return this.collectorSPIService; }
/** * {@inheritDoc} */ @Override public <T extends RpcService> T getRpcService(Class<T> type) { return rpcRegistry.getRpcService(type); }
public TutorialL2Forwarding(DataBroker dataBroker, NotificationProviderService notificationService, RpcProviderRegistry rpcProviderRegistry) { //Store the data broker for reading/writing from inventory store this.dataBroker = dataBroker; //Get access to the packet processing service for making RPC calls later this.packetProcessingService = rpcProviderRegistry.getRpcService(PacketProcessingService.class); //List used to track notification (both data change and YANG-defined) listener registrations this.registrations = Lists.newArrayList(); //Register this object for receiving notifications when there are PACKET_INs registrations.add(notificationService.registerNotificationListener(this)); }
private void store(StoreTSDRMetricRecordInput input) { if (metricDataService == null) { metricDataService = this.rpcRegistry.getRpcService(TsdrMetricDataService.class); } metricDataService.storeTSDRMetricRecord(input); logger.debug("Data Storage called"); }
private void store(StoreTSDRLogRecordInput input) { if (logDataService == null) { logDataService = this.rpcRegistry.getRpcService(TsdrLogDataService.class); } logDataService.storeTSDRLogRecord(input); logger.debug("Data Storage called"); } }
public TutorialACL(DataBroker dataBroker, NotificationProviderService notificationService, RpcProviderRegistry rpcProviderRegistry) { //Store the data broker for reading/writing from inventory store this.dataBroker = dataBroker; //Get access to the packet processing service for making RPC calls later this.packetProcessingService = rpcProviderRegistry.getRpcService(PacketProcessingService.class); //List used to track notification (both data change and YANG-defined) listener registrations this.registrations = registerDataChangeListeners(); //Register this object for receiving notifications when there are PACKET_INs registrations.add(notificationService.registerNotificationListener(this)); }
/** * Injects services. */ public void initialize() { this.rpcRegistration = FabMgrDatastoreDependency.getRpcRegistry().addRpcImplementation(VcNetNodeService.class, this); this.epService = FabMgrDatastoreDependency.getRpcRegistry().getRpcService(FabricEndpointService.class); this.fabServiceService = FabMgrDatastoreDependency.getRpcRegistry().getRpcService(FabricServiceService.class); this.fabService = FabMgrDatastoreDependency.getRpcRegistry().getRpcService(FabricService.class); }
private void store(StoreTSDRMetricRecordInput input) { TSDRService tsdrService = this.rpcRegistry .getRpcService(TSDRService.class); tsdrService.storeTSDRMetricRecord(input); log("Data Storage called", DEBUG); }
public TSDRPurgeServiceImpl(DataBroker _dataBroker, RpcProviderRegistry _rpcRegistry) { this.dataBroker = _dataBroker; this.rpcRegistry = _rpcRegistry; if (tsdrService == null) { tsdrService = this.rpcRegistry.getRpcService(TSDRService.class); } PurgingScheduler.getInstance().setRpcRegistry(_rpcRegistry); }
public TsdrCollectorSpiService getTSDRCollectorSPIService(){ getDataBrokerDependency(); if(collectorSPIService==null){ collectorSPIService = getRpcRegistryDependency().getRpcService(TsdrCollectorSpiService.class); } return this.collectorSPIService; } }
private void store(InsertTSDRMetricRecordInput input) { if(this.collectorSPIService==null){ this.collectorSPIService = this.rpcRegistry .getRpcService(TsdrCollectorSpiService.class); } this.collectorSPIService.insertTSDRMetricRecord(input); log("Data Storage Called from SNMP Collector", DEBUG); }
@Override public void onSessionInitiated(ProviderContext session) { LOG.info("LFMDBSERVICE IS BEING FILLED! SESSION INITIATED"); RpcProviderRegistry rpcRegistry = session.getSALService(RpcProviderRegistry.class); lfmDbService = rpcRegistry.getRpcService(OdlMappingserviceService.class); broker = session.getSALService(DataBroker.class); DelegatingDataTreeListener.initiateListener(Network.class, this, broker); DelegatingDataTreeListener.initiateListener(Subnet.class, this, broker); DelegatingDataTreeListener.initiateListener(Port.class, this, broker); LOG.debug("LFMDBSERVICE was FILLED! SESSION INITIATED"); }
@Override public void onSessionInitiated(ProviderContext session) { LOG.info("ResourceManagerserviceProvider Session Initiated"); dataBroker = session.getSALService(DataBroker.class); idManager = rpcProviderRegistry.getRpcService(IdManagerService.class); resourceManager = new ResourceManager(dataBroker, idManager); rpcRegistration = rpcProviderRegistry.addRpcImplementation(ResourceManagerService.class, resourceManager); createIdpools(); }
@Override public java.lang.AutoCloseable createInstance() { getDataBrokerDependency(); TSDRNetflowCollectorImpl impl = null; try { impl = new TSDRNetflowCollectorImpl(getRpcRegistryDependency().getRpcService(TsdrCollectorSpiService.class)); } catch (IOException e) { e.printStackTrace(); } return new ModuleAutoCloseable(impl); }
public EventSourceTopology(final DataBroker dataBroker, final RpcProviderRegistry rpcRegistry) { this.dataBroker = dataBroker; this.rpcRegistry = rpcRegistry; aggregatorRpcReg = rpcRegistry.addRpcImplementation(EventAggregatorService.class, this); eventSourceService = rpcRegistry.getRpcService(EventSourceService.class); final TopologyEventSource topologySource = new TopologyEventSourceBuilder().build(); final TopologyTypes1 topologyTypeAugment = new TopologyTypes1Builder().setTopologyEventSource(topologySource).build(); putData(OPERATIONAL, TOPOLOGY_TYPE_PATH, topologyTypeAugment); LOG.info("EventSourceRegistry has been initialized"); }
@Override public java.lang.AutoCloseable createInstance() { LockManagerService lockManagerService = getRpcRegistryDependency().getRpcService(LockManagerService.class); IdManagerServiceProvider provider = new IdManagerServiceProvider(getRpcRegistryDependency()); provider.setLockManager(lockManagerService); getBrokerDependency().registerProvider(provider); return provider; }
@Override public java.lang.AutoCloseable createInstance() { LockManagerService lockManagerService = getRpcRegistryDependency().getRpcService(LockManagerService.class); IdManagerServiceProvider provider = new IdManagerServiceProvider(getRpcRegistryDependency()); provider.setLockManager(lockManagerService); getBrokerDependency().registerProvider(provider); return provider; }
@Override public java.lang.AutoCloseable createInstance() { IdManagerService idManagerService = getRpcRegistryDependency().getRpcService(IdManagerService.class); ResourceManagerServiceProvider provider = new ResourceManagerServiceProvider(getRpcRegistryDependency()); provider.setIdManager(idManagerService); provider.setRpcProviderRegistry(getRpcRegistryDependency()); getBrokerDependency().registerProvider(provider); return provider; }
@Override public java.lang.AutoCloseable createInstance() { RpcProviderRegistry rpcregistryDependency = getRpcregistryDependency(); DhcpProvider dhcpProvider = new DhcpProvider(); dhcpProvider.setNotificationProviderService(getNotificationServiceDependency()); dhcpProvider.setMdsalManager(getMdsalutilDependency()); dhcpProvider.setNeutronVpnManager(getNeutronvpnDependency()); dhcpProvider.setInterfaceManagerRpc(rpcregistryDependency.getRpcService(OdlInterfaceRpcService.class)); getBrokerDependency().registerProvider(dhcpProvider); return dhcpProvider; }