KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jmeter > monitor > model > StatusImpl


1 // $Header: /home/cvs/jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/StatusImpl.java,v 1.2 2004/03/19 23:35:20 sebb Exp $
2
/*
3  * Copyright 2004 The Apache Software Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * 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.jmeter.monitor.model;
18
19 import java.util.LinkedList JavaDoc;
20 import java.util.List JavaDoc;
21
22 /**
23  *
24  * @version $Revision: 1.2 $ on $Date: 2004/03/19 23:35:20 $
25  */

26 public class StatusImpl implements Status
27 {
28     private Jvm jvm = null;
29     private List JavaDoc connectors = null;
30     
31     /**
32      *
33      */

34     public StatusImpl()
35     {
36         super();
37         connectors = new LinkedList JavaDoc();
38     }
39
40     /* (non-Javadoc)
41      * @see org.apache.jmeter.monitor.model.Status#getJvm()
42      */

43     public Jvm getJvm()
44     {
45         return jvm;
46     }
47
48     /* (non-Javadoc)
49      * @see org.apache.jmeter.monitor.model.Status#setJvm(org.apache.jmeter.monitor.model.Jvm)
50      */

51     public void setJvm(Jvm vm)
52     {
53         this.jvm = vm;
54     }
55
56     /* (non-Javadoc)
57      * @see org.apache.jmeter.monitor.model.Status#getConnector()
58      */

59     public List JavaDoc getConnector()
60     {
61         return this.connectors;
62     }
63     
64     public void addConnector(Connector conn){
65         this.connectors.add(conn);
66     }
67
68 }
69
Popular Tags