bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / jkstatus / src / share / org / apache / jk / status / JkBalancerMember.java
1 /*
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
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  */
17 package org.apache.jk.status;
18
19 import java.io.Serializable;
20
21 /**
22  * @author Peter Rossbach
23  * @version $Revision: 500550 $ $Date: 2007-01-27 16:41:36 +0100 (Sat, 27 Jan 2007) $
24  * @see org.apache.jk.status.JkStatusParser
25  */
26 /**
27  * @author peter
28  *
29  */
30 public class JkBalancerMember implements Serializable {
31     
32     int id = -1;
33
34     String name;
35
36     /* possible with >= 1.2.16 */
37     String jvm_route;
38
39     /* possible with >= 1.2.20 */
40     String route;
41
42     String type;
43
44     String host;
45
46     int port;
47
48     String address;
49
50     /* deprecated with mod_jk 1.2.16*/
51     String status;
52     
53     /* possible with > 1.2.16 */
54     String activation; 
55
56     /* possible with > 1.2.16 */
57     String state; 
58         
59     int lbfactor;
60
61     long lbvalue;
62
63     /* possible with > 1.2.16 */
64     long lbmult = -1 ;
65     
66     int elected;
67
68     long readed;
69
70     long transferred;
71
72     long errors;
73
74     long clienterrors = -1;
75     
76     int busy;
77     
78     /* possible with > 1.2.16 */
79     int maxbusy = -1;
80     
81     String redirect;
82     
83     String domain;
84     
85     /* possible with > 1.2.16 */
86     int distance = -1;
87
88     /* possible with > 1.2.20 */
89     int time_to_recover = -1 ;
90     
91     /* possible with > 1.2.21 */
92     int time_to_recover_max = -1 ;
93     
94     /* possible with > 1.2.21 */
95     int time_to_recover_min = -1 ;
96     
97     /**
98      * @return Returns the jvm_route.
99      * @since mod_jk 1.2.16
100      * @deprecated
101      */
102     public String getJvm_route() {
103         return jvm_route;
104     }
105
106     /**
107      * @param jvm_route The jvm_route to set.
108      * @since mod_jk 1.2.16
109      * @deprecated
110      */
111     public void setJvm_route(String jvm_route) {
112         this.jvm_route = jvm_route;
113     }
114
115     /**
116      * @return the route
117     * @since mod_jk 1.2.20
118      */
119     public String getRoute() {
120         return route;
121     }
122
123     /**
124      * @param route the route to set
125     * @since mod_jk 1.2.20
126      */
127     public void setRoute(String route) {
128         this.route = route;
129     }
130
131     /**
132      * @return Returns the address.
133      */
134     public String getAddress() {
135         return address;
136     }
137
138     /**
139      * @param address
140      *            The address to set.
141      */
142     public void setAddress(String address) {
143         this.address = address;
144     }
145
146     /**
147      * @return Returns the busy.
148      */
149     public int getBusy() {
150         return busy;
151     }
152
153     /**
154      * @param busy
155      *            The busy to set.
156      */
157     public void setBusy(int busy) {
158         this.busy = busy;
159     }
160
161
162     /**
163      * @return Returns the maxbusy.
164      * @since mod_jk 1.2.18
165      */
166     public int getMax_busy() {
167         return maxbusy;
168     }
169
170     /**
171      * @param maxbusy The maxbusy to set.
172      * @since mod_jk 1.2.18
173      */
174     public void setMax_busy(int maxbusy) {
175         this.maxbusy = maxbusy;
176     }
177
178     /**
179      * @return Returns the elected.
180      */
181     public int getElected() {
182         return elected;
183     }
184
185     /**
186      * @param elected
187      *            The elected to set.
188      */
189     public void setElected(int elected) {
190         this.elected = elected;
191     }
192
193     /**
194      * @return Returns the clienterrors.
195      * @since mod_jk 1.2.19
196      */
197     public long getClient_errors() {
198         return clienterrors;
199     }
200
201     /**
202      * @param clienterrors The clienterrors to set.
203      * @since mod_jk 1.2.19
204      */
205     public void setClient_errors(long clienterrors) {
206         this.clienterrors = clienterrors;
207     }
208
209     /**
210      * @return Returns the errors.
211      */
212     public long getErrors() {
213         return errors;
214     }
215
216     /**
217      * @param errors
218      *            The errors to set.
219      */
220     public void setErrors(long errors) {
221         this.errors = errors;
222     }
223
224     /**
225      * @return Returns the host.
226      */
227     public String getHost() {
228         return host;
229     }
230
231     /**
232      * @param host
233      *            The host to set.
234      */
235     public void setHost(String host) {
236         this.host = host;
237     }
238
239     /**
240      * @return Returns the id.
241      */
242     public int getId() {
243         return id;
244     }
245
246     /**
247      * @param id
248      *            The id to set.
249      */
250     public void setId(int id) {
251         this.id = id;
252     }
253
254     /**
255      * @return Returns the lbfactor.
256      */
257     public int getLbfactor() {
258         return lbfactor;
259     }
260
261     /**
262      * @param lbfactor
263      *            The lbfactor to set.
264      */
265     public void setLbfactor(int lbfactor) {
266         this.lbfactor = lbfactor;
267     }
268
269     /**
270      * @return Returns the lbvalue.
271      */
272     public long getLbvalue() {
273         return lbvalue;
274     }
275
276     /**
277      * @param lbvalue
278      *            The lbvalue to set.
279      */
280     public void setLbvalue(long lbvalue) {
281         this.lbvalue = lbvalue;
282     }
283     
284     /**
285      * @return Returns the lbmult.
286      * @since mod_jk 1.2.19
287      */
288     public long getLbmult() {
289         return lbmult;
290     }
291
292     /**
293      * @param lbmult The lbmult to set.
294      * @since mod_jk 1.2.19
295      */
296     public void setLbmult(long lbmult) {
297         this.lbmult = lbmult;
298     }
299
300     /**
301      * @return Returns the name.
302      */
303     public String getName() {
304         return name;
305     }
306
307     /**
308      * @param name
309      *            The name to set.
310      */
311     public void setName(String name) {
312         this.name = name;
313     }
314
315
316     /**
317      * @return Returns the port.
318      */
319     public int getPort() {
320         return port;
321     }
322
323     /**
324      * @param port
325      *            The port to set.
326      */
327     public void setPort(int port) {
328         this.port = port;
329     }
330
331     /**
332      * @return Returns the readed.
333      */
334     public long getReaded() {
335         return readed;
336     }
337
338     /**
339      * @param readed
340      *            The readed to set.
341      */
342     public void setReaded(long readed) {
343         this.readed = readed;
344     }
345
346     /**
347      * @return Returns the status.
348      * @deprecated since 1.2.16
349      */
350     public String getStatus() {
351         return status;
352     }
353
354     /**
355      * @param status
356      *            The status to set.
357      * @deprecated since 1.2.16
358      */
359     public void setStatus(String status) {
360         this.status = status;
361     }
362
363     /**
364      * @return Returns the activation.
365      * @since mod_jk 1.2.19
366      */
367     public String getActivation() {
368         return activation;
369     }
370
371     /**
372      * @param activation The activation to set.
373      * @since mod_jk 1.2.19
374      */
375     public void setActivation(String activation) {
376         this.activation = activation;
377     }
378
379     /**
380      * @return Returns the state.
381      * @since mod_jk 1.2.19
382      */
383     public String getState() {
384         return state;
385     }
386
387     /**
388      * @param state The state to set.
389      * @since mod_jk 1.2.19
390      */
391     public void setState(String state) {
392         this.state = state;
393     }
394
395     /**
396      * @return Returns the transferred.
397      */
398     public long getTransferred() {
399         return transferred;
400     }
401
402     /**
403      * @param transferred
404      *            The transferred to set.
405      */
406     public void setTransferred(long transferred) {
407         this.transferred = transferred;
408     }
409
410     /**
411      * @return Returns the type.
412      */
413     public String getType() {
414         return type;
415     }
416
417     /**
418      * @param type
419      *            The type to set.
420      */
421     public void setType(String type) {
422         this.type = type;
423     }
424     
425     
426     /**
427      * @return Returns the domain.
428      */
429     public String getDomain() {
430         return domain;
431     }
432     /**
433      * @param domain The domain to set.
434      */
435     public void setDomain(String domain) {
436         this.domain = domain;
437     }
438  
439     /**
440      * @return Returns the redirect.
441      */
442     public String getRedirect() {
443         return redirect;
444     }
445     /**
446      * @param redirect The redirect to set.
447      */
448     public void setRedirect(String redirect) {
449         this.redirect = redirect;
450     }
451
452     /**
453      * @return Returns the distance.
454      * @since mod_jk 1.2.18
455      */
456     public int getDistance() {
457         return distance;
458     }
459
460     /**
461      * @param distance The distance to set.
462      * @since mod_jk 1.2.18
463      */
464     public void setDistance(int distance) {
465         this.distance = distance;
466     }
467
468     /**
469      * @return the time_to_recover
470      * @since mod_jk 1.2.20
471      */
472     public int getTime_to_recover() {
473         return time_to_recover;
474     }
475
476     /**
477      * @param time_to_recover the time_to_recover to set
478      * @since mod_jk 1.2.20
479      */
480     public void setTime_to_recover(int time_to_recover) {
481         this.time_to_recover = time_to_recover;
482     }
483
484     /**
485      * @return the time_to_recover_min
486      * @since mod_jk 1.2.21
487      */
488     public int getTime_to_recover_min() {
489         return time_to_recover_min;
490     }
491
492     /**
493      * @param time_to_recover_min the time_to_recover_min to set
494      * @since mod_jk 1.2.21
495      */
496     public void setTime_to_recover_min(int time_to_recover_min) {
497         this.time_to_recover_min = time_to_recover_min;
498     }
499
500     /**
501      * @return the time_to_recover_max
502      * @since mod_jk 1.2.21
503      */
504     public int getTime_to_recover_max() {
505         return time_to_recover_max;
506     }
507
508     /**
509      * @param time_to_recover_max the time_to_recover_max to set
510      * @since mod_jk 1.2.21
511      */
512     public void setTime_to_recover_max(int time_to_recover_max) {
513         this.time_to_recover_max = time_to_recover_max;
514     }
515
516 }