PageRenderTime 23ms CodeModel.GetById 17ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/jboss-as-7.1.1.Final/testsuite/integration/smoke/src/test/java/org/jboss/as/test/smoke/subsystem/threads/subsystem.xml

#
XML | 96 lines | 68 code | 7 blank | 21 comment | 0 complexity | e3300e64250bc695043ef0cbc544c722 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
 1<!--
 2  ~ JBoss, Home of Professional Open Source.
 3  ~ Copyright 2012, Red Hat, Inc., and individual contributors
 4  ~ as indicated by the @author tags. See the copyright.txt file in the
 5  ~ distribution for a full listing of individual contributors.
 6  ~
 7  ~ This is free software; you can redistribute it and/or modify it
 8  ~ under the terms of the GNU Lesser General Public License as
 9  ~ published by the Free Software Foundation; either version 2.1 of
10  ~ the License, or (at your option) any later version.
11  ~
12  ~ This software is distributed in the hope that it will be useful,
13  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
14  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  ~ Lesser General Public License for more details.
16  ~
17  ~ You should have received a copy of the GNU Lesser General Public
18  ~ License along with this software; if not, write to the Free
19  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21  -->
22<subsystem xmlns="urn:jboss:domain:threads:1.1">
23
24    <thread-factory name="factory1" group-name="factory1-threads" thread-name-pattern="%G %i" priority="5"/>
25    <thread-factory name="factory2"/>
26
27    <unbounded-queue-thread-pool name="unbounded-1">
28        <max-threads count="10"/>
29        <keepalive-time time="10" unit="seconds"/>
30    </unbounded-queue-thread-pool>
31    <unbounded-queue-thread-pool name="unbounded-2">
32        <max-threads count="10"/>
33        <keepalive-time time="10" unit="seconds"/>
34        <thread-factory name="factory1"/>
35    </unbounded-queue-thread-pool>
36
37    <bounded-queue-thread-pool name="bounded-1" allow-core-timeout="true">
38        <core-threads count="5"/>
39        <queue-length count="100"/>
40        <max-threads count="10"/>
41        <keepalive-time time="10" unit="seconds"/>
42        <handoff-executor name="unbounded-1"/>
43    </bounded-queue-thread-pool>
44    <bounded-queue-thread-pool name="bounded-2">
45        <core-threads count="5"/>
46        <queue-length count="100"/>
47        <max-threads count="10"/>
48        <keepalive-time time="10" unit="seconds"/>
49        <thread-factory name="factory1"/>
50    </bounded-queue-thread-pool>
51
52    <blocking-bounded-queue-thread-pool name="blocking-bounded-1" allow-core-timeout="true">
53        <core-threads count="5"/>
54        <queue-length count="100"/>
55        <max-threads count="10"/>
56        <keepalive-time time="10" unit="seconds"/>
57    </blocking-bounded-queue-thread-pool>
58    <blocking-bounded-queue-thread-pool name="blocking-bounded-2">
59        <core-threads count="5"/>
60        <queue-length count="100"/>
61        <max-threads count="10"/>
62        <keepalive-time time="10" unit="seconds"/>
63        <thread-factory name="factory1"/>
64    </blocking-bounded-queue-thread-pool>
65
66    <queueless-thread-pool name="queueless-1">
67        <max-threads count="10"/>
68        <keepalive-time time="10" unit="seconds"/>
69        <handoff-executor name="unbounded-1"/>
70    </queueless-thread-pool>
71    <queueless-thread-pool name="queueless-2">
72        <max-threads count="10"/>
73        <keepalive-time time="10" unit="seconds"/>
74        <thread-factory name="factory1"/>
75    </queueless-thread-pool>
76
77    <blocking-queueless-thread-pool name="blocking-queueless-1">
78        <max-threads count="10"/>
79        <keepalive-time time="10" unit="seconds"/>
80    </blocking-queueless-thread-pool>
81    <blocking-queueless-thread-pool name="blocking-queueless-2">
82        <max-threads count="10"/>
83        <keepalive-time time="10" unit="seconds"/>
84        <thread-factory name="factory1"/>
85    </blocking-queueless-thread-pool>
86
87    <scheduled-thread-pool name="scheduled-1">
88        <max-threads count="10"/>
89        <keepalive-time time="10" unit="seconds"/>
90    </scheduled-thread-pool>
91    <scheduled-thread-pool name="scheduled-2">
92        <max-threads count="10"/>
93        <keepalive-time time="10" unit="seconds"/>
94        <thread-factory name="factory1"/>
95    </scheduled-thread-pool>
96</subsystem>