8c60682605e6f2534db9cc9bbdcb69cd67369368
[netconf.git] / netconf / netconf-topology-singleton / src / main / resources / org / opendaylight / blueprint / netconf-topology-singleton.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4 Copyright © 2016 Cisco Systems, Inc. and others. All rights reserved.
5
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
11            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
12            odl:use-default-for-reference-types="true">
13
14     <reference id="dataBroker"
15                interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"/>
16     <reference id="rpcRegistry"
17                interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"/>
18     <reference id="clusterSingletonService"
19                interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
20     <reference id="keepAliveExecutor"
21                interface="org.opendaylight.controller.config.threadpool.ScheduledThreadPool"
22                odl:type="global-netconf-ssh-scheduled-executor"/>
23     <reference id="processingExecutor"
24                interface="org.opendaylight.controller.config.threadpool.ThreadPool"
25                odl:type="global-netconf-processing-executor"/>
26     <reference id="actorSystemProvider"
27                interface="org.opendaylight.controller.cluster.ActorSystemProvider"/>
28     <reference id="eventExecutor"
29                interface="io.netty.util.concurrent.EventExecutor"
30                odl:type="global-event-executor"/>
31     <reference id="clientDispatcherDependency"
32                interface="org.opendaylight.netconf.client.NetconfClientDispatcher"
33                odl:type="netconf-client-dispatcher"/>
34     <reference id="mountPointService"
35                interface="org.opendaylight.controller.md.sal.dom.api.DOMMountPointService"
36                odl:type="default"/>
37     <odl:clustered-app-config
38             id="singletonConfig"
39             binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.topology.singleton.config.rev170419.Config"
40     />
41
42     <bean id="netconfTopologyManager"
43           class="org.opendaylight.netconf.topology.singleton.impl.NetconfTopologyManager"
44           init-method="init" destroy-method="close">
45         <argument ref="dataBroker"/>
46         <argument ref="rpcRegistry"/>
47         <argument ref="clusterSingletonService"/>
48         <argument ref="keepAliveExecutor"/>
49         <argument ref="processingExecutor"/>
50         <argument ref="actorSystemProvider"/>
51         <argument ref="eventExecutor"/>
52         <argument ref="clientDispatcherDependency"/>
53         <argument value="topology-netconf"/>
54         <argument ref="singletonConfig"/>
55         <argument ref="mountPointService"/>
56     </bean>
57     <service ref="netconfTopologyManager"
58              interface="org.opendaylight.netconf.topology.singleton.api.NetconfTopologySingletonService"/>
59
60 </blueprint>