Add singleton service based global rpc
[controller.git] / opendaylight / md-sal / samples / clustering-test-app / provider / src / main / resources / org / opendaylight / blueprint / cluster-test-app.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
3            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
4            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
5     odl:use-default-for-reference-types="true">
6
7   <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"/>
8   <reference id="notificationService" interface="org.opendaylight.controller.sal.binding.api.NotificationProviderService"/>
9   <reference id="entityOwnershipService" interface="org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService"/>
10   <reference id="bindingRpcRegistry" interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"/>
11   <reference id="clusterSingletonService" interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
12
13   <bean id="purchaseCarProvider" class="org.opendaylight.controller.clustering.it.provider.PurchaseCarProvider" >
14     <property name="notificationProvider" ref="notificationService"/>
15   </bean>
16
17   <odl:routed-rpc-implementation id="carPurchaseRpcReg" ref="purchaseCarProvider"/>
18
19   <bean id="peopleProvider" class="org.opendaylight.controller.clustering.it.provider.PeopleProvider" >
20     <property name="dataProvider" ref="dataBroker"/>
21     <property name="rpcRegistration" ref="carPurchaseRpcReg"/>
22   </bean>
23
24   <bean id="carProvider" class="org.opendaylight.controller.clustering.it.provider.CarProvider" >
25     <argument ref="dataBroker"/>
26     <argument ref="entityOwnershipService"/>
27   </bean>
28
29   <odl:rpc-implementation ref="carProvider"/>
30   <odl:rpc-implementation ref="peopleProvider"/>
31
32   <bean id="peopleCarListener" class="org.opendaylight.controller.clustering.it.listener.PeopleCarListener" >
33     <property name="dataProvider" ref="dataBroker"/>
34   </bean>
35
36   <odl:notification-listener ref="peopleCarListener"/>
37
38   <bean id="basicTestProvider" class="org.opendaylight.controller.clustering.it.provider.BasicRpcTestProvider">
39     <argument ref="bindingRpcRegistry"/>
40     <argument ref="clusterSingletonService"/>
41   </bean>
42
43 </blueprint>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.