public void onSessionInitiated(ProviderContext session) { pc = session; dataBroker = session.getSALService(DataBroker.class); ctx.registerService(CommandProvider.class.getName(), this, null); // createTestNode(); // createTestTableFeatures(); }
public VppNodeManager(DataBroker dataBroker, BindingAwareBroker.ProviderContext session) { this.dataBroker = Preconditions.checkNotNull(dataBroker); mountService = Preconditions.checkNotNull(session.getSALService(MountPointService.class)); requiredCapabilities = initializeRequiredCapabilities(); }
@Override public void onSessionInitiated(ProviderContext session) { LOG.info("AltoResourcesProvider Session Initiated"); m_dataBroker = session.getSALService(DataBroker.class); assert m_dataBroker != null; try { createDefaultContext(); } catch (Exception e) { LOG.error("Failed to create top-level containers for ALTO services"); } }
public void onSessionInitiated(ProviderContext session) { pc = session; notificationService = session.getSALService(NotificationService.class); // For switch events listenerReg = notificationService.registerNotificationListener(topologyEventListener); dataBroker = session.getSALService(DataBroker.class); }
@Override public java.lang.AutoCloseable createInstance() { final BindingAwareBroker.ProviderContext bindingCtx = getBindingBrokerDependency().registerProvider(new Providers.BindingAware()); final Broker.ProviderSession domCtx = getDomBrokerDependency().registerProvider(new Providers.BindingIndependent()); final MountPointService mountPointService = bindingCtx.getSALService(MountPointService.class); final DataBroker dataBroker = bindingCtx.getSALService(DataBroker.class); final DOMNotificationPublishService domPublish = domCtx.getService(DOMNotificationPublishService.class); final DOMMountPointService domMount = domCtx.getService(DOMMountPointService.class); return NetconfEventSourceManager.create(dataBroker, domPublish, domMount, mountPointService, getEventSourceRegistryDependency(), getNamespaceToStream()); }
public void onSessionInitiated(ProviderContext session) { pc = session; notificationService = session.getSALService(NotificationService.class); listener2Reg = notificationService.registerNotificationListener(nodeErrorListener); dataBroker = session.getSALService(DataBroker.class); ctx.registerService(CommandProvider.class.getName(), this, null); createTestFlow(createTestNode(null), null, null); }
@Override public void onSessionInitiated(BindingAwareBroker.ProviderContext session) { dataBroker = session.getSALService(DataBroker.class); notificationRegistration = netconfNotificationCollector.registerStreamListener(this); }
/** * Get a DataBroker and assert that it is not null. * @param providerContext ProviderContext from which to retrieve the DataBroker * @return the Databroker */ public static DataBroker getDatabroker(BindingAwareBroker.ProviderContext providerContext) { DataBroker dataBroker = providerContext.getSALService(DataBroker.class); assertNotNull("dataBroker should not be null", dataBroker); return dataBroker; }
public void onSessionInitiated(ProviderContext session) { pc = session; notificationService = session.getSALService(NotificationService.class); listener2Reg = notificationService.registerNotificationListener(nodeErrorListener); dataBroker = session.getSALService(DataBroker.class); ctx.registerService(CommandProvider.class.getName(), this, null); createTestFlow(createTestNode(null), null, null); }
public void onSessionInitiated(final ProviderContext session) { notificationService = session.getSALService(NotificationService.class); // For switch events notificationService.registerNotificationListener(flowEventListener); notificationService.registerNotificationListener(nodeErrorListener); dataBroker = session.getSALService(DataBroker.class); ctx.registerService(CommandProvider.class.getName(), this, null); createTestFlow(createTestNode(null), null, null); }
@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 void onSessionInitiated(ProviderContext session) { LOG.info("RpcbenchmarkProvider Session Initiated"); consumerRegistry = session.getSALService(RpcConsumerRegistry.class); providerRegistry = session.getSALService(RpcProviderRegistry.class); // Register the benchmark Global RPC session.addRpcImplementation(RpcbenchPayloadService.class, gServer); // Register RPC Benchmark's control REST API session.addRpcImplementation(RpcbenchmarkService.class, this); }
public void onSessionInitiated(final ProviderContext session) { LOG.debug("Activator DropAllPack INIT"); provider.setDataService(session.<DataBroker>getSALService(DataBroker.class)); provider.setNotificationService(session.<NotificationService>getSALService(NotificationService.class)); rpcProvider.setNotificationService(session.<NotificationService>getSALService(NotificationService.class)); rpcProvider.setFlowService(session.<SalFlowService>getRpcService(SalFlowService.class)); outCmdProvider.onSessionInitiated(session); LOG.debug("Activator DropAllPack END"); }
@Override public void onSessionInitiated(ProviderContext session) { LOG.info("AltoSpceProvider Session Initiated!"); SalFlowService salFlowService = session.getRpcService(SalFlowService.class); SalMeterService salMeterServer = session.getRpcService(SalMeterService.class); NetworkTrackerService networkTrackerService = session.getRpcService(NetworkTrackerService.class); DataBroker dataBroker = session.getSALService(DataBroker.class); altoSpceService = session.addRpcImplementation(AltoSpceService.class, new AltoSpceImpl(salMeterServer,networkTrackerService, dataBroker)); }
public void onSessionInitiated(ProviderContext session) { pc = session; dataBroker = session.getSALService(DataBroker.class); ctx.registerService(CommandProvider.class.getName(), this, null); createTestNode(); }
@Override public void onSessionInitiated(final BindingAwareBroker.ProviderContext providerContext) { dataBroker = providerContext.getSALService(DataBroker.class); serverMonitoringDependency.registerListener(this); } }
@Override public java.lang.AutoCloseable createInstance() { final ProviderContext bindingCtx = getBindingBrokerDependency().registerProvider(new Providers.BindingAware()); final DataBroker dataBroker = bindingCtx.getSALService(DataBroker.class); final RpcProviderRegistry rpcRegistry = bindingCtx.getSALService(RpcProviderRegistry.class); final EventSourceTopology eventSourceTopology = new EventSourceTopology(dataBroker, rpcRegistry); LOGGER.info("Messagebus initialized"); return eventSourceTopology; }
@Override public void onSessionInitiated(ProviderContext session) { session.addRpcImplementation(Onem2mbenchmarkService.class, this); onem2mService = session.getRpcService(Onem2mService.class); this.dataBroker = session.getSALService(DataBroker.class); setTestOperData(this.execStatus.get()); LOG.info("Onem2mbenchmarkProvider Session Initiated"); }
public void onSessionInitiated(ProviderContext session) { pc = session; dataBroker = session.getSALService(DataBroker.class); ctx.registerService(CommandProvider.class.getName(), this, null); notificationService = session.getSALService(NotificationService.class); // For switch events listener1Reg = notificationService.registerNotificationListener(meterEventListener); createTestNode(); createTestMeter(); }
@Override public void onSessionInitiated(ProviderContext session) { LOG.info("NetworkTrackerProvider Session Initiated"); dataBroker = session.getSALService(DataBroker.class); networkTrackerRpcHandler = new NetworkTrackerRpcHandler(dataBroker); networkTrackerService = session.addRpcImplementation(NetworkTrackerService.class, networkTrackerRpcHandler); }