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 * container for machine specific information
18 *
19 * <p>Java class for MachineInformation complex type.
20 *
21 * <p>The following schema fragment specifies the expected content contained within this class.
22 *
23 * <pre>
24 * <complexType name="MachineInformation">
25 * <complexContent>
26 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27 * <sequence>
28 * <element name="hostname" type="{http://www.w3.org/2001/XMLSchema}string"/>
29 * <element name="uri" type="{http://www.w3.org/2001/XMLSchema}string"/>
30 * <element name="addresses" type="{urn:org:miloss:fgsms:services:interfaces:common}NetworkAdapterInfo" maxOccurs="unbounded"/>
31 * <element name="domain" type="{http://www.w3.org/2001/XMLSchema}string"/>
32 * <element name="operatingsystem" type="{http://www.w3.org/2001/XMLSchema}string"/>
33 * <element name="cpucorecount" type="{http://www.w3.org/2001/XMLSchema}long"/>
34 * <element name="memoryinstalled" type="{http://www.w3.org/2001/XMLSchema}long"/>
35 * <element name="driveInformation" type="{urn:org:miloss:fgsms:services:interfaces:common}driveInformation" maxOccurs="unbounded"/>
36 * <element name="PropertyPair" type="{urn:org:miloss:fgsms:services:interfaces:policyConfiguration}PropertyPair" maxOccurs="unbounded"/>
37 * </sequence>
38 * </restriction>
39 * </complexContent>
40 * </complexType>
41 * </pre>
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 * Gets the value of the hostname property.
82 *
83 * @return
84 * possible object is
85 * {@link String }
86 *
87 */
88 public String getHostname() {
89 return hostname;
90 }
91
92 /**
93 * Sets the value of the hostname property.
94 *
95 * @param value
96 * allowed object is
97 * {@link String }
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 * Gets the value of the uri property.
110 *
111 * @return
112 * possible object is
113 * {@link String }
114 *
115 */
116 public String getUri() {
117 return uri;
118 }
119
120 /**
121 * Sets the value of the uri property.
122 *
123 * @param value
124 * allowed object is
125 * {@link String }
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 * Gets the value of the addresses property.
138 *
139 * <p>
140 * This accessor method returns a reference to the live list,
141 * not a snapshot. Therefore any modification you make to the
142 * returned list will be present inside the JAXB object.
143 * This is why there is not a <CODE>set</CODE> method for the addresses property.
144 *
145 * <p>
146 * For example, to add a new item, do as follows:
147 * <pre>
148 * getAddresses().add(newItem);
149 * </pre>
150 *
151 *
152 * <p>
153 * Objects of the following type(s) are allowed in the list
154 * {@link NetworkAdapterInfo }
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 * Gets the value of the domain property.
175 *
176 * @return
177 * possible object is
178 * {@link String }
179 *
180 */
181 public String getDomain() {
182 return domain;
183 }
184
185 /**
186 * Sets the value of the domain property.
187 *
188 * @param value
189 * allowed object is
190 * {@link String }
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 * Gets the value of the operatingsystem property.
203 *
204 * @return
205 * possible object is
206 * {@link String }
207 *
208 */
209 public String getOperatingsystem() {
210 return operatingsystem;
211 }
212
213 /**
214 * Sets the value of the operatingsystem property.
215 *
216 * @param value
217 * allowed object is
218 * {@link String }
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 * Gets the value of the cpucorecount property.
231 *
232 */
233 public long getCpucorecount() {
234 return cpucorecount;
235 }
236
237 /**
238 * Sets the value of the cpucorecount property.
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 * Gets the value of the memoryinstalled property.
251 *
252 */
253 public long getMemoryinstalled() {
254 return memoryinstalled;
255 }
256
257 /**
258 * Sets the value of the memoryinstalled property.
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 * Gets the value of the driveInformation property.
271 *
272 * <p>
273 * This accessor method returns a reference to the live list,
274 * not a snapshot. Therefore any modification you make to the
275 * returned list will be present inside the JAXB object.
276 * This is why there is not a <CODE>set</CODE> method for the driveInformation property.
277 *
278 * <p>
279 * For example, to add a new item, do as follows:
280 * <pre>
281 * getDriveInformation().add(newItem);
282 * </pre>
283 *
284 *
285 * <p>
286 * Objects of the following type(s) are allowed in the list
287 * {@link DriveInformation }
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 * Gets the value of the propertyPair property.
308 *
309 * <p>
310 * This accessor method returns a reference to the live list,
311 * not a snapshot. Therefore any modification you make to the
312 * returned list will be present inside the JAXB object.
313 * This is why there is not a <CODE>set</CODE> method for the propertyPair property.
314 *
315 * <p>
316 * For example, to add a new item, do as follows:
317 * <pre>
318 * getPropertyPair().add(newItem);
319 * </pre>
320 *
321 *
322 * <p>
323 * Objects of the following type(s) are allowed in the list
324 * {@link PropertyPair }
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 }