bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / jkstatus / src / share / org / apache / jk / status / JkStatus.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 import java.util.ArrayList;
21 import java.util.List;
22
23 /**
24  * @author Peter Rossbach
25  * @version $Revision: 485242 $ $Date: 2006-12-10 20:45:39 +0100 (Sun, 10 Dec 2006) $
26  * @see org.apache.jk.status.JkStatusParser
27  */
28 public class JkStatus implements Serializable {
29
30     JkServer server ;
31     JkSoftware software ;
32     JkResult result ;
33     List balancers = new ArrayList() ;
34    
35     /**
36      * @return Returns the balancers.
37      */
38     public List getBalancers() {
39         return balancers;
40     }
41     /**
42      * @param balancers The balancers to set.
43      */
44     public void setBalancers(List balancers) {
45         this.balancers = balancers;
46     }
47     
48     public void addBalancer(JkBalancer balancer) {
49       balancers.add(balancer);
50     }
51     
52     public void removeBalancer(JkBalancer balancer) {
53       balancers.remove(balancer);
54     }
55
56     /**
57      * @return Returns the server.
58      */
59     public JkServer getServer() {
60         return server;
61     }
62     public void setServer(JkServer server) {
63        this.server = server ;
64     }
65         /**
66          * @return the result
67          */
68         public JkResult getResult() {
69                 return result;
70         }
71         /**
72          * @param result the result to set
73          */
74         public void setResult(JkResult result) {
75                 this.result = result;
76         }
77     
78     /**
79      * @return Returns the software.
80      */
81     public JkSoftware getSoftware() {
82         return software;
83     }
84     /**
85      * @param software The software to set.
86      */
87     public void setSoftware(JkSoftware software) {
88         this.software = software;
89     }
90 }