2 Licensed to the Apache Software Foundation (ASF) under one or more
3 contributor license agreements. See the NOTICE file distributed with
4 this work for additional information regarding copyright ownership.
5 The ASF licenses this file to You under the Apache License, Version 2.0
6 (the "License"); you may not use this file except in compliance with
7 the License. You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
19 <p>This package contains a set of <code>Task</code> implementations for
20 <em>Ant (version 1.6.x or later)</em> that can be used to interact with the
21 Apaache mod_jk status page to show, update, disable and stop mod_jk worker.
22 For more information, see
23 <a href="http://tomcat.apache.org/connectors-doc/index.html"><strong>JK Documenation</strong></a>.</p>
25 <p>The attributes of each task element correspond
26 exactly to the request parameters that are included with an HTTP request
27 sent directly to jk status page. They are summarized as follows:
30 <b>General parameter</b><br/>
33 <th align="center" width="15%">Attribute</th>
34 <th align="center" width="85%">Description</th>
37 <td align="center">url</td>
39 The URL of the jk status page you will use to
40 perform the requested operations. If not specified, defaults to
41 <code>http://localhost:80/jkstatus</code> (which corresponds
42 to a standard installation of Apache mod_jk).
46 <td align="center">username</td>
48 The username of a mod_jk status user that has been configured with the
49 <code>Allow user</code> Apache Location constraint. This attribute is optional.
53 <td align="center">password</td>
55 The password of a mod_jk status user that has been configured with the
56 <code>Allow user</code> Apache Location constraint. This attribute is optional.
60 <td align="center">resultProperty</td>
62 Bind all show results with this prefix property name. This attribute is optional.
66 <td align="center">echo</td>
68 show result at ant console. (default false)
72 <td align="center">errorProperty</td>
74 set this property, as a failure detected. This attribute is optional.
79 <b>Command show parameter</b><br/>
82 <th align="center" width="15%">Attribute</th>
83 <th align="center" width="85%">Description</th>
86 <td align="center">worker</td>
88 only bind properties from this balancer tcp worker (node)
92 <td align="center">loadbalancer</td>
94 only bind properties from this loadbalancer worker
99 <b>Command reset parameter</b><br/>
102 <th align="center" width="15%">Attribute</th>
103 <th align="center" width="85%">Description</th>
106 <td align="center">workerLb</td>
108 name of loadbalancer worker.
113 <b>Command update loadbalancer parameter</b><br/>
116 <th align="center" width="15%">Attribute</th>
117 <th align="center" width="85%">Description</th>
120 <td align="center">workerType=loadbalancer</td>
126 <td align="center">workerLb</td>
128 name of loadbalancer worker.
132 <td align="center">lbForceSession</td>
134 Force Sticky Session. (true/false)
138 <td align="center">lbStickySession</td>
140 Sticky Session. (true/false)
144 <td align="center">lbRetries</td>
146 loadbalancer retries after worker connection failure (int)
150 <td align="center">lbRecovertime</td>
152 Recover timeout after a worker set to "error" state (int sec's)
157 <b>Command update worker parameter</b><br/>
160 <th align="center" width="15%">Attribute</th>
161 <th align="center" width="85%">Description</th>
164 <td align="center">workerType=worker</td>
170 <td align="center">worker</td>
176 <td align="center">workerActivation (>=1.2.19</td>
178 set worker activation (1 Active, 2 Disabled, 3 Stopped)
182 <td align="center">workerDisabled (< 1.2.19)</td>
184 set disable state. (true/false)
188 <td align="center">workerStoppend (< 1.2.19)</td>
190 set stopped state. (true/false)
194 <td align="center">workerJvmRoute</td>
200 <td align="center">workerLaodFactor</td>
202 set load factor (int)
206 <td align="center">workerDistance</td>
208 set worker distance (int)
211 <td align="center">workerRedirect</td>
213 other worker name to redirect after failure
217 <td align="center">workerClusterDomain</td>
219 cluster domain name, group of worker at a repliation cluster.