c33659ae1e5c7fc091dea42989b781bb5606edc6
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / main / resources / OSGI-INF / blueprint / remote-rpc.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:restart-dependents-on-updates="false" odl:use-default-for-reference-types="true">
6
7   <cm:property-placeholder persistent-id="org.opendaylight.controller.remoterpc" update-strategy="none">
8     <cm:default-properties>
9       <cm:property name="enable-metric-capture" value="false"/>
10       <cm:property name="bounded-mailbox-capacity" value="1000"/>
11     </cm:default-properties>
12   </cm:property-placeholder>
13
14   <reference id="actorSystemProvider" interface="org.opendaylight.controller.cluster.ActorSystemProvider" />
15   <reference id="domRpcService" interface="org.opendaylight.mdsal.dom.api.DOMRpcService"/>
16   <reference id="domRpcRegistry" interface="org.opendaylight.mdsal.dom.api.DOMRpcProviderService"/>
17   <reference id="domActionService" interface="org.opendaylight.mdsal.dom.api.DOMActionService"/>
18   <reference id="domActionRegistry" interface="org.opendaylight.mdsal.dom.api.DOMActionProviderService"/>
19
20   <bean id="actorSystem" factory-ref="actorSystemProvider" factory-method="getActorSystem"/>
21
22   <bean id="remoteOpsProviderConfig" class="org.opendaylight.controller.remote.rpc.RemoteOpsProviderConfig"
23           factory-method="newInstance">
24     <argument>
25       <bean factory-ref="actorSystem" factory-method="name"/>
26     </argument>
27     <argument value="${enable-metric-capture}"/>
28     <argument value="${bounded-mailbox-capacity}"/>
29   </bean>
30
31   <bean id="remoteOpsProvider" class="org.opendaylight.controller.remote.rpc.RemoteOpsProviderFactory"
32           factory-method="createInstance" init-method="start" destroy-method="close">
33     <argument ref="domRpcRegistry"/>
34     <argument ref="domRpcService"/>
35     <argument ref="actorSystem"/>
36     <argument ref="remoteOpsProviderConfig"/>
37     <argument ref="domActionRegistry"/>
38     <argument ref="domActionService"/>
39   </bean>
40
41 </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.