Search in sources :

Example 1 with BindingDOMMountPointServiceAdapter

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();
}
Also used : BindingDOMRpcServiceAdapter(org.opendaylight.controller.md.sal.binding.impl.BindingDOMRpcServiceAdapter) HeliumRpcProviderRegistry(org.opendaylight.controller.md.sal.binding.compat.HeliumRpcProviderRegistry) BindingDOMRpcProviderServiceAdapter(org.opendaylight.controller.md.sal.binding.impl.BindingDOMRpcProviderServiceAdapter) BindingDOMMountPointServiceAdapter(org.opendaylight.controller.md.sal.binding.impl.BindingDOMMountPointServiceAdapter) DOMMountPointService(org.opendaylight.controller.md.sal.dom.api.DOMMountPointService) MountPointService(org.opendaylight.controller.md.sal.binding.api.MountPointService) RootBindingAwareBroker(org.opendaylight.controller.sal.binding.impl.RootBindingAwareBroker)

Aggregations

MountPointService (org.opendaylight.controller.md.sal.binding.api.MountPointService)1 HeliumRpcProviderRegistry (org.opendaylight.controller.md.sal.binding.compat.HeliumRpcProviderRegistry)1 BindingDOMMountPointServiceAdapter (org.opendaylight.controller.md.sal.binding.impl.BindingDOMMountPointServiceAdapter)1 BindingDOMRpcProviderServiceAdapter (org.opendaylight.controller.md.sal.binding.impl.BindingDOMRpcProviderServiceAdapter)1 BindingDOMRpcServiceAdapter (org.opendaylight.controller.md.sal.binding.impl.BindingDOMRpcServiceAdapter)1 DOMMountPointService (org.opendaylight.controller.md.sal.dom.api.DOMMountPointService)1 RootBindingAwareBroker (org.opendaylight.controller.sal.binding.impl.RootBindingAwareBroker)1