- checkState(baData != null, "Binding Data Broker needs to be started");
- checkState(biDataLegacyBroker != null, "DOM Data Broker needs to be started.");
- checkState(mappingServiceImpl != null, "DOM Mapping Service needs to be started.");
-
- baConnectImpl = BindingDomConnectorDeployer.createConnector(getBindingToDomMappingService());
- baConnectImpl.setDomRpcRegistry(getDomRpcRegistry());
- baBrokerImpl.setConnector(baConnectImpl);
- baBrokerImpl.setDomProviderContext(createMockContext());
- baBrokerImpl.startForwarding();
- }
-
- private ProviderSession createMockContext() {
-
- @SuppressWarnings("deprecation")
- final ClassToInstanceMap<BrokerService> domBrokerServices = ImmutableClassToInstanceMap
- .<BrokerService> builder()
- //
- .put(org.opendaylight.controller.sal.core.api.data.DataProviderService.class, biDataLegacyBroker) //
- .put(RpcProvisionRegistry.class, biBrokerImpl.getRouter()) //
- .put(MountProvisionService.class, biMountImpl) //
- .build();