1
2
3
4
5
6
7
8 package org.apache.maven.continuum.xmlrpc.project;
9
10
11
12
13
14 import org.apache.continuum.xmlrpc.release.ContinuumReleaseResult;
15 import org.apache.continuum.xmlrpc.repository.AbstractPurgeConfiguration;
16 import org.apache.continuum.xmlrpc.repository.DirectoryPurgeConfiguration;
17 import org.apache.continuum.xmlrpc.repository.LocalRepository;
18 import org.apache.continuum.xmlrpc.repository.RepositoryPurgeConfiguration;
19 import org.apache.maven.continuum.xmlrpc.scm.ChangeFile;
20 import org.apache.maven.continuum.xmlrpc.scm.ChangeSet;
21 import org.apache.maven.continuum.xmlrpc.scm.ScmResult;
22 import org.apache.maven.continuum.xmlrpc.system.Installation;
23 import org.apache.maven.continuum.xmlrpc.system.Profile;
24 import org.apache.maven.continuum.xmlrpc.system.SystemConfiguration;
25
26
27
28
29
30
31
32
33 @SuppressWarnings( "all" )
34 public class BuildResultSummary
35 implements java.io.Serializable
36 {
37
38
39
40
41
42
43
44
45 private int id = 0;
46
47
48
49
50 private int buildNumber = 0;
51
52
53
54
55 private int state = 0;
56
57
58
59
60 private long startTime = 0L;
61
62
63
64
65 private long endTime = 0L;
66
67
68
69
70 private boolean success = false;
71
72
73
74
75 private int exitCode = 0;
76
77
78
79
80 private String error;
81
82
83
84
85 private int trigger = 0;
86
87
88
89
90 private ProjectSummary project;
91
92
93
94
95 private BuildDefinition buildDefinition;
96
97
98
99
100
101
102
103
104
105
106
107
108 public boolean equals( Object other )
109 {
110 if ( this == other )
111 {
112 return true;
113 }
114
115 if ( !( other instanceof BuildResultSummary ) )
116 {
117 return false;
118 }
119
120 BuildResultSummary that = (BuildResultSummary) other;
121 boolean result = true;
122
123 result = result && id == that.id;
124
125 return result;
126 }
127
128
129
130
131
132
133 public BuildDefinition getBuildDefinition()
134 {
135 return this.buildDefinition;
136 }
137
138
139
140
141
142
143 public int getBuildNumber()
144 {
145 return this.buildNumber;
146 }
147
148
149
150
151
152
153 public long getEndTime()
154 {
155 return this.endTime;
156 }
157
158
159
160
161
162
163 public String getError()
164 {
165 return this.error;
166 }
167
168
169
170
171
172
173 public int getExitCode()
174 {
175 return this.exitCode;
176 }
177
178
179
180
181
182
183 public int getId()
184 {
185 return this.id;
186 }
187
188
189
190
191
192
193 public ProjectSummary getProject()
194 {
195 return this.project;
196 }
197
198
199
200
201
202
203 public long getStartTime()
204 {
205 return this.startTime;
206 }
207
208
209
210
211
212
213 public int getState()
214 {
215 return this.state;
216 }
217
218
219
220
221
222
223 public int getTrigger()
224 {
225 return this.trigger;
226 }
227
228
229
230
231
232
233 public int hashCode()
234 {
235 int result = 17;
236
237 result = 37 * result + (int) id;
238
239 return result;
240 }
241
242
243
244
245
246
247 public boolean isSuccess()
248 {
249 return this.success;
250 }
251
252
253
254
255
256
257 public void setBuildDefinition( BuildDefinition buildDefinition )
258 {
259 this.buildDefinition = buildDefinition;
260 }
261
262
263
264
265
266
267 public void setBuildNumber( int buildNumber )
268 {
269 this.buildNumber = buildNumber;
270 }
271
272
273
274
275
276
277 public void setEndTime( long endTime )
278 {
279 this.endTime = endTime;
280 }
281
282
283
284
285
286
287 public void setError( String error )
288 {
289 this.error = error;
290 }
291
292
293
294
295
296
297 public void setExitCode( int exitCode )
298 {
299 this.exitCode = exitCode;
300 }
301
302
303
304
305
306
307 public void setId( int id )
308 {
309 this.id = id;
310 }
311
312
313
314
315
316
317 public void setProject( ProjectSummary project )
318 {
319 this.project = project;
320 }
321
322
323
324
325
326
327 public void setStartTime( long startTime )
328 {
329 this.startTime = startTime;
330 }
331
332
333
334
335
336
337 public void setState( int state )
338 {
339 this.state = state;
340 }
341
342
343
344
345
346
347 public void setSuccess( boolean success )
348 {
349 this.success = success;
350 }
351
352
353
354
355
356
357 public void setTrigger( int trigger )
358 {
359 this.trigger = trigger;
360 }
361
362
363
364
365
366
367 public java.lang.String toString()
368 {
369 StringBuilder buf = new StringBuilder( 128 );
370
371 buf.append( "id = '" );
372 buf.append( getId() );
373 buf.append( "'" );
374
375 return buf.toString();
376 }
377
378 }