本文整理汇总了Java中org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext.getSALService方法的典型用法代码示例。如果您正苦于以下问题:Java ProviderContext.getSALService方法的具体用法?Java ProviderContext.getSALService怎么用?Java ProviderContext.getSALService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext
的用法示例。
在下文中一共展示了ProviderContext.getSALService方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例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);
}
示例3: 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");
}
示例4: onSessionInitiated
import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext; //导入方法依赖的package包/类
@Override
public void onSessionInitiated(ProviderContext session) {
// Get the mount service provider
this.mountService = session.getSALService(MountPointService.class);
}