1
2
3
4
5
6
7
8
9
10
11 package psiprobe.model;
12
13
14
15
16 public class ThreadPool {
17
18
19 private String name;
20
21
22 private int maxThreads;
23
24
25 private int minSpareThreads;
26
27
28 private int maxSpareThreads;
29
30
31 private int currentThreadCount;
32
33
34 private int currentThreadsBusy;
35
36
37
38
39
40
41 public String getName() {
42 return name;
43 }
44
45
46
47
48
49
50 public void setName(String name) {
51 this.name = name;
52 }
53
54
55
56
57
58
59 public int getMaxThreads() {
60 return maxThreads;
61 }
62
63
64
65
66
67
68 public void setMaxThreads(int maxThreads) {
69 this.maxThreads = maxThreads;
70 }
71
72
73
74
75
76
77 public int getMinSpareThreads() {
78 return minSpareThreads;
79 }
80
81
82
83
84
85
86 public void setMinSpareThreads(int minSpareThreads) {
87 this.minSpareThreads = minSpareThreads;
88 }
89
90
91
92
93
94
95 public int getMaxSpareThreads() {
96 return maxSpareThreads;
97 }
98
99
100
101
102
103
104 public void setMaxSpareThreads(int maxSpareThreads) {
105 this.maxSpareThreads = maxSpareThreads;
106 }
107
108
109
110
111
112
113 public int getCurrentThreadCount() {
114 return currentThreadCount;
115 }
116
117
118
119
120
121
122 public void setCurrentThreadCount(int currentThreadCount) {
123 this.currentThreadCount = currentThreadCount;
124 }
125
126
127
128
129
130
131 public int getCurrentThreadsBusy() {
132 return currentThreadsBusy;
133 }
134
135
136
137
138
139
140 public void setCurrentThreadsBusy(int currentThreadsBusy) {
141 this.currentThreadsBusy = currentThreadsBusy;
142 }
143
144 }