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