本文整理汇总了Java中org.opendaylight.controller.sal.binding.api.NotificationService类的典型用法代码示例。如果您正苦于以下问题:Java NotificationService类的具体用法?Java NotificationService怎么用?Java NotificationService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NotificationService类属于org.opendaylight.controller.sal.binding.api包,在下文中一共展示了NotificationService类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: start
import org.opendaylight.controller.sal.binding.api.NotificationService; //导入依赖的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();
}
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:28,代码来源:RootBindingAwareBroker.java
示例2: getProvidedServices
import org.opendaylight.controller.sal.binding.api.NotificationService; //导入依赖的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;
}
开发者ID:lbchen,项目名称:ODL,代码行数:9,代码来源:NotificationModule.java
示例3: onSessionInitialized
import org.opendaylight.controller.sal.binding.api.NotificationService; //导入依赖的package包/类
@Override
public void onSessionInitialized(ConsumerContext session) {
NotificationService notificationService = session
.getSALService(NotificationService.class);
registration = notificationService
.registerNotificationListener(new HelloListenerImpl());
}
开发者ID:davidkbainbridge,项目名称:odl-sample-service,代码行数:8,代码来源:HelloConsumer.java
示例4: AddressObserver
import org.opendaylight.controller.sal.binding.api.NotificationService; //导入依赖的package包/类
public AddressObserver(HostMonitor hostTrackerImpl, NotificationService notificationService) {
this.hostMonitor = hostTrackerImpl;
this.notificationService = notificationService;
}
开发者ID:onfsdn,项目名称:atrium-odl,代码行数:6,代码来源:AddressObserver.java
注:本文中的org.opendaylight.controller.sal.binding.api.NotificationService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论