本文整理汇总了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();
}
示例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) {
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));
}
示例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");
}
示例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);
}
}