1
2 package org.miloss.fgsms.services.interfaces.common;
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.XmlSchemaType;
11 import javax.xml.bind.annotation.XmlType;
12 import java.util.Calendar;
13
14
15 /**
16 * <p>Java class for MachinePerformanceData complex type.
17 *
18 * <p>The following schema fragment specifies the expected content contained within this class.
19 *
20 * <pre>
21 * <complexType name="MachinePerformanceData">
22 * <complexContent>
23 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
24 * <sequence>
25 * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
26 * <element name="uri" type="{http://www.w3.org/2001/XMLSchema}string"/>
27 * <element name="operationalstatus" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
28 * <element name="statusmessage" type="{http://www.w3.org/2001/XMLSchema}string"/>
29 * <element name="NetworkAdapterPerformanceData" type="{urn:org:miloss:fgsms:services:interfaces:common}NetworkAdapterPerformanceData" maxOccurs="unbounded" minOccurs="0"/>
30 * <element name="driveInformation" type="{urn:org:miloss:fgsms:services:interfaces:common}driveInformation" maxOccurs="unbounded" minOccurs="0"/>
31 * <element name="bytesusedMemory" type="{http://www.w3.org/2001/XMLSchema}long"/>
32 * <element name="percentusedCPU" type="{http://www.w3.org/2001/XMLSchema}double"/>
33 * <element name="numberofActiveThreads" type="{http://www.w3.org/2001/XMLSchema}long"/>
34 * <element name="timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
35 * <element name="startedAt" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
36 * </sequence>
37 * </restriction>
38 * </complexContent>
39 * </complexType>
40 * </pre>
41 *
42 *
43 */
44 @XmlAccessorType(XmlAccessType.FIELD)
45 @XmlType(name = "MachinePerformanceData", propOrder = {
46 "id",
47 "uri",
48 "operationalstatus",
49 "statusmessage",
50 "networkAdapterPerformanceData",
51 "driveInformation",
52 "bytesusedMemory",
53 "percentusedCPU",
54 "numberofActiveThreads",
55 "timestamp",
56 "startedAt"
57 })
58 public class MachinePerformanceData
59 implements Serializable
60 {
61
62 private final static long serialVersionUID = 1L;
63 @XmlElement(required = true, nillable = true)
64 protected String id;
65 @XmlElement(required = true)
66 protected String uri;
67 protected boolean operationalstatus;
68 @XmlElement(required = false)
69 protected String statusmessage;
70 @XmlElement(name = "NetworkAdapterPerformanceData")
71 protected List<NetworkAdapterPerformanceData> networkAdapterPerformanceData;
72 protected List<DriveInformation> driveInformation;
73 @XmlElement(required = false, type = Long.class, nillable = true)
74 protected Long bytesusedMemory;
75 @XmlElement(required = false, type = Double.class, nillable = true)
76 protected Double percentusedCPU;
77 @XmlElement(required = false, type = Long.class, nillable = true)
78 protected Long numberofActiveThreads;
79 @XmlElement(required = false)
80 @XmlSchemaType(name = "dateTime")
81 protected Calendar timestamp;
82 @XmlElement(required = false)
83 @XmlSchemaType(name = "dateTime")
84 protected Calendar startedAt;
85
86 /**
87 * Gets the value of the id property.
88 *
89 * @return
90 * possible object is
91 * {@link String }
92 *
93 */
94 public String getId() {
95 return id;
96 }
97
98 /**
99 * Sets the value of the id property.
100 *
101 * @param value
102 * allowed object is
103 * {@link String }
104 *
105 */
106 public void setId(String value) {
107 this.id = value;
108 }
109
110 /**
111 * Gets the value of the uri property.
112 *
113 * @return
114 * possible object is
115 * {@link String }
116 *
117 */
118 public String getUri() {
119 return uri;
120 }
121
122 /**
123 * Sets the value of the uri property.
124 *
125 * @param value
126 * allowed object is
127 * {@link String }
128 *
129 */
130 public void setUri(String value) {
131 this.uri = value;
132 }
133
134 /**
135 * Gets the value of the operationalstatus property.
136 *
137 */
138 public boolean isOperationalstatus() {
139 return operationalstatus;
140 }
141
142 /**
143 * Sets the value of the operationalstatus property.
144 *
145 */
146 public void setOperationalstatus(boolean value) {
147 this.operationalstatus = value;
148 }
149
150 /**
151 * Gets the value of the statusmessage property.
152 *
153 * @return
154 * possible object is
155 * {@link String }
156 *
157 */
158 public String getStatusmessage() {
159 return statusmessage;
160 }
161
162 /**
163 * Sets the value of the statusmessage property.
164 *
165 * @param value
166 * allowed object is
167 * {@link String }
168 *
169 */
170 public void setStatusmessage(String value) {
171 this.statusmessage = value;
172 }
173
174 /**
175 * Gets the value of the networkAdapterPerformanceData property.
176 *
177 * <p>
178 * This accessor method returns a reference to the live list,
179 * not a snapshot. Therefore any modification you make to the
180 * returned list will be present inside the JAXB object.
181 * This is why there is not a <CODE>set</CODE> method for the networkAdapterPerformanceData property.
182 *
183 * <p>
184 * For example, to add a new item, do as follows:
185 * <pre>
186 * getNetworkAdapterPerformanceData().add(newItem);
187 * </pre>
188 *
189 *
190 * <p>
191 * Objects of the following type(s) are allowed in the list
192 * {@link NetworkAdapterPerformanceData }
193 *
194 *
195 */
196 public List<NetworkAdapterPerformanceData> getNetworkAdapterPerformanceData() {
197 if (networkAdapterPerformanceData == null) {
198 networkAdapterPerformanceData = new ArrayList<NetworkAdapterPerformanceData>();
199 }
200 return this.networkAdapterPerformanceData;
201 }
202
203 /**
204 * Gets the value of the driveInformation property.
205 *
206 * <p>
207 * This accessor method returns a reference to the live list,
208 * not a snapshot. Therefore any modification you make to the
209 * returned list will be present inside the JAXB object.
210 * This is why there is not a <CODE>set</CODE> method for the driveInformation property.
211 *
212 * <p>
213 * For example, to add a new item, do as follows:
214 * <pre>
215 * getDriveInformation().add(newItem);
216 * </pre>
217 *
218 *
219 * <p>
220 * Objects of the following type(s) are allowed in the list
221 * {@link DriveInformation }
222 *
223 *
224 */
225 public List<DriveInformation> getDriveInformation() {
226 if (driveInformation == null) {
227 driveInformation = new ArrayList<DriveInformation>();
228 }
229 return this.driveInformation;
230 }
231
232 /**
233 * Gets the value of the bytesusedMemory property.
234 *
235 * @return
236 * possible object is
237 * {@link Long }
238 *
239 */
240 public Long getBytesusedMemory() {
241 return bytesusedMemory;
242 }
243
244 /**
245 * Sets the value of the bytesusedMemory property.
246 *
247 * @param value
248 * allowed object is
249 * {@link Long }
250 *
251 */
252 public void setBytesusedMemory(Long value) {
253 this.bytesusedMemory = value;
254 }
255
256 /**
257 * Gets the value of the percentusedCPU property.
258 *
259 * @return
260 * possible object is
261 * {@link Double }
262 *
263 */
264 public Double getPercentusedCPU() {
265 return percentusedCPU;
266 }
267
268 /**
269 * Sets the value of the percentusedCPU property.
270 *
271 * @param value
272 * allowed object is
273 * {@link Double }
274 *
275 */
276 public void setPercentusedCPU(Double value) {
277 this.percentusedCPU = value;
278 }
279
280 /**
281 * Gets the value of the numberofActiveThreads property.
282 *
283 * @return
284 * possible object is
285 * {@link Long }
286 *
287 */
288 public Long getNumberofActiveThreads() {
289 return numberofActiveThreads;
290 }
291
292 /**
293 * Sets the value of the numberofActiveThreads property.
294 *
295 * @param value
296 * allowed object is
297 * {@link Long }
298 *
299 */
300 public void setNumberofActiveThreads(Long value) {
301 this.numberofActiveThreads = value;
302 }
303
304 /**
305 * Gets the value of the timestamp property.
306 *
307 * @return
308 * possible object is
309 * {@link Calendar }
310 *
311 */
312 public Calendar getTimestamp() {
313 return timestamp;
314 }
315
316 /**
317 * Sets the value of the timestamp property.
318 *
319 * @param value
320 * allowed object is
321 * {@link Calendar }
322 *
323 */
324 public void setTimestamp(Calendar value) {
325 this.timestamp = value;
326 }
327
328 /**
329 * Gets the value of the startedAt property.
330 *
331 * @return
332 * possible object is
333 * {@link Calendar }
334 *
335 */
336 public Calendar getStartedAt() {
337 return startedAt;
338 }
339
340 /**
341 * Sets the value of the startedAt property.
342 *
343 * @param value
344 * allowed object is
345 * {@link Calendar }
346 *
347 */
348 public void setStartedAt(Calendar value) {
349 this.startedAt = value;
350 }
351
352 }