Enable netty config modules to restart when blueprint container restarts
[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   <service-properties>
22       <entry key="config-module-namespace" value="urn:opendaylight:params:xml:ns:yang:controller:netty:threadgroup"/>
23       <entry key="config-module-name" value="netty-threadgroup-fixed"/>
24       <entry key="config-instance-name" value="global-boss-group"/>
25     </service-properties>
26   </service>
27
28   <bean id="globalWorkerGroup" class="org.opendaylight.controller.config.yang.netty.threadgroup.NioEventLoopGroupCloseable"
29           factory-method="newInstance">
30     <argument value="${global-worker-group-thread-count}"/>
31   </bean>
32
33   <service ref="globalWorkerGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-worker-group">
34   <service-properties>
35       <entry key="config-module-namespace" value="urn:opendaylight:params:xml:ns:yang:controller:netty:threadgroup"/>
36       <entry key="config-module-name" value="netty-threadgroup-fixed"/>
37       <entry key="config-instance-name" value="global-worker-group"/>
38     </service-properties>
39   </service>
40
41 </blueprint>