|
79 | 79 | import org.opendaylight.mdsal.binding.api.MountPointService;
|
80 | 80 | import org.opendaylight.mdsal.binding.api.NotificationPublishService;
|
81 | 81 | import org.opendaylight.mdsal.binding.api.NotificationService;
|
| 82 | +import org.opendaylight.mdsal.binding.api.RpcConsumerRegistry; |
82 | 83 | import org.opendaylight.mdsal.binding.api.RpcProviderService;
|
83 | 84 | import org.opendaylight.mdsal.binding.dom.adapter.BindingAdapterFactory;
|
84 | 85 | import org.opendaylight.mdsal.binding.dom.adapter.BindingDOMMountPointServiceAdapter;
|
@@ -196,6 +197,7 @@ public class LightyControllerImpl extends AbstractLightyModule implements Lighty
|
196 | 197 | private AkkaManagement akkaManagement;
|
197 | 198 | private Optional<ClusteringHandler> clusteringHandler;
|
198 | 199 | private Optional<InitialConfigData> initialConfigData;
|
| 200 | + private RpcConsumerRegistry rpcConsumerRegistry; |
199 | 201 |
|
200 | 202 |
|
201 | 203 | public LightyControllerImpl(final ExecutorService executorService, final Config actorSystemConfig,
|
@@ -306,6 +308,7 @@ protected boolean initProcedure() {
|
306 | 308 | this.actionProviderService = this.bindingAdapterFactory.createActionProviderService(
|
307 | 309 | this.domActionProviderService);
|
308 | 310 | this.actionService = bindingAdapterFactory.createActionService(this.domActionService);
|
| 311 | + rpcConsumerRegistry = bindingAdapterFactory.createRpcConsumerRegistry(domRpcRouter.getRpcService()); |
309 | 312 |
|
310 | 313 | this.rpcProviderService = new BindingDOMRpcProviderServiceAdapter(this.codec,
|
311 | 314 | this.domRpcRouter.getRpcProviderService());
|
@@ -664,6 +667,11 @@ public ActionProviderService getActionProviderService() {
|
664 | 667 | return actionProviderService;
|
665 | 668 | }
|
666 | 669 |
|
| 670 | + @Override |
| 671 | + public RpcConsumerRegistry getRpcConsumerRegistry() { |
| 672 | + return rpcConsumerRegistry; |
| 673 | + } |
| 674 | + |
667 | 675 | @Override
|
668 | 676 | public ActionService getActionService() {
|
669 | 677 | return actionService;
|
|
0 commit comments