bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / jkstatus / example / jkstatus.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Licensed to the Apache Software Foundation (ASF) under one or more
4   contributor license agreements.  See the NOTICE file distributed with
5   this work for additional information regarding copyright ownership.
6   The ASF licenses this file to You under the Apache License, Version 2.0
7   (the "License"); you may not use this file except in compliance with
8   the License.  You may obtain a copy of the License at
9
10       http://www.apache.org/licenses/LICENSE-2.0
11
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17 -->
18 <!-- @author Peter Rossbach -->
19
20 <project name="status" 
21          default="status" basedir=".">
22
23     <property name="profile" value=""/>
24     <property file="jkstatus${profile}.properties"/>
25     <property file="jkstatus${profile}.properties.default"/>
26  
27     <path id="jkstatus.path">
28       <fileset dir="${catalina.home}/bin">
29           <include name="commons-logging-api-*.jar"/>
30       </fileset>
31       <pathelement location="${catalina.home}/server/lib/catalina-ant.jar"/>
32       <pathelement location="../dist/tomcat-jkstatus-ant.jar"/>
33       <pathelement location="${catalina.home}/server/lib/tomcat-util.jar"/>
34     </path>
35
36     <taskdef resource="org/apache/jk/status/jkstatus.tasks">
37        <classpath refid="jkstatus.path"/>
38     </taskdef>
39
40     <!--
41        ########################################################################################################
42        public
43        ########################################################################################################
44     -->   
45     <target name="status"
46             depends="-status-modjk-access" 
47             description="got jk status" />
48
49     <target name="reset"
50             depends="-status-modjk-reset" 
51             description="reset jk status" />
52     
53    <!--
54        ########################################################################################################
55        private
56        ########################################################################################################
57     -->   
58           <target name="-status-modjk-access">
59               <jkStatus url="${jkstatus.url}" 
60                         username="${jkstatus.username}"
61                         password="${jkstatus.password}"
62                         resultproperty="jkstatus.before"
63                         echo="on"
64                         failOnError="off"/>
65               <echoproperties prefix="jkstatus" />           
66               <jkUpdateWorker url="${jkstatus.url}" 
67                        username="${jkstatus.username}"
68                        password="${jkstatus.password}"
69                        loadbalancer="${jkstatus.testlb}"
70                        worker="${jkstatus.testworker}"
71                        domain="d20"
72                        />
73               <jkUpdateLoadbalancer url="${jkstatus.url}" 
74                        username="${jkstatus.username}"
75                        password="${jkstatus.password}"
76                        loadbalancer="${jkstatus.testlb}"
77                            method="Sessions"
78                        />
79               <jkStatus url="${jkstatus.url}" 
80                         username="${jkstatus.username}"
81                         password="${jkstatus.password}"
82                         resultproperty="workerafter"
83                         failOnError="false"/>
84               <echoproperties prefix="jkstatus.after" />
85            </target>        
86
87    <target name="-status-modjk-reset">
88       <jkStatus url="${jkstatus.url}" 
89                 username="${jkstatus.username}"
90                 password="${jkstatus.password}"
91                 resultproperty="jkstatus.before"
92                 failOnError="false"/>
93       <echoproperties prefix="jkstatus.before" />   
94         
95       <jkReset  url="${jkstatus.url}" 
96                 username="${jkstatus.username}"
97                 password="${jkstatus.password}"
98                 loadbalancer="${jkstatus.testlb}"
99                         worker="${jkstatus.testworker}"
100        />
101
102        <jkStatus url="${jkstatus.url}" 
103                 username="${jkstatus.username}"
104                 password="${jkstatus.password}"
105                 resultproperty="jkstatus.after"
106                 failOnError="false"/>
107       <echoproperties prefix="jkstatus.after" />
108    </target>           
109
110         
111 </project>