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


Java ProviderContext.addRpcImplementation方法代码示例

本文整理汇总了Java中org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext.addRpcImplementation方法的典型用法代码示例。如果您正苦于以下问题:Java ProviderContext.addRpcImplementation方法的具体用法?Java ProviderContext.addRpcImplementation怎么用?Java ProviderContext.addRpcImplementation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext的用法示例。


在下文中一共展示了ProviderContext.addRpcImplementation方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onSessionInitiated

import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext; //导入方法依赖的package包/类
@Override
public void onSessionInitiated(ProviderContext session) {
    LOG.info("ExampleProvider Session Initiated");
    DataBroker db = session.getSALService(DataBroker.class);
    exampleService = session.addRpcImplementation(OdlexampleService.class, new ExampleImpl(db));

    ApplicationRegistryUtils.getInstance().setDb(db);
    ApplicationRegistryUtils.getInstance().initializeDataTree();

    SalFlowService salFlowService = session.getRpcService(SalFlowService.class);
    SwitchConfigurator.getInstance().setDb(db);
    SwitchConfigurator.getInstance().setSalFlowService(salFlowService);

    NetworkGraphImpl.getInstance().setDb(db);
    NetworkGraphImpl.getInstance().init();

}
 
开发者ID:geopet85,项目名称:odlexample,代码行数:18,代码来源:ExampleProvider.java

示例2: onSessionInitiated

import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext; //导入方法依赖的package包/类
@Override
public void onSessionInitiated(ProviderContext session) {
    LOG.info("HelloProvider Session Initiated");
    db = session.getSALService(DataBroker.class);
    helloService = session.addRpcImplementation(HelloService.class, this);

    initializeDataTree(db);
}
 
开发者ID:lrodrin,项目名称:opendaylight,代码行数:9,代码来源:HelloProvider.java

示例3: onSessionInitiated

import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext; //导入方法依赖的package包/类
@Override
public void onSessionInitiated(ProviderContext session) {
    LOG.info("NetideProvider Session Initiated");
    connectionProvider = new SwitchConnectionProviderImpl();
    coreConnector = new ZeroMQBaseConnector();

    ShimSwitchConnectionHandlerImpl handler = new ShimSwitchConnectionHandlerImpl(coreConnector,
            notificationProviderService);
    handler.init();

    coreConnector.RegisterCoreListener(handler);
    coreConnector.setAddress(coreAddress);
    coreConnector.setPort(corePort);

    connectionProvider.setSwitchConnectionHandler(handler);

    connectionProvider.setConfiguration(conf);
    coreConnector.Start();
    connectionProvider.startup();

    netideService = session.addRpcImplementation(NetideService.class, new StatusImpl(handler));
}
 
开发者ID:fp7-netide,项目名称:Engine,代码行数:23,代码来源:NetideProvider.java

示例4: onSessionInitiated

import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext; //导入方法依赖的package包/类
@Override
public void onSessionInitiated(ProviderContext session) {
	service = session.addRpcImplementation(SdnaService.class, new SdnaImpl());
	dataBroker = session.getSALService(DataBroker.class);
	LOG.info("SdnaProvider Session Initiated");
}
 
开发者ID:hashcms,项目名称:sdna,代码行数:7,代码来源:SdnaProvider.java

示例5: onSessionInitiated

import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext; //导入方法依赖的package包/类
@Override
public void onSessionInitiated(ProviderContext providerContext) {
    try {
        this.providerContext = providerContext;
        service.setNotificationProvider(this.providerContext
                .getSALService(NotificationProviderService.class));
        registration = providerContext.addRpcImplementation(
                HelloService.class, service);
        log.info(
                "Registered 'HelloService' implementation '{}' with registration '{}'",
                service, registration);
    } catch (IllegalStateException e) {
        log.error("Unable to register 'HelloService' implementation", e);
    }
}
 
开发者ID:davidkbainbridge,项目名称:odl-sample-service,代码行数:16,代码来源:HelloProvider.java


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