e6d19a19c69c6b70cc0342b74d2a6683830cb101
[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
18   <bean id="actorSystem" factory-ref="actorSystemProvider" factory-method="getActorSystem"/>
19
20   <bean id="remoteRpcProviderConfig" class="org.opendaylight.controller.remote.rpc.RemoteRpcProviderConfig"
21           factory-method="newInstance">
22     <argument>
23       <bean factory-ref="actorSystem" factory-method="name"/>
24     </argument>
25     <argument value="${enable-metric-capture}"/>
26     <argument value="${bounded-mailbox-capacity}"/>
27   </bean>
28
29   <bean id="remoteRpcProvider" class="org.opendaylight.controller.remote.rpc.RemoteRpcProviderFactory"
30           factory-method="createInstance" init-method="start" destroy-method="close">
31     <argument ref="domRpcRegistry"/>
32     <argument ref="domRpcService"/>
33     <argument ref="actorSystem"/>
34     <argument ref="remoteRpcProviderConfig"/>
35   </bean>
36
37 </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.