本文整理汇总了Java中org.opendaylight.controller.sal.binding.api.NotificationProviderService类的典型用法代码示例。如果您正苦于以下问题:Java NotificationProviderService类的具体用法?Java NotificationProviderService怎么用?Java NotificationProviderService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NotificationProviderService类属于org.opendaylight.controller.sal.binding.api包,在下文中一共展示了NotificationProviderService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createInstance
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
BindingAwareBroker bindingAwareBroker = getBindingAwareBrokerDependency();
DataBroker dataBrokerService = getDataBrokerDependency();
RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();
NotificationProviderService notificationService = getNotificationServiceDependency();
Preconditions.checkNotNull(bindingAwareBroker);
Preconditions.checkNotNull(dataBrokerService);
Preconditions.checkNotNull(rpcProviderRegistry);
Preconditions.checkNotNull(notificationService);
MyRouterOrchestrator orchestrator = new MyRouterOrchestrator(bindingAwareBroker, dataBrokerService, notificationService, rpcProviderRegistry);
LOG.info("Tutorial NetconfExercise (instance {}) initialized.", orchestrator);
return orchestrator;
}
示例2: start
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
public void start() {
checkState(controllerRoot == null, "Binding Aware Broker was already started.");
LOG.info("Starting Binding Aware Broker: {}", identifier);
controllerRoot = new RootSalInstance(getRpcProviderRegistry(), getNotificationBroker());
final ImmutableClassToInstanceMap.Builder<BindingAwareService> consBuilder = ImmutableClassToInstanceMap
.builder();
consBuilder.put(NotificationService.class, getRoot());
consBuilder.put(RpcConsumerRegistry.class, getRoot());
if (dataBroker != null) {
consBuilder.put(DataBroker.class, dataBroker);
}
consBuilder.put(MountPointService.class, mountService);
supportedConsumerServices = consBuilder.build();
final ImmutableClassToInstanceMap.Builder<BindingAwareService> provBuilder = ImmutableClassToInstanceMap
.builder();
provBuilder.putAll(supportedConsumerServices).put(NotificationProviderService.class, getRoot())
.put(RpcProviderRegistry.class, getRoot());
if (notificationPublishService != null) {
provBuilder.put(NotificationPublishService.class, notificationPublishService);
}
supportedProviderServices = provBuilder.build();
}
示例3: createInstance
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
DataBroker dataBrokerService = getDataBrokerDependency();
RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();
NotificationProviderService notificationService = getNotificationServiceDependency();
NegotiatorProvider provider = new NegotiatorProvider(dataBrokerService, rpcProviderRegistry, notificationService);
notificationService.registerNotificationListener(new TopologyChangeListenerImpl());
return provider;
}
示例4: NegotiatorProvider
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
public NegotiatorProvider(DataBroker dataBroker, RpcProviderRegistry rpcProviderRegistry,
NotificationProviderService notificationService) {
this.dataBroker = dataBroker;
this.salFlowService = rpcProviderRegistry.getRpcService(SalFlowService.class);
this.notificationService = notificationService;
this.negotiatorService = rpcProviderRegistry.addRpcImplementation(NegotiatorService.class,
new QoSNegotiatorImpl(salFlowService, dataBroker));
}
示例5: createInstance
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
DataBroker dataBrokerService = getDataBrokerDependency();
RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();
NotificationProviderService notificationService = getNotificationServiceDependency();
MonitoringProvider provider = new MonitoringProvider(dataBrokerService, rpcProviderRegistry, notificationService);
InstanceIdentifier<Link> linkInstance = InstanceIdentifier.builder(NetworkTopology.class)
.child(Topology.class, new TopologyKey(new TopologyId("flow:1"))).child(Link.class).build();
dataBrokerService.registerDataChangeListener(LogicalDatastoreType.OPERATIONAL, linkInstance,
new TopologyListener(dataBrokerService, notificationService),
AsyncDataBroker.DataChangeScope.BASE);
return provider;
}
示例6: setServices
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
public void setServices(DataBroker dataService, RoutingConfigService configService,
PacketProcessingService packetService, NotificationProviderService notificationService) {
this.dataService = dataService;
this.configService = configService;
this.packetService = packetService;
this.notificationService = notificationService;
}
示例7: createInstance
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
//Get all MD-SAL provider objects
DataBroker dataBroker = getDataBrokerDependency();
RpcProviderRegistry rpcRegistry = getRpcRegistryDependency();
NotificationProviderService notificationService = getNotificationServiceDependency();
TutorialACL tutorialACL = new TutorialACL(dataBroker, notificationService, rpcRegistry);
LOG.info("Tutorial Access Control List (instance {}) initialized.", tutorialACL);
return tutorialACL;
}
示例8: TutorialACL
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
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));
}
示例9: createInstance
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
//Get all MD-SAL provider objects
DataBroker dataBroker = getDataBrokerDependency();
RpcProviderRegistry rpcRegistry = getRpcRegistryDependency();
NotificationProviderService notificationService = getNotificationServiceDependency();
TutorialL2Forwarding tutorialL2Forwarding = new TutorialL2Forwarding(dataBroker, notificationService, rpcRegistry);
LOG.info("Tutorial Learning Switch (instance {}) initialized.", tutorialL2Forwarding);
return tutorialL2Forwarding;
}
示例10: TutorialL2Forwarding
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
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));
}
示例11: TutorialTapProvider
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
public TutorialTapProvider(DataBroker dataBroker, NotificationProviderService notificationService, RpcProviderRegistry rpcProviderRegistry) {
//Store the data broker for reading/writing from inventory store
this.dataBroker = dataBroker;
//Object used for flow programming through RPC calls
this.salFlowService = rpcProviderRegistry.getRpcService(SalFlowService.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 New switches
registrations.add(notificationService.registerNotificationListener(this));
}
示例12: createInstance
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
@Override
public java.lang.AutoCloseable createInstance() {
DataBroker dataBrokerService = getDataBrokerDependency();
RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();
NotificationProviderService notificationService = getNotificationServiceDependency();
Preconditions.checkNotNull(dataBrokerService);
Preconditions.checkNotNull(rpcProviderRegistry);
Preconditions.checkNotNull(notificationService);
TutorialTapProvider tapProvider = new TutorialTapProvider(dataBrokerService, notificationService, rpcProviderRegistry);
LOG.info("Tutorial TapApp (instance {}) initialized.", tapProvider);
return tapProvider;
}
示例13: MyRouterOrchestrator
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
public MyRouterOrchestrator(BindingAwareBroker bindingAwareBroker, DataBroker dataBroker, NotificationProviderService notificationService, RpcProviderRegistry rpcProviderRegistry) {
//Register this object as a provider for receiving session context
bindingAwareBroker.registerProvider(this);
//Register this object as listener for changes in netconf topology
InstanceIdentifier<Topology> netconfTopoIID = InstanceIdentifier.builder(NetworkTopology.class)
.child(Topology.class, new TopologyKey(new TopologyId(TopologyNetconf.QNAME.getLocalName())))
.build();
registrations.add(dataBroker.registerDataChangeListener(LogicalDatastoreType.OPERATIONAL, netconfTopoIID.child(Node.class), this, DataChangeScope.SUBTREE));
}
示例14: getProvidedServices
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
@Override
public Set<Class<? extends BindingAwareService>> getProvidedServices() {
Set<Class<? extends BindingAwareService>> ret = new HashSet<Class<? extends BindingAwareService>>();
ret.add(NotificationService.class);
ret.add(NotificationProviderService.class);
return ret;
}
示例15: onBISessionAvailable
import org.opendaylight.controller.sal.binding.api.NotificationProviderService; //导入依赖的package包/类
@Override
public void onBISessionAvailable(ProviderSession session) {
biSession = session;
if (biSession != null) {
biNotifyService = session
.getService(org.opendaylight.controller.sal.core.api.notify.NotificationProviderService.class);
}
}