Remove NetconfTopologySingletonService
[netconf.git] / apps / netconf-topology-singleton / src / main / resources / OSGI-INF / 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.mdsal.binding.api.DataBroker"/>
16     <reference id="rpcProvider"
17                interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
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.mdsal.dom.api.DOMMountPointService"/>
36     <reference id="deviceActionFactory"
37                interface="org.opendaylight.netconf.client.mdsal.api.DeviceActionFactory"/>
38     <reference id="schemaManager"
39                interface="org.opendaylight.netconf.client.mdsal.api.SchemaResourceManager"/>
40     <reference id="baseSchemas"
41                interface="org.opendaylight.netconf.client.mdsal.api.BaseNetconfSchemas"/>
42     <reference id="builderFactory"
43                interface="org.opendaylight.netconf.topology.spi.NetconfClientConfigurationBuilderFactory"/>
44     <reference id="encryptionService"
45                interface="org.opendaylight.aaa.encrypt.AAAEncryptionService" />
46
47     <odl:clustered-app-config id="singletonConfig"
48         binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.topology.singleton.config.rev170419.Config"/>
49
50     <bean id="netconfTopologyManager"
51           class="org.opendaylight.netconf.topology.singleton.impl.NetconfTopologyManager"
52           init-method="init" destroy-method="close">
53         <argument ref="baseSchemas"/>
54         <argument ref="dataBroker"/>
55         <argument ref="clusterSingletonService"/>
56         <argument ref="keepAliveExecutor"/>
57         <argument ref="processingExecutor"/>
58         <argument ref="actorSystemProvider"/>
59         <argument ref="eventExecutor"/>
60         <argument ref="clientDispatcherDependency"/>
61         <argument value="topology-netconf"/>
62         <argument ref="singletonConfig"/>
63         <argument ref="mountPointService"/>
64         <argument ref="encryptionService" />
65         <argument ref="rpcProvider" />
66         <argument ref="deviceActionFactory"/>
67         <argument ref="schemaManager"/>
68         <argument ref="builderFactory"/>
69     </bean>
70 </blueprint>