Add blueprint to wire threadpools configuration
[netconf.git] / netconf / netconf-topology-config / src / main / resources / org / opendaylight / blueprint / netconf-topology.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2016 Inocybe Technologies Inc. and others.  All rights reserved.
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
10            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
11            odl:use-default-for-reference-types="true">
12
13     <reference id="clientDispatcherDependency"
14                interface="org.opendaylight.netconf.client.NetconfClientDispatcher"
15                odl:type="netconf-client-dispatcher"/>
16     <reference id="bindingAwareBroker"
17                interface="org.opendaylight.controller.sal.binding.api.BindingAwareBroker"/>
18     <reference id="keepAliveExecutor"
19                interface="org.opendaylight.controller.config.threadpool.ScheduledThreadPool"
20                odl:type="global-netconf-ssh-scheduled-executor"/>
21     <reference id="processingExecutor"
22                interface="org.opendaylight.controller.config.threadpool.ThreadPool"
23                odl:type="global-netconf-processing-executor"/>
24     <reference id="domBroker"
25                interface="org.opendaylight.controller.sal.core.api.Broker"/>
26     <reference id="eventExecutor"
27                interface="io.netty.util.concurrent.EventExecutor"
28                odl:type="global-event-executor"/>
29     <reference id="dataBroker"
30                interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"/>
31     <reference id="domMountPointService"
32                interface="org.opendaylight.controller.md.sal.dom.api.DOMMountPointService"/>
33
34     <bean id="schemaRepository" class="org.opendaylight.netconf.topology.impl.SchemaRepositoryProviderImpl">
35         <argument value="shared-schema-repository-impl"/>
36     </bean>
37
38     <bean id="netconfTopology" class="org.opendaylight.netconf.topology.impl.NetconfTopologyImpl"
39           init-method="init"
40           destroy-method="close">
41         <argument value="topology-netconf"/>
42         <argument ref="clientDispatcherDependency"/>
43         <argument ref="bindingAwareBroker"/>
44         <argument ref="domBroker"/>
45         <argument ref="eventExecutor"/>
46         <argument ref="keepAliveExecutor"/>
47         <argument ref="processingExecutor"/>
48         <argument ref="schemaRepository"/>
49         <argument ref="dataBroker"/>
50         <argument ref="domMountPointService"/>
51     </bean>
52
53     <bean id="netconfConnectorFactory" class="org.opendaylight.netconf.topology.impl.NetconfConnectorFactoryImpl"/>
54     <service ref="netconfConnectorFactory" interface="org.opendaylight.netconf.topology.api.NetconfConnectorFactory"
55              odl:type="default"/>
56
57 </blueprint>