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.
17 package org.apache.jk.status;
19 import java.io.Serializable;
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
30 public class JkBalancerMember implements Serializable {
36 /* possible with >= 1.2.16 */
39 /* possible with >= 1.2.20 */
50 /* deprecated with mod_jk 1.2.16*/
53 /* possible with > 1.2.16 */
56 /* possible with > 1.2.16 */
63 /* possible with > 1.2.16 */
74 long clienterrors = -1;
78 /* possible with > 1.2.16 */
85 /* possible with > 1.2.16 */
88 /* possible with > 1.2.20 */
89 int time_to_recover = -1 ;
91 /* possible with > 1.2.21 */
92 int time_to_recover_max = -1 ;
94 /* possible with > 1.2.21 */
95 int time_to_recover_min = -1 ;
98 * @return Returns the jvm_route.
99 * @since mod_jk 1.2.16
102 public String getJvm_route() {
107 * @param jvm_route The jvm_route to set.
108 * @since mod_jk 1.2.16
111 public void setJvm_route(String jvm_route) {
112 this.jvm_route = jvm_route;
117 * @since mod_jk 1.2.20
119 public String getRoute() {
124 * @param route the route to set
125 * @since mod_jk 1.2.20
127 public void setRoute(String route) {
132 * @return Returns the address.
134 public String getAddress() {
140 * The address to set.
142 public void setAddress(String address) {
143 this.address = address;
147 * @return Returns the busy.
149 public int getBusy() {
157 public void setBusy(int busy) {
163 * @return Returns the maxbusy.
164 * @since mod_jk 1.2.18
166 public int getMax_busy() {
171 * @param maxbusy The maxbusy to set.
172 * @since mod_jk 1.2.18
174 public void setMax_busy(int maxbusy) {
175 this.maxbusy = maxbusy;
179 * @return Returns the elected.
181 public int getElected() {
187 * The elected to set.
189 public void setElected(int elected) {
190 this.elected = elected;
194 * @return Returns the clienterrors.
195 * @since mod_jk 1.2.19
197 public long getClient_errors() {
202 * @param clienterrors The clienterrors to set.
203 * @since mod_jk 1.2.19
205 public void setClient_errors(long clienterrors) {
206 this.clienterrors = clienterrors;
210 * @return Returns the errors.
212 public long getErrors() {
220 public void setErrors(long errors) {
221 this.errors = errors;
225 * @return Returns the host.
227 public String getHost() {
235 public void setHost(String host) {
240 * @return Returns the id.
250 public void setId(int id) {
255 * @return Returns the lbfactor.
257 public int getLbfactor() {
263 * The lbfactor to set.
265 public void setLbfactor(int lbfactor) {
266 this.lbfactor = lbfactor;
270 * @return Returns the lbvalue.
272 public long getLbvalue() {
278 * The lbvalue to set.
280 public void setLbvalue(long lbvalue) {
281 this.lbvalue = lbvalue;
285 * @return Returns the lbmult.
286 * @since mod_jk 1.2.19
288 public long getLbmult() {
293 * @param lbmult The lbmult to set.
294 * @since mod_jk 1.2.19
296 public void setLbmult(long lbmult) {
297 this.lbmult = lbmult;
301 * @return Returns the name.
303 public String getName() {
311 public void setName(String name) {
317 * @return Returns the port.
319 public int getPort() {
327 public void setPort(int port) {
332 * @return Returns the readed.
334 public long getReaded() {
342 public void setReaded(long readed) {
343 this.readed = readed;
347 * @return Returns the status.
348 * @deprecated since 1.2.16
350 public String getStatus() {
357 * @deprecated since 1.2.16
359 public void setStatus(String status) {
360 this.status = status;
364 * @return Returns the activation.
365 * @since mod_jk 1.2.19
367 public String getActivation() {
372 * @param activation The activation to set.
373 * @since mod_jk 1.2.19
375 public void setActivation(String activation) {
376 this.activation = activation;
380 * @return Returns the state.
381 * @since mod_jk 1.2.19
383 public String getState() {
388 * @param state The state to set.
389 * @since mod_jk 1.2.19
391 public void setState(String state) {
396 * @return Returns the transferred.
398 public long getTransferred() {
404 * The transferred to set.
406 public void setTransferred(long transferred) {
407 this.transferred = transferred;
411 * @return Returns the type.
413 public String getType() {
421 public void setType(String type) {
427 * @return Returns the domain.
429 public String getDomain() {
433 * @param domain The domain to set.
435 public void setDomain(String domain) {
436 this.domain = domain;
440 * @return Returns the redirect.
442 public String getRedirect() {
446 * @param redirect The redirect to set.
448 public void setRedirect(String redirect) {
449 this.redirect = redirect;
453 * @return Returns the distance.
454 * @since mod_jk 1.2.18
456 public int getDistance() {
461 * @param distance The distance to set.
462 * @since mod_jk 1.2.18
464 public void setDistance(int distance) {
465 this.distance = distance;
469 * @return the time_to_recover
470 * @since mod_jk 1.2.20
472 public int getTime_to_recover() {
473 return time_to_recover;
477 * @param time_to_recover the time_to_recover to set
478 * @since mod_jk 1.2.20
480 public void setTime_to_recover(int time_to_recover) {
481 this.time_to_recover = time_to_recover;
485 * @return the time_to_recover_min
486 * @since mod_jk 1.2.21
488 public int getTime_to_recover_min() {
489 return time_to_recover_min;
493 * @param time_to_recover_min the time_to_recover_min to set
494 * @since mod_jk 1.2.21
496 public void setTime_to_recover_min(int time_to_recover_min) {
497 this.time_to_recover_min = time_to_recover_min;
501 * @return the time_to_recover_max
502 * @since mod_jk 1.2.21
504 public int getTime_to_recover_max() {
505 return time_to_recover_max;
509 * @param time_to_recover_max the time_to_recover_max to set
510 * @since mod_jk 1.2.21
512 public void setTime_to_recover_max(int time_to_recover_max) {
513 this.time_to_recover_max = time_to_recover_max;