1
2
3
4
5
6
7
8
9
10
11 package psiprobe.model;
12
13 import java.util.ArrayList;
14 import java.util.Collection;
15 import java.util.Collections;
16 import java.util.List;
17
18
19
20
21 public class ServletInfo {
22
23
24 private String applicationName;
25
26
27 private String servletName;
28
29
30 private String servletClass;
31
32
33 private boolean available;
34
35
36 private int loadOnStartup;
37
38
39 private String runAs;
40
41
42 private int errorCount;
43
44
45 private long loadTime;
46
47
48 private long maxTime;
49
50
51 private long minTime;
52
53
54 private long processingTime;
55
56
57 private int requestCount;
58
59
60 private boolean singleThreaded;
61
62
63 private int allocationCount;
64
65
66 private int maxInstances;
67
68
69 private List<String> mappings;
70
71
72
73
74 public ServletInfo() {
75 mappings = new ArrayList<>();
76 }
77
78
79
80
81
82
83 public String getApplicationName() {
84 return applicationName;
85 }
86
87
88
89
90
91
92 public void setApplicationName(String applicationName) {
93 this.applicationName = applicationName;
94 }
95
96
97
98
99
100
101 public String getServletName() {
102 return servletName;
103 }
104
105
106
107
108
109
110 public void setServletName(String servletName) {
111 this.servletName = servletName;
112 }
113
114
115
116
117
118
119 public String getServletClass() {
120 return servletClass;
121 }
122
123
124
125
126
127
128 public void setServletClass(String servletClass) {
129 this.servletClass = servletClass;
130 }
131
132
133
134
135
136
137 public boolean isAvailable() {
138 return available;
139 }
140
141
142
143
144
145
146 public void setAvailable(boolean available) {
147 this.available = available;
148 }
149
150
151
152
153
154
155 public int getLoadOnStartup() {
156 return loadOnStartup;
157 }
158
159
160
161
162
163
164 public void setLoadOnStartup(int loadOnStartup) {
165 this.loadOnStartup = loadOnStartup;
166 }
167
168
169
170
171
172
173 public String getRunAs() {
174 return runAs;
175 }
176
177
178
179
180
181
182 public void setRunAs(String runAs) {
183 this.runAs = runAs;
184 }
185
186
187
188
189
190
191 public int getErrorCount() {
192 return errorCount;
193 }
194
195
196
197
198
199
200 public void setErrorCount(int errorCount) {
201 this.errorCount = errorCount;
202 }
203
204
205
206
207
208
209 public long getLoadTime() {
210 return loadTime;
211 }
212
213
214
215
216
217
218 public void setLoadTime(long loadTime) {
219 this.loadTime = loadTime;
220 }
221
222
223
224
225
226
227 public long getMaxTime() {
228 return maxTime;
229 }
230
231
232
233
234
235
236 public void setMaxTime(long maxTime) {
237 this.maxTime = maxTime;
238 }
239
240
241
242
243
244
245 public long getMinTime() {
246 return minTime;
247 }
248
249
250
251
252
253
254 public void setMinTime(long minTime) {
255 this.minTime = minTime;
256 }
257
258
259
260
261
262
263 public long getProcessingTime() {
264 return processingTime;
265 }
266
267
268
269
270
271
272 public void setProcessingTime(long processingTime) {
273 this.processingTime = processingTime;
274 }
275
276
277
278
279
280
281 public int getRequestCount() {
282 return requestCount;
283 }
284
285
286
287
288
289
290 public void setRequestCount(int requestCount) {
291 this.requestCount = requestCount;
292 }
293
294
295
296
297
298
299 public boolean isSingleThreaded() {
300 return singleThreaded;
301 }
302
303
304
305
306
307
308 public void setSingleThreaded(boolean singleThreaded) {
309 this.singleThreaded = singleThreaded;
310 }
311
312
313
314
315
316
317 public int getAllocationCount() {
318 return allocationCount;
319 }
320
321
322
323
324
325
326 public void setAllocationCount(int allocationCount) {
327 this.allocationCount = allocationCount;
328 }
329
330
331
332
333
334
335 public int getMaxInstances() {
336 return maxInstances;
337 }
338
339
340
341
342
343
344 public void setMaxInstances(int maxInstances) {
345 this.maxInstances = maxInstances;
346 }
347
348
349
350
351
352
353 public List<String> getMappings() {
354 return mappings == null ? Collections.emptyList() : new ArrayList<>(mappings);
355 }
356
357
358
359
360
361
362 public void setMappings(Collection<String> mappings) {
363 this.mappings = mappings == null ? Collections.emptyList() : new ArrayList<>(mappings);
364 }
365
366 }