当前位置: 首页>>代码示例>>Java>>正文


Java NotificationProviderService类代码示例

本文整理汇总了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;
}
 
开发者ID:sdnhub,项目名称:SDNHub_Opendaylight_Tutorial,代码行数:17,代码来源:TutorialNetconfExerciseModule.java

示例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();
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:28,代码来源:RootBindingAwareBroker.java

示例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;
}
 
开发者ID:geopet85,项目名称:virtuwind-example,代码行数:10,代码来源:NegotiatorModule.java

示例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));

}
 
开发者ID:geopet85,项目名称:virtuwind-example,代码行数:10,代码来源:NegotiatorProvider.java

示例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;
}
 
开发者ID:geopet85,项目名称:virtuwind-example,代码行数:16,代码来源:MonitoringModule.java

示例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;
}
 
开发者ID:onfsdn,项目名称:atrium-odl,代码行数:8,代码来源:HostServiceImpl.java

示例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;
}
 
开发者ID:sdnhub,项目名称:SDNHub_Opendaylight_Tutorial,代码行数:12,代码来源:TutorialACLModule.java

示例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));
}
 
开发者ID:sdnhub,项目名称:SDNHub_Opendaylight_Tutorial,代码行数:14,代码来源:TutorialACL.java

示例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;
}
 
开发者ID:sdnhub,项目名称:SDNHub_Opendaylight_Tutorial,代码行数:12,代码来源:TutorialLearningSwitchModule.java

示例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));
}
 
开发者ID:sdnhub,项目名称:SDNHub_Opendaylight_Tutorial,代码行数:14,代码来源:TutorialL2Forwarding.java

示例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));
}
 
开发者ID:sdnhub,项目名称:SDNHub_Opendaylight_Tutorial,代码行数:14,代码来源:TutorialTapProvider.java

示例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;
}
 
开发者ID:sdnhub,项目名称:SDNHub_Opendaylight_Tutorial,代码行数:15,代码来源:TutorialTapAppModule.java

示例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));
}
 
开发者ID:sdnhub,项目名称:SDNHub_Opendaylight_Tutorial,代码行数:11,代码来源:MyRouterOrchestrator.java

示例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;
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:9,代码来源:NotificationModule.java

示例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);
    }
}
 
开发者ID:lbchen,项目名称:ODL,代码行数:9,代码来源:NotificationModule.java


注:本文中的org.opendaylight.controller.sal.binding.api.NotificationProviderService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。