bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / docs / miscellaneous / jkstatustasks.html
1 <html><head><META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>The Apache Tomcat Connector - Miscellaneous Documentation - Status Worker Ant Tasks</title><meta name="author" value="Peter Rossbach"><meta name="email" value=""><link href="../style.css" type="text/css" rel="stylesheet"></head><body bgcolor="#ffffff" text="#000000" link="#525D76" alink="#525D76" vlink="#525D76"><table border="0" width="100%" cellspacing="4"><!--PAGE HEADER--><tr><td colspan="2"><!--TOMCAT LOGO--><a href="http://tomcat.apache.org/"><img src="../images/tomcat.gif" align="left" alt="Apache Tomcat" border="0"></a><!--APACHE LOGO--><a href="http://www.apache.org/"><img src="http://www.apache.org/images/asf-logo.gif" align="right" alt="Apache Logo" border="0"></a></td></tr><!--HEADER SEPARATOR--><tr><td colspan="2"><hr noshade size="1"></td></tr><tr><!--LEFT SIDE NAVIGATION--><td width="20%" valign="top" nowrap="true"><p><strong>Links</strong></p><ul><li><a href="../index.html">Docs Home</a></li></ul><p><strong>Reference Guide</strong></p><ul><li><a href="../reference/workers.html">workers.properties</a></li><li><a href="../reference/uriworkermap.html">uriworkermap.properties</a></li><li><a href="../reference/status.html">Status Worker</a></li><li><a href="../reference/apache.html">Apache HTTP Server</a></li><li><a href="../reference/iis.html">IIS</a></li></ul><p><strong>Generic HowTo</strong></p><ul><li><a href="../generic_howto/quick.html">For the impatient</a></li><li><a href="../generic_howto/workers.html">All about workers</a></li><li><a href="../generic_howto/timeouts.html">Timeouts</a></li><li><a href="../generic_howto/loadbalancers.html">Load Balancing</a></li><li><a href="../generic_howto/proxy.html">Reverse Proxy</a></li></ul><p><strong>Webserver HowTo</strong></p><ul><li><a href="../webserver_howto/apache.html">Apache HTTP Server</a></li><li><a href="../webserver_howto/iis.html">IIS</a></li><li><a href="../webserver_howto/nes.html">Netscape/SunOne/Sun</a></li></ul><p><strong>AJP Protocol Reference</strong></p><ul><li><a href="../ajp/ajpv13a.html">AJPv13</a></li><li><a href="../ajp/ajpv13ext.html">AJPv13 Extension Proposal</a></li></ul><p><strong>Miscellaneous Documentation</strong></p><ul><li><a href="../miscellaneous/faq.html">Frequently asked questions</a></li><li><a href="../miscellaneous/changelog.html">Changelog</a></li><li><a href="http://issues.apache.org/bugzilla/buglist.cgi?query_format=advanced&amp;short_desc_type=allwordssubstr&amp;short_desc=&amp;product=Tomcat+Connectors&amp;long_desc_type=substring&amp;long_desc=&amp;bug_file_loc_type=allwordssubstr&amp;bug_file_loc=&amp;keywords_type=allwords&amp;keywords=&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;emailassigned_to1=1&amp;emailtype1=substring&amp;email1=&amp;emailassigned_to2=1&amp;emailreporter2=1&amp;emailcc2=1&amp;emailtype2=substring&amp;email2=&amp;bugidtype=include&amp;bug_id=&amp;votes=&amp;chfieldfrom=&amp;chfieldto=Now&amp;chfieldvalue=&amp;cmdtype=doit&amp;order=Reuse+same+sort+as+last+time&amp;field0-0-0=noop&amp;type0-0-0=noop&amp;value0-0-0=">Current Tomcat Connectors bugs</a></li><li><a href="../miscellaneous/doccontrib.html">Contribute documentation</a></li><li><a href="../miscellaneous/jkstatustasks.html">JK Status Ant Tasks</a></li><li><a href="../miscellaneous/reporttools.html">Reporting Tools</a></li><li><a href="http://tomcat.apache.org/connectors-doc-archive/jk2/index.html">Old JK/JK2 documentation</a></li></ul><p><strong>News</strong></p><ul><li><a href="../news/20110701.html">2011</a></li><li><a href="../news/20100101.html">2010</a></li><li><a href="../news/20090301.html">2009</a></li><li><a href="../news/20081001.html">2008</a></li><li><a href="../news/20070301.html">2007</a></li><li><a href="../news/20060101.html">2006</a></li><li><a href="../news/20050101.html">2005</a></li><li><a href="../news/20041100.html">2004</a></li></ul></td><!--RIGHT SIDE MAIN BODY--><td width="80%" valign="top" align="left"><table border="0" width="100%" cellspacing="4"><tr><td align="left" valign="top"><h1>The Apache Tomcat Connector - Miscellaneous Documentation</h1><h2>Status Worker Ant Tasks</h2></td><td align="right" valign="top" nowrap="true"><small><a href="printer/jkstatustasks.html"><img src="../images/printer.gif" border="0" alt="Printer Friendly Version"><br>print-friendly<br>version
2                     </a></small></td></tr></table><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Introduction"><strong>Introduction</strong></a></font></td></tr><tr><td><blockquote>
3 <p>Since version 1.2.19 the JK release contains additional ant tasks.
4 They can be used to manage the JK web server plugins via the special status worker.
5 </p>
6 </blockquote></td></tr></table><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#525D76"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Manage JK with remote Ant Tasks"><strong>Manage JK with remote Ant Tasks</strong></a></font></td></tr><tr><td><blockquote>
7
8 <table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#828DA6"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Simple antlib integration"><strong>Simple antlib integration</strong></a></font></td></tr><tr><td><blockquote>
9 <p>
10 <div class="example"><pre>
11 &lt;?xml version="1.0" encoding="UTF-8"?&gt;
12
13 &lt;project name="modjk-status" 
14          xmlns:jk="urn:org-apache-jk-status"
15          default="status" basedir="."&gt;
16
17         &lt;property name="profile" value=""/&gt;
18         &lt;property file="jkstatus${profile}.properties"/&gt;
19         &lt;property file="jkstatus.properties.default"/&gt;
20
21     &lt;path id="jkstatus.classpath"&gt;
22       &lt;fileset dir="${catalina.home}/bin"&gt;
23           &lt;include name="commons-logging-api-*.jar"/&gt;
24       &lt;/fileset&gt;
25       &lt;pathelement location="${catalina.home}/server/lib/catalina-ant.jar"/&gt;
26       &lt;pathelement location="../dist/tomcat-jkstatus-ant.jar"/&gt;
27       &lt;pathelement location="${catalina.home}/server/lib/tomcat-util.jar"/&gt;
28     &lt;/path&gt;
29
30     &lt;typedef resource="org/apache/jk/status/antlib.xml"       
31            uri="urn:org-apache-jk-status" classpathref="jkstatus.classpath"/&gt; 
32            
33     &lt;target name="status" &gt;       
34             &lt;jk:status url="${jkstatus.url}" 
35                         username="${jkstatus.username}"
36                         password="${jkstatus.password}"
37                         resultproperty="worker"
38                         echo="off"
39                         failOnError="off"/&gt;
40             &lt;echoproperties prefix="worker" /&gt;
41     &lt;/target&gt;
42 &lt;/project&gt;    
43 </pre></div>
44 </p>
45 </blockquote></td></tr></table>
46
47 <table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#828DA6"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Test Result"><strong>Test Result</strong></a></font></td></tr><tr><td><blockquote>
48 <p>
49 <div class="example"><pre>
50 [echoproperties] #Ant properties
51 [echoproperties] #Sun Dec 10 20:40:21 CET 2006
52 [echoproperties] worker.node01.lbmult=1
53 [echoproperties] worker.loadbalancer.lock=Optimistic
54 [echoproperties] worker.node02.transferred=0
55 [echoproperties] worker.loadbalancer.sticky_session=false
56 [echoproperties] worker.node01.distance=0
57 [echoproperties] worker.node01.client_errors=0
58 [echoproperties] worker.node02.lbmult=1
59 [echoproperties] worker.node01.port=7309
60 [echoproperties] worker.node01.elected=0
61 [echoproperties] worker.loadbalancer.good=2
62 [echoproperties] worker.loadbalancer.method=Sessions
63 [echoproperties] worker.server.port=2090
64 [echoproperties] worker.loadbalancer.map.2.type=Wildchar
65 [echoproperties] worker.node02.route=node02
66 [echoproperties] worker.node01.route=node01
67 [echoproperties] worker.node01.lbvalue=0
68 [echoproperties] worker.node01.lbfactor=1
69 [echoproperties] worker.node01.max_busy=0
70 [echoproperties] worker.node01.busy=0
71 [echoproperties] worker.node01.redirect=
72 [echoproperties] worker.node02.distance=0
73 [echoproperties] worker.loadbalancer.name=loadbalancer
74 [echoproperties] worker.loadbalancer.sticky_session_force=false
75 [echoproperties] worker.node02.state=N/A
76 [echoproperties] worker.node01.state=N/A
77 [echoproperties] worker.node01.transferred=0
78 [echoproperties] worker.loadbalancer.map.length=2
79 [echoproperties] worker.node01.type=ajp13
80 [echoproperties] worker.node01.address=127.0.0.1\:7309
81 [echoproperties] worker.result.type=OK
82 [echoproperties] worker.loadbalancer.member_count=2
83 [echoproperties] worker.loadbalancer.map_count=2
84 [echoproperties] worker.loadbalancer.mtime_to_maintenance_min=12
85 [echoproperties] worker.loadbalancer.mtime_to_maintenance_max=75
86 [echoproperties] worker.node02.lbfactor=1
87 [echoproperties] worker.node02.max_busy=0
88 [echoproperties] worker.jk_version=mod_jk/1.2.21-dev
89 [echoproperties] worker.loadbalancer.bad=0
90 [echoproperties] worker.node02.redirect=
91 [echoproperties] worker.node01.host=localhost
92 [echoproperties] worker.node02.activation=ACT
93 [echoproperties] worker.loadbalancer.map.1.source=JkMount
94 [echoproperties] worker.loadbalancer.retries=2
95 [echoproperties] worker.node02.elected=0
96 [echoproperties] worker.loadbalancer.map.2.source=JkMount
97 [echoproperties] worker.node02.port=7409
98 [echoproperties] worker.loadbalancer.length=2
99 [echoproperties] worker.node02.lbvalue=0
100 [echoproperties] worker.loadbalancer.degraded=0
101 [echoproperties] worker.loadbalancer.map.1.type=Wildchar
102 [echoproperties] worker.loadbalancer.map.2.uri=/myapps*
103 [echoproperties] worker.node02.client_errors=0
104 [echoproperties] worker.length=1
105 [echoproperties] worker.node01.domain=d20
106 [echoproperties] worker.loadbalancer.recover_time=60
107 [echoproperties] worker.server.name=localhost
108 [echoproperties] worker.node02.domain=
109 [echoproperties] worker.result.message=Action finished
110 [echoproperties] worker.node02.busy=0
111 [echoproperties] worker.node01.readed=0
112 [echoproperties] worker.node01.errors=0
113 [echoproperties] worker.node02.address=127.0.0.1\:7409
114 [echoproperties] worker.node02.readed=0
115 [echoproperties] worker.loadbalancer.busy=0
116 [echoproperties] worker.web_server=Apache/2.0.59 (Unix) mod_jk/1.2.21-dev
117 [echoproperties] worker.node02.errors=0
118 [echoproperties] worker.node02.type=ajp13
119 [echoproperties] worker.loadbalancer.map.1.uri=/ClusterTest*
120 [echoproperties] worker.node01.activation=ACT
121 [echoproperties] worker.loadbalancer.max_busy=0
122 [echoproperties] worker.loadbalancer.type=lb
123 [echoproperties] worker.node02.host=localhost
124 </pre></div>
125 </p>
126 </blockquote></td></tr></table>
127
128 <table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#828DA6"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Update Load Balancer"><strong>Update Load Balancer</strong></a></font></td></tr><tr><td><blockquote>
129 <p>
130 <div class="example"><pre>
131      &lt;target name="updatelb" &gt;       
132             &lt;jk:updateloadbalancer url="${jkstatus.url}" 
133                         username="${jkstatus.username}"
134                         password="${jkstatus.password}"
135                         loadbalancer="loadbalancer"
136                         method="Busyness"
137                         retries="2"
138                         recoverWaitTime="60"
139                         lock="Optimistic"
140                         forceStickySession="false"
141                         stickySession="false"/&gt;
142      &lt;/target&gt;
143 </pre></div>
144 </p>
145 </blockquote></td></tr></table>
146
147 <table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#828DA6"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Update Worker"><strong>Update Worker</strong></a></font></td></tr><tr><td><blockquote>
148 <p>
149 <div class="example"><pre>
150      &lt;target name="updatew" &gt;       
151             &lt;jk:updateworker url="${jkstatus.url}" 
152                         username="${jkstatus.username}"
153                         password="${jkstatus.password}"
154                         loadbalancer="loadbalancer"
155                         worker="node01"
156                         lbfactor="2"
157                         activation="Active"
158                         redirect=""
159                         domain=""
160                         route="node01"
161                         distance="0"/&gt;
162      &lt;/target&gt;
163 </pre></div>
164 </p>
165 </blockquote></td></tr></table>
166
167 <table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td bgcolor="#828DA6"><font color="#ffffff" face="arial,helvetica.sanserif"><a name="Reset Worker"><strong>Reset Worker</strong></a></font></td></tr><tr><td><blockquote>
168 <p>
169 <div class="example"><pre>
170      &lt;target name="reset" &gt;       
171             &lt;jk:reset url="${jkstatus.url}" 
172                         username="${jkstatus.username}"
173                         password="${jkstatus.password}"
174                         loadbalancer="loadbalancer"
175                         worker="node01"
176                         /&gt;
177      &lt;/target&gt;
178 </pre></div>
179 </p>
180 </blockquote></td></tr></table>
181
182 </blockquote></td></tr></table></td></tr><!--FOOTER SEPARATOR--><tr><td colspan="2"><hr noshade size="1"></td></tr><!--PAGE FOOTER--><tr><td colspan="2"><div align="center"><font color="#525D76" size="-1"><em>
183         Copyright &copy; 1999-2011, Apache Software Foundation
184         </em></font></div></td></tr></table></body></html>