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
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 @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
88
89
90
91
92
93
94 public String getId() {
95 return id;
96 }
97
98
99
100
101
102
103
104
105
106 public void setId(String value) {
107 this.id = value;
108 }
109
110
111
112
113
114
115
116
117
118 public String getUri() {
119 return uri;
120 }
121
122
123
124
125
126
127
128
129
130 public void setUri(String value) {
131 this.uri = value;
132 }
133
134
135
136
137
138 public boolean isOperationalstatus() {
139 return operationalstatus;
140 }
141
142
143
144
145
146 public void setOperationalstatus(boolean value) {
147 this.operationalstatus = value;
148 }
149
150
151
152
153
154
155
156
157
158 public String getStatusmessage() {
159 return statusmessage;
160 }
161
162
163
164
165
166
167
168
169
170 public void setStatusmessage(String value) {
171 this.statusmessage = value;
172 }
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
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
234
235
236
237
238
239
240 public Long getBytesusedMemory() {
241 return bytesusedMemory;
242 }
243
244
245
246
247
248
249
250
251
252 public void setBytesusedMemory(Long value) {
253 this.bytesusedMemory = value;
254 }
255
256
257
258
259
260
261
262
263
264 public Double getPercentusedCPU() {
265 return percentusedCPU;
266 }
267
268
269
270
271
272
273
274
275
276 public void setPercentusedCPU(Double value) {
277 this.percentusedCPU = value;
278 }
279
280
281
282
283
284
285
286
287
288 public Long getNumberofActiveThreads() {
289 return numberofActiveThreads;
290 }
291
292
293
294
295
296
297
298
299
300 public void setNumberofActiveThreads(Long value) {
301 this.numberofActiveThreads = value;
302 }
303
304
305
306
307
308
309
310
311
312 public Calendar getTimestamp() {
313 return timestamp;
314 }
315
316
317
318
319
320
321
322
323
324 public void setTimestamp(Calendar value) {
325 this.timestamp = value;
326 }
327
328
329
330
331
332
333
334
335
336 public Calendar getStartedAt() {
337 return startedAt;
338 }
339
340
341
342
343
344
345
346
347
348 public void setStartedAt(Calendar value) {
349 this.startedAt = value;
350 }
351
352 }