Add blueprint to wire threadpools configuration
[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="bindingAwareBroker"
21                interface="org.opendaylight.controller.sal.binding.api.BindingAwareBroker"/>
22     <reference id="keepAliveExecutor"
23                interface="org.opendaylight.controller.config.threadpool.ScheduledThreadPool"
24                odl:type="global-netconf-ssh-scheduled-executor"/>
25     <reference id="processingExecutor"
26                interface="org.opendaylight.controller.config.threadpool.ThreadPool"
27                odl:type="global-netconf-processing-executor"/>
28     <reference id="domBroker"
29                interface="org.opendaylight.controller.sal.core.api.Broker"/>
30     <reference id="actorSystemProvider"
31                interface="org.opendaylight.controller.cluster.ActorSystemProvider"/>
32     <reference id="eventExecutor"
33                interface="io.netty.util.concurrent.EventExecutor"
34                odl:type="global-event-executor"/>
35     <reference id="clientDispatcherDependency"
36                interface="org.opendaylight.netconf.client.NetconfClientDispatcher"
37                odl:type="netconf-client-dispatcher"/>
38
39     <bean id="netconfTopologyManager"
40           class="org.opendaylight.netconf.topology.singleton.impl.NetconfTopologyManager"
41           init-method="init" destroy-method="close">
42         <argument ref="dataBroker"/>
43         <argument ref="rpcRegistry"/>
44         <argument ref="clusterSingletonService"/>
45         <argument ref="bindingAwareBroker"/>
46         <argument ref="keepAliveExecutor"/>
47         <argument ref="processingExecutor"/>
48         <argument ref="domBroker"/>
49         <argument ref="actorSystemProvider"/>
50         <argument ref="eventExecutor"/>
51         <argument ref="clientDispatcherDependency"/>
52         <argument value="topology-netconf"/>
53     </bean>
54     <service ref="netconfTopologyManager"
55              interface="org.opendaylight.netconf.topology.singleton.api.NetconfTopologySingletonService"/>
56
57 </blueprint>