public void onSessionInitiated(ProviderContext session) { pc = session; notificationService = session.getSALService(NotificationService.class); // For switch events listenerReg = notificationService.registerNotificationListener(portEventListener); dataBroker = session.getSALService(DataBroker.class); }
@Override protected final void onBrokerAvailable(BindingAwareBroker broker, BundleContext context) { ProviderContext ctx = broker.registerProvider(this, context); } }
@Override public void modifiedService(ServiceReference<BindingAwareBroker> reference, BindingAwareBroker service) { removedService(reference, service); addingService(reference); }
@Override public void close() throws Exception { rpcRegistration.close(); } }
public NEMORenderer(DataBroker dataBroker0, RpcProviderRegistry rpcProviderRegistry0) { this.dataBroker = dataBroker0; this.rpcProviderRegistry = rpcProviderRegistry0; this.nemoEngine = rpcProviderRegistry.getRpcService(NemoIntentService.class); }
@Override protected void removeRegistration() { groupRegistration1.close(); } };
@Override protected final void onBrokerAvailable(BindingAwareBroker broker, BundleContext context) { broker.registerConsumer(this, context); } }
private void notifyListener(final NotificationInterestListener listener, final Set<Class<? extends Notification>> baEvent) { for(final Class<? extends Notification> event: baEvent) { listener.onNotificationSubscribtion(event); } }
@Override protected final void onBrokerAvailable(BindingAwareBroker broker, BundleContext context) { broker.registerProvider(this, context); } }
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 void close() throws Exception { registry.close(); } };
public TsdrCollectorSpiService getTSDRService(){ if(this.collectorSPIService==null){ this.collectorSPIService = this.rpcRegistry .getRpcService(TsdrCollectorSpiService.class); } return this.collectorSPIService; }
@Override protected void removeRegistration() { flowRegistration2.close(); } };
@Override public void modifiedService(ServiceReference<BindingAwareBroker> reference, BindingAwareBroker service) { removedService(reference, service); addingService(reference); }
public void destroy() { for(RpcRegistration<RpcService> reg: rpcRegistrations) { reg.close(); } }
@Override protected void removeRegistration() { meterRegistration1.close(); } };
@Override public void close() throws Exception { addRpcImplementation.close(); } };
@Override protected void removeRegistration() { for (RoutedRpcRegistration<?> r : registrations) { r.close(); } } };
@Override public void close() throws Exception { if (rpcRegistration != null) { rpcRegistration.close(); } }
@Override public void onDeviceContextClosed(DeviceContext deviceContext) { for (RoutedRpcRegistration<?> registration : rpcRegistrations) { registration.close(); } } }