View Javadoc
1   /*
2    * Licensed under the GPL License. You may not use this file except in compliance with the License.
3    * You may obtain a copy of the License at
4    *
5    *   https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6    *
7    * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8    * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9    * PURPOSE.
10   */
11  package psiprobe.model;
12  
13  import java.io.Serializable;
14  
15  /**
16   * POJO representing Tomcat's web application.
17   */
18  public class Application implements Serializable {
19  
20    /** The Constant serialVersionUID. */
21    private static final long serialVersionUID = 1L;
22  
23    /** The name. */
24    private String name;
25  
26    /** The display name. */
27    private String displayName;
28  
29    /** The doc base. */
30    private String docBase;
31  
32    /** The available. */
33    private boolean available;
34  
35    /** The session count. */
36    private long sessionCount;
37  
38    /** The session attribute count. */
39    private long sessionAttributeCount;
40  
41    /** The context attribute count. */
42    private int contextAttributeCount;
43  
44    /** The data source busy score. */
45    private int dataSourceBusyScore;
46  
47    /** The data source established score. */
48    private int dataSourceEstablishedScore;
49  
50    /** The distributable. */
51    private boolean distributable;
52  
53    /** The session timeout. */
54    private int sessionTimeout;
55  
56    /** The servlet version. */
57    private String servletVersion;
58  
59    /** The serializable. */
60    private boolean serializable;
61  
62    /** The size. */
63    private long size;
64  
65    /** The servlet count. */
66    private int servletCount;
67  
68    /** The request count. */
69    private int requestCount;
70  
71    /** The processing time. */
72    private long processingTime;
73  
74    /** The error count. */
75    private int errorCount;
76  
77    /** The min time. */
78    private long minTime;
79  
80    /** The max time. */
81    private long maxTime;
82  
83    /** The avg time. */
84    private long avgTime;
85  
86    /**
87     * Gets the name.
88     *
89     * @return the name
90     */
91    public String getName() {
92      return name;
93    }
94  
95    /**
96     * Sets the name.
97     *
98     * @param name the new name
99     */
100   public void setName(String name) {
101     this.name = name;
102   }
103 
104   /**
105    * Gets the display name.
106    *
107    * @return the display name
108    */
109   public String getDisplayName() {
110     return displayName;
111   }
112 
113   /**
114    * Sets the display name.
115    *
116    * @param displayName the new display name
117    */
118   public void setDisplayName(String displayName) {
119     this.displayName = displayName;
120   }
121 
122   /**
123    * Gets the doc base.
124    *
125    * @return the doc base
126    */
127   public String getDocBase() {
128     return docBase;
129   }
130 
131   /**
132    * Sets the doc base.
133    *
134    * @param docBase the new doc base
135    */
136   public void setDocBase(String docBase) {
137     this.docBase = docBase;
138   }
139 
140   /**
141    * Checks if is available.
142    *
143    * @return true, if is available
144    */
145   public boolean isAvailable() {
146     return available;
147   }
148 
149   /**
150    * Sets the available.
151    *
152    * @param available the new available
153    */
154   public void setAvailable(boolean available) {
155     this.available = available;
156   }
157 
158   /**
159    * Gets the session count.
160    *
161    * @return the session count
162    */
163   public long getSessionCount() {
164     return sessionCount;
165   }
166 
167   /**
168    * Sets the session count.
169    *
170    * @param sessionCount the new session count
171    */
172   public void setSessionCount(long sessionCount) {
173     this.sessionCount = sessionCount;
174   }
175 
176   /**
177    * Gets the session attribute count.
178    *
179    * @return the session attribute count
180    */
181   public long getSessionAttributeCount() {
182     return sessionAttributeCount;
183   }
184 
185   /**
186    * Sets the session attribute count.
187    *
188    * @param sessionAttributeCount the new session attribute count
189    */
190   public void setSessionAttributeCount(long sessionAttributeCount) {
191     this.sessionAttributeCount = sessionAttributeCount;
192   }
193 
194   /**
195    * Gets the context attribute count.
196    *
197    * @return the context attribute count
198    */
199   public int getContextAttributeCount() {
200     return contextAttributeCount;
201   }
202 
203   /**
204    * Sets the context attribute count.
205    *
206    * @param contextAttributeCount the new context attribute count
207    */
208   public void setContextAttributeCount(int contextAttributeCount) {
209     this.contextAttributeCount = contextAttributeCount;
210   }
211 
212   /**
213    * Gets the data source busy score.
214    *
215    * @return the data source busy score
216    */
217   public int getDataSourceBusyScore() {
218     return dataSourceBusyScore;
219   }
220 
221   /**
222    * Sets the data source busy score.
223    *
224    * @param dataSourceBusyScore the new data source busy score
225    */
226   public void setDataSourceBusyScore(int dataSourceBusyScore) {
227     this.dataSourceBusyScore = dataSourceBusyScore;
228   }
229 
230   /**
231    * Gets the data source established score.
232    *
233    * @return the data source established score
234    */
235   public int getDataSourceEstablishedScore() {
236     return dataSourceEstablishedScore;
237   }
238 
239   /**
240    * Sets the data source established score.
241    *
242    * @param dataSourceEstablishedScore the new data source established score
243    */
244   public void setDataSourceEstablishedScore(int dataSourceEstablishedScore) {
245     this.dataSourceEstablishedScore = dataSourceEstablishedScore;
246   }
247 
248   /**
249    * Checks if is distributable.
250    *
251    * @return true, if is distributable
252    */
253   public boolean isDistributable() {
254     return distributable;
255   }
256 
257   /**
258    * Sets the distributable.
259    *
260    * @param distributable the new distributable
261    */
262   public void setDistributable(boolean distributable) {
263     this.distributable = distributable;
264   }
265 
266   /**
267    * Gets the session timeout.
268    *
269    * @return the session timeout
270    */
271   public int getSessionTimeout() {
272     return sessionTimeout;
273   }
274 
275   /**
276    * Sets the session timeout.
277    *
278    * @param sessionTimeout the new session timeout
279    */
280   public void setSessionTimeout(int sessionTimeout) {
281     this.sessionTimeout = sessionTimeout;
282   }
283 
284   /**
285    * Gets the servlet version.
286    *
287    * @return the servlet version
288    */
289   public String getServletVersion() {
290     return servletVersion;
291   }
292 
293   /**
294    * Sets the servlet version.
295    *
296    * @param servletVersion the new servlet version
297    */
298   public void setServletVersion(String servletVersion) {
299     this.servletVersion = servletVersion;
300   }
301 
302   /**
303    * Gets the size.
304    *
305    * @return the size
306    */
307   public long getSize() {
308     return size;
309   }
310 
311   /**
312    * Sets the size.
313    *
314    * @param size the new size
315    */
316   public void setSize(long size) {
317     this.size = size;
318   }
319 
320   /**
321    * Adds the size.
322    *
323    * @param size the size
324    */
325   public void addSize(long size) {
326     this.size += size;
327   }
328 
329   /**
330    * Checks if is serializable.
331    *
332    * @return true, if is serializable
333    */
334   public boolean isSerializable() {
335     return serializable;
336   }
337 
338   /**
339    * Sets the serializable.
340    *
341    * @param serializable the new serializable
342    */
343   public void setSerializable(boolean serializable) {
344     this.serializable = serializable;
345   }
346 
347   /**
348    * Gets the servlet count.
349    *
350    * @return the servlet count
351    */
352   public int getServletCount() {
353     return servletCount;
354   }
355 
356   /**
357    * Sets the servlet count.
358    *
359    * @param servletCount the new servlet count
360    */
361   public void setServletCount(int servletCount) {
362     this.servletCount = servletCount;
363   }
364 
365   /**
366    * Gets the request count.
367    *
368    * @return the request count
369    */
370   public int getRequestCount() {
371     return requestCount;
372   }
373 
374   /**
375    * Sets the request count.
376    *
377    * @param requestCount the new request count
378    */
379   public void setRequestCount(int requestCount) {
380     this.requestCount = requestCount;
381   }
382 
383   /**
384    * Gets the processing time.
385    *
386    * @return the processing time
387    */
388   public long getProcessingTime() {
389     return processingTime;
390   }
391 
392   /**
393    * Sets the processing time.
394    *
395    * @param processingTime the new processing time
396    */
397   public void setProcessingTime(long processingTime) {
398     this.processingTime = processingTime;
399   }
400 
401   /**
402    * Gets the error count.
403    *
404    * @return the error count
405    */
406   public int getErrorCount() {
407     return errorCount;
408   }
409 
410   /**
411    * Sets the error count.
412    *
413    * @param errorCount the new error count
414    */
415   public void setErrorCount(int errorCount) {
416     this.errorCount = errorCount;
417   }
418 
419   /**
420    * Gets the min time.
421    *
422    * @return the min time
423    */
424   public long getMinTime() {
425     return minTime;
426   }
427 
428   /**
429    * Sets the min time.
430    *
431    * @param minTime the new min time
432    */
433   public void setMinTime(long minTime) {
434     this.minTime = minTime;
435   }
436 
437   /**
438    * Gets the max time.
439    *
440    * @return the max time
441    */
442   public long getMaxTime() {
443     return maxTime;
444   }
445 
446   /**
447    * Sets the max time.
448    *
449    * @param maxTime the new max time
450    */
451   public void setMaxTime(long maxTime) {
452     this.maxTime = maxTime;
453   }
454 
455   /**
456    * Gets the avg time.
457    *
458    * @return the avg time
459    */
460   public long getAvgTime() {
461     return avgTime;
462   }
463 
464   /**
465    * Sets the avg time.
466    *
467    * @param avgTime the new avg time
468    */
469   public void setAvgTime(long avgTime) {
470     this.avgTime = avgTime;
471   }
472 
473 }