use of org.opendaylight.controller.md.sal.binding.impl.BindingDOMMountPointServiceAdapter in project controller by opendaylight.
the class BindingTestContext method startBindingBroker.
public void startBindingBroker() {
checkState(this.executor != null, "Executor needs to be set");
checkState(this.baNotifyImpl != null, "Notification Service must be started");
this.baConsumerRpc = new BindingDOMRpcServiceAdapter(getDomRpcInvoker(), this.codec);
this.baProviderRpc = new BindingDOMRpcProviderServiceAdapter(getDomRpcRegistry(), this.codec);
this.baBrokerImpl = new RootBindingAwareBroker("test");
final MountPointService mountService = new BindingDOMMountPointServiceAdapter(this.biMountImpl, this.codec);
this.baBrokerImpl.setMountService(mountService);
this.baBrokerImpl.setRpcBroker(new HeliumRpcProviderRegistry(this.baConsumerRpc, this.baProviderRpc));
this.baBrokerImpl.setNotificationBroker(this.baNotifyImpl);
this.baBrokerImpl.start();
}
Aggregations