1
2
3
4
5
6
7
8
9
10
11 package psiprobe.model;
12
13
14
15
16 public class TomcatTestReport {
17
18
19 public static final int TEST_UNKNOWN = 0;
20
21
22 public static final int TEST_PASSED = 1;
23
24
25 public static final int TEST_FAILED = 2;
26
27
28
29
30
31
32 public static final int DEFAULT_MEMORY_SIZE = 1024 * 1024;
33
34
35 private static final int DEFAULT_FILE_COUNT = 10;
36
37
38 private String contextName;
39
40
41 private String dataSourceName;
42
43
44 private int datasourceUsageScore;
45
46
47 private long maxServiceTime;
48
49
50 private int datasourceTest = TEST_UNKNOWN;
51
52
53 private int fileTest = TEST_UNKNOWN;
54
55
56 private int memoryTest = TEST_UNKNOWN;
57
58
59 private int webappAvailabilityTest = TEST_UNKNOWN;
60
61
62 private long testDuration;
63
64
65
66
67
68
69 public String getContextName() {
70 return contextName;
71 }
72
73
74
75
76
77
78 public void setContextName(String contextName) {
79 this.contextName = contextName;
80 }
81
82
83
84
85
86
87 public int getDatasourceUsageScore() {
88 return datasourceUsageScore;
89 }
90
91
92
93
94
95
96 public void setDatasourceUsageScore(int datasourceUsageScore) {
97 this.datasourceUsageScore = datasourceUsageScore;
98 }
99
100
101
102
103
104
105 public String getDataSourceName() {
106 return dataSourceName;
107 }
108
109
110
111
112
113
114 public void setDataSourceName(String dataSourceName) {
115 this.dataSourceName = dataSourceName;
116 }
117
118
119
120
121
122
123 public int getDatasourceTest() {
124 return datasourceTest;
125 }
126
127
128
129
130
131
132 public void setDatasourceTest(int datasourceTest) {
133 this.datasourceTest = datasourceTest;
134 }
135
136
137
138
139
140
141 public int getFileTest() {
142 return fileTest;
143 }
144
145
146
147
148
149
150 public void setFileTest(int fileTest) {
151 this.fileTest = fileTest;
152 }
153
154
155
156
157
158
159 public int getMemoryTest() {
160 return memoryTest;
161 }
162
163
164
165
166
167
168 public void setMemoryTest(int memoryTest) {
169 this.memoryTest = memoryTest;
170 }
171
172
173
174
175
176
177 public int getDefaultFileCount() {
178 return DEFAULT_FILE_COUNT;
179 }
180
181
182
183
184
185
186 public long getTestDuration() {
187 return testDuration;
188 }
189
190
191
192
193
194
195 public void setTestDuration(long testDuration) {
196 this.testDuration = testDuration;
197 }
198
199
200
201
202
203
204 public long getMaxProcessingTime() {
205 return maxServiceTime;
206 }
207
208
209
210
211
212
213 public void setMaxServiceTime(long maxProcessingTime) {
214 this.maxServiceTime = maxProcessingTime;
215 }
216
217
218
219
220
221
222 public int getWebappAvailabilityTest() {
223 return webappAvailabilityTest;
224 }
225
226
227
228
229
230
231 public void setWebappAvailabilityTest(int webappAvailabilityTest) {
232 this.webappAvailabilityTest = webappAvailabilityTest;
233 }
234
235 }