1
2
3
4
5
6
7
8 package org.apache.continuum.configuration.model;
9
10
11
12
13
14
15 @SuppressWarnings( "all" )
16 public class ContinuumConfigurationModel
17 implements java.io.Serializable
18 {
19
20
21
22
23
24
25
26
27 private String baseUrl;
28
29
30
31
32 private String buildOutputDirectory;
33
34
35
36
37 private String deploymentRepositoryDirectory;
38
39
40
41
42 private String workingDirectory;
43
44
45
46
47 private ProxyConfiguration proxyConfiguration;
48
49
50
51
52 private String releaseOutputDirectory;
53
54
55
56
57 private int numberOfBuildsInParallel = 0;
58
59
60
61
62 private boolean distributedBuildEnabled = false;
63
64
65
66
67 private String sharedSecretPassword;
68
69
70
71
72 private java.util.List<BuildAgentConfiguration> buildAgents;
73
74
75
76
77 private java.util.List<BuildAgentGroupConfiguration> buildAgentGroups;
78
79
80
81
82 private boolean initialized = false;
83
84
85
86
87 private String modelEncoding = "UTF-8";
88
89
90
91
92
93
94
95
96
97
98
99 public void addBuildAgent( BuildAgentConfiguration buildAgentConfiguration )
100 {
101 getBuildAgents().add( buildAgentConfiguration );
102 }
103
104
105
106
107
108
109 public void addBuildAgentGroup( BuildAgentGroupConfiguration buildAgentGroupConfiguration )
110 {
111 getBuildAgentGroups().add( buildAgentGroupConfiguration );
112 }
113
114
115
116
117
118
119 public String getBaseUrl()
120 {
121 return this.baseUrl;
122 }
123
124
125
126
127
128
129 public java.util.List<BuildAgentGroupConfiguration> getBuildAgentGroups()
130 {
131 if ( this.buildAgentGroups == null )
132 {
133 this.buildAgentGroups = new java.util.ArrayList<BuildAgentGroupConfiguration>();
134 }
135
136 return this.buildAgentGroups;
137 }
138
139
140
141
142
143
144 public java.util.List<BuildAgentConfiguration> getBuildAgents()
145 {
146 if ( this.buildAgents == null )
147 {
148 this.buildAgents = new java.util.ArrayList<BuildAgentConfiguration>();
149 }
150
151 return this.buildAgents;
152 }
153
154
155
156
157
158
159 public String getBuildOutputDirectory()
160 {
161 return this.buildOutputDirectory;
162 }
163
164
165
166
167
168
169 public String getDeploymentRepositoryDirectory()
170 {
171 return this.deploymentRepositoryDirectory;
172 }
173
174
175
176
177
178
179 public String getModelEncoding()
180 {
181 return this.modelEncoding;
182 }
183
184
185
186
187
188
189 public int getNumberOfBuildsInParallel()
190 {
191 return this.numberOfBuildsInParallel;
192 }
193
194
195
196
197
198
199 public ProxyConfiguration getProxyConfiguration()
200 {
201 return this.proxyConfiguration;
202 }
203
204
205
206
207
208
209 public String getReleaseOutputDirectory()
210 {
211 return this.releaseOutputDirectory;
212 }
213
214
215
216
217
218
219 public String getSharedSecretPassword()
220 {
221 return this.sharedSecretPassword;
222 }
223
224
225
226
227
228
229 public String getWorkingDirectory()
230 {
231 return this.workingDirectory;
232 }
233
234
235
236
237
238
239 public boolean isDistributedBuildEnabled()
240 {
241 return this.distributedBuildEnabled;
242 }
243
244
245
246
247
248
249 public boolean isInitialized()
250 {
251 return this.initialized;
252 }
253
254
255
256
257
258
259 public void removeBuildAgent( BuildAgentConfiguration buildAgentConfiguration )
260 {
261 getBuildAgents().remove( buildAgentConfiguration );
262 }
263
264
265
266
267
268
269 public void removeBuildAgentGroup( BuildAgentGroupConfiguration buildAgentGroupConfiguration )
270 {
271 getBuildAgentGroups().remove( buildAgentGroupConfiguration );
272 }
273
274
275
276
277
278
279 public void setBaseUrl( String baseUrl )
280 {
281 this.baseUrl = baseUrl;
282 }
283
284
285
286
287
288
289 public void setBuildAgentGroups( java.util.List<BuildAgentGroupConfiguration> buildAgentGroups )
290 {
291 this.buildAgentGroups = buildAgentGroups;
292 }
293
294
295
296
297
298
299 public void setBuildAgents( java.util.List<BuildAgentConfiguration> buildAgents )
300 {
301 this.buildAgents = buildAgents;
302 }
303
304
305
306
307
308
309 public void setBuildOutputDirectory( String buildOutputDirectory )
310 {
311 this.buildOutputDirectory = buildOutputDirectory;
312 }
313
314
315
316
317
318
319 public void setDeploymentRepositoryDirectory( String deploymentRepositoryDirectory )
320 {
321 this.deploymentRepositoryDirectory = deploymentRepositoryDirectory;
322 }
323
324
325
326
327
328
329 public void setDistributedBuildEnabled( boolean distributedBuildEnabled )
330 {
331 this.distributedBuildEnabled = distributedBuildEnabled;
332 }
333
334
335
336
337
338
339 public void setInitialized( boolean initialized )
340 {
341 this.initialized = initialized;
342 }
343
344
345
346
347
348
349 public void setModelEncoding( String modelEncoding )
350 {
351 this.modelEncoding = modelEncoding;
352 }
353
354
355
356
357
358
359 public void setNumberOfBuildsInParallel( int numberOfBuildsInParallel )
360 {
361 this.numberOfBuildsInParallel = numberOfBuildsInParallel;
362 }
363
364
365
366
367
368
369 public void setProxyConfiguration( ProxyConfiguration proxyConfiguration )
370 {
371 this.proxyConfiguration = proxyConfiguration;
372 }
373
374
375
376
377
378
379 public void setReleaseOutputDirectory( String releaseOutputDirectory )
380 {
381 this.releaseOutputDirectory = releaseOutputDirectory;
382 }
383
384
385
386
387
388
389 public void setSharedSecretPassword( String sharedSecretPassword )
390 {
391 this.sharedSecretPassword = sharedSecretPassword;
392 }
393
394
395
396
397
398
399 public void setWorkingDirectory( String workingDirectory )
400 {
401 this.workingDirectory = workingDirectory;
402 }
403
404 }