1
2 package org.miloss.fgsms.services.interfaces.policyconfiguration;
3
4 import java.io.Serializable;
5 import java.util.ArrayList;
6 import java.util.List;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlRootElement;
11 import javax.xml.bind.annotation.XmlType;
12 import org.miloss.fgsms.services.interfaces.common.DriveInformation;
13 import org.miloss.fgsms.services.interfaces.common.NetworkAdapterInfo;
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 @XmlAccessorType(XmlAccessType.FIELD)
46 @XmlType(name = "MachineInformation", propOrder = {
47 "hostname",
48 "uri",
49 "addresses",
50 "domain",
51 "operatingsystem",
52 "cpucorecount",
53 "memoryinstalled",
54 "driveInformation",
55 "propertyPair"
56 })
57 @XmlRootElement
58 public class MachineInformation
59 implements Serializable
60 {
61
62 private final static long serialVersionUID = 1L;
63 @XmlElement(required = true, nillable = true)
64 protected String hostname;
65 @XmlElement(required = true)
66 protected String uri;
67 @XmlElement(required = true, nillable = true)
68 protected List<NetworkAdapterInfo> addresses;
69 @XmlElement(required = true, nillable = true)
70 protected String domain;
71 @XmlElement(required = true, nillable = true)
72 protected String operatingsystem;
73 protected long cpucorecount;
74 protected long memoryinstalled;
75 @XmlElement(required = true, nillable = true)
76 protected List<DriveInformation> driveInformation;
77 @XmlElement(name = "PropertyPair", required = true, nillable = true)
78 protected List<PropertyPair> propertyPair;
79
80
81
82
83
84
85
86
87
88 public String getHostname() {
89 return hostname;
90 }
91
92
93
94
95
96
97
98
99
100 public void setHostname(String value) {
101 this.hostname = value;
102 }
103
104 public boolean isSetHostname() {
105 return (this.hostname!= null);
106 }
107
108
109
110
111
112
113
114
115
116 public String getUri() {
117 return uri;
118 }
119
120
121
122
123
124
125
126
127
128 public void setUri(String value) {
129 this.uri = value;
130 }
131
132 public boolean isSetUri() {
133 return (this.uri!= null);
134 }
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158 public List<NetworkAdapterInfo> getAddresses() {
159 if (addresses == null) {
160 addresses = new ArrayList<NetworkAdapterInfo>();
161 }
162 return this.addresses;
163 }
164
165 public boolean isSetAddresses() {
166 return ((this.addresses!= null)&&(!this.addresses.isEmpty()));
167 }
168
169 public void unsetAddresses() {
170 this.addresses = null;
171 }
172
173
174
175
176
177
178
179
180
181 public String getDomain() {
182 return domain;
183 }
184
185
186
187
188
189
190
191
192
193 public void setDomain(String value) {
194 this.domain = value;
195 }
196
197 public boolean isSetDomain() {
198 return (this.domain!= null);
199 }
200
201
202
203
204
205
206
207
208
209 public String getOperatingsystem() {
210 return operatingsystem;
211 }
212
213
214
215
216
217
218
219
220
221 public void setOperatingsystem(String value) {
222 this.operatingsystem = value;
223 }
224
225 public boolean isSetOperatingsystem() {
226 return (this.operatingsystem!= null);
227 }
228
229
230
231
232
233 public long getCpucorecount() {
234 return cpucorecount;
235 }
236
237
238
239
240
241 public void setCpucorecount(long value) {
242 this.cpucorecount = value;
243 }
244
245 public boolean isSetCpucorecount() {
246 return true;
247 }
248
249
250
251
252
253 public long getMemoryinstalled() {
254 return memoryinstalled;
255 }
256
257
258
259
260
261 public void setMemoryinstalled(long value) {
262 this.memoryinstalled = value;
263 }
264
265 public boolean isSetMemoryinstalled() {
266 return true;
267 }
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291 public List<DriveInformation> getDriveInformation() {
292 if (driveInformation == null) {
293 driveInformation = new ArrayList<DriveInformation>();
294 }
295 return this.driveInformation;
296 }
297
298 public boolean isSetDriveInformation() {
299 return ((this.driveInformation!= null)&&(!this.driveInformation.isEmpty()));
300 }
301
302 public void unsetDriveInformation() {
303 this.driveInformation = null;
304 }
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328 public List<PropertyPair> getPropertyPair() {
329 if (propertyPair == null) {
330 propertyPair = new ArrayList<PropertyPair>();
331 }
332 return this.propertyPair;
333 }
334
335 public boolean isSetPropertyPair() {
336 return ((this.propertyPair!= null)&&(!this.propertyPair.isEmpty()));
337 }
338
339 public void unsetPropertyPair() {
340 this.propertyPair = null;
341 }
342
343 }