Add blueprint wiring for netty configs
[controller.git] / opendaylight / config / netty-threadgroup-config / src / main / resources / org / opendaylight / blueprint / netty-threadgroup.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="true">
6
7   <cm:property-placeholder persistent-id="org.opendaylight.netty.threadgroup" update-strategy="none">
8     <cm:default-properties>
9       <cm:property name="global-boss-group-thread-count" value="0"/>
10       <cm:property name="global-worker-group-thread-count" value="0"/>
11     </cm:default-properties>
12   </cm:property-placeholder>
13
14   <bean id="globalBossGroup" class="org.opendaylight.controller.config.yang.netty.threadgroup.NioEventLoopGroupCloseable"
15           factory-method="newInstance">
16     <argument value="${global-boss-group-thread-count}"/>
17   </bean>
18
19   <service ref="globalBossGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-boss-group"/>
20
21   <bean id="globalWorkerGroup" class="org.opendaylight.controller.config.yang.netty.threadgroup.NioEventLoopGroupCloseable"
22           factory-method="newInstance">
23     <argument value="${global-worker-group-thread-count}"/>
24   </bean>
25
26   <service ref="globalWorkerGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-worker-group"/>
27
28 </blueprint>