KickJava   Java API By Example, From Geeks To Geeks.

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


1 // $Header: /home/cvs/jakarta-jmeter/src/monitor/model/org/apache/jmeter/monitor/model/ThreadInfoImpl.java,v 1.2 2004/03/19 23:35:21 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 /**
20  *
21  * @version $Revision: 1.2 $ on $Date: 2004/03/19 23:35:21 $
22  */

23 public class ThreadInfoImpl implements ThreadInfo
24 {
25     private int maxSpareThreads = 0;
26     private int minSpareThreads = 0;
27     private int maxThreads = 0;
28     private int currentThreadCount = 0;
29     private int currentThreadsBusy = 0;
30     
31     /**
32      *
33      */

34     public ThreadInfoImpl()
35     {
36         super();
37     }
38
39     public int getMaxSpareThreads()
40     {
41         return this.maxSpareThreads;
42     }
43
44     public void setMaxSpareThreads(int value)
45     {
46         this.maxSpareThreads = value;
47     }
48
49     public int getMinSpareThreads()
50     {
51         return this.minSpareThreads;
52     }
53
54     public void setMinSpareThreads(int value)
55     {
56         this.minSpareThreads = value;
57     }
58
59     public int getMaxThreads()
60     {
61         return this.maxThreads;
62     }
63
64     public void setMaxThreads(int value)
65     {
66         this.maxThreads = value;
67     }
68
69     public int getCurrentThreadsBusy()
70     {
71         return this.currentThreadsBusy;
72     }
73
74     public void setCurrentThreadsBusy(int value)
75     {
76         this.currentThreadsBusy = value;
77     }
78
79     public int getCurrentThreadCount()
80     {
81         return this.currentThreadCount;
82     }
83
84     public void setCurrentThreadCount(int value)
85     {
86         this.currentThreadCount = value;
87     }
88
89 }
90
Popular Tags