Address comments in prior patches
[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       <!-- 0 means use the default number of threads  -->
10       <cm:property name="global-boss-group-thread-count" value="0"/>
11       <cm:property name="global-worker-group-thread-count" value="0"/>
12     </cm:default-properties>
13   </cm:property-placeholder>
14
15   <bean id="globalBossGroup" class="org.opendaylight.controller.config.yang.netty.threadgroup.NioEventLoopGroupCloseable"
16           factory-method="newInstance">
17     <argument value="${global-boss-group-thread-count}"/>
18   </bean>
19
20   <service ref="globalBossGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-boss-group"/>
21
22   <bean id="globalWorkerGroup" class="org.opendaylight.controller.config.yang.netty.threadgroup.NioEventLoopGroupCloseable"
23           factory-method="newInstance">
24     <argument value="${global-worker-group-thread-count}"/>
25   </bean>
26
27   <service ref="globalWorkerGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-worker-group"/>
28
29 </blueprint>