1
2 package org.miloss.fgsms.services.interfaces.dataaccessservice;
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.XmlType;
11 import org.miloss.fgsms.services.interfaces.common.DriveInformation;
12 import org.miloss.fgsms.services.interfaces.common.MachinePerformanceData;
13 import org.miloss.fgsms.services.interfaces.common.ProcessPerformanceData;
14
15
16 /**
17 * <p>Java class for MachineData complex type.
18 *
19 * <p>The following schema fragment specifies the expected content contained within this class.
20 *
21 * <pre>
22 * <complexType name="MachineData">
23 * <complexContent>
24 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
25 * <sequence>
26 * <element name="driveInformation" type="{urn:org:miloss:fgsms:services:interfaces:common}driveInformation" maxOccurs="unbounded" minOccurs="0"/>
27 * <element name="Hostname" type="{http://www.w3.org/2001/XMLSchema}string"/>
28 * <element name="DomainName" type="{http://www.w3.org/2001/XMLSchema}string"/>
29 * <element name="MachinePerformanceData" type="{urn:org:miloss:fgsms:services:interfaces:common}MachinePerformanceData"/>
30 * <element name="ProcessPerformanceData" type="{urn:org:miloss:fgsms:services:interfaces:common}ProcessPerformanceData" maxOccurs="unbounded" minOccurs="0"/>
31 * </sequence>
32 * </restriction>
33 * </complexContent>
34 * </complexType>
35 * </pre>
36 *
37 *
38 */
39 @XmlAccessorType(XmlAccessType.FIELD)
40 @XmlType(name = "MachineData", propOrder = {
41 "driveInformation",
42 "hostname",
43 "domainName",
44 "machinePerformanceData",
45 "processPerformanceData"
46 })
47 public class MachineData
48 implements Serializable
49 {
50
51 private final static long serialVersionUID = 1L;
52 protected List<DriveInformation> driveInformation;
53 @XmlElement(name = "Hostname", required = true)
54 protected String hostname;
55 @XmlElement(name = "DomainName", required = true)
56 protected String domainName;
57 @XmlElement(name = "MachinePerformanceData", required = true)
58 protected MachinePerformanceData machinePerformanceData;
59 @XmlElement(name = "ProcessPerformanceData")
60 protected List<ProcessPerformanceData> processPerformanceData;
61
62 /**
63 * Gets the value of the driveInformation property.
64 *
65 * <p>
66 * This accessor method returns a reference to the live list,
67 * not a snapshot. Therefore any modification you make to the
68 * returned list will be present inside the JAXB object.
69 * This is why there is not a <CODE>set</CODE> method for the driveInformation property.
70 *
71 * <p>
72 * For example, to add a new item, do as follows:
73 * <pre>
74 * getDriveInformation().add(newItem);
75 * </pre>
76 *
77 *
78 * <p>
79 * Objects of the following type(s) are allowed in the list
80 * {@link DriveInformation }
81 *
82 *
83 */
84 public List<DriveInformation> getDriveInformation() {
85 if (driveInformation == null) {
86 driveInformation = new ArrayList<DriveInformation>();
87 }
88 return this.driveInformation;
89 }
90
91 public boolean isSetDriveInformation() {
92 return ((this.driveInformation!= null)&&(!this.driveInformation.isEmpty()));
93 }
94
95 public void unsetDriveInformation() {
96 this.driveInformation = null;
97 }
98
99 /**
100 * Gets the value of the hostname property.
101 *
102 * @return
103 * possible object is
104 * {@link String }
105 *
106 */
107 public String getHostname() {
108 return hostname;
109 }
110
111 /**
112 * Sets the value of the hostname property.
113 *
114 * @param value
115 * allowed object is
116 * {@link String }
117 *
118 */
119 public void setHostname(String value) {
120 this.hostname = value;
121 }
122
123 public boolean isSetHostname() {
124 return (this.hostname!= null);
125 }
126
127 /**
128 * Gets the value of the domainName property.
129 *
130 * @return
131 * possible object is
132 * {@link String }
133 *
134 */
135 public String getDomainName() {
136 return domainName;
137 }
138
139 /**
140 * Sets the value of the domainName property.
141 *
142 * @param value
143 * allowed object is
144 * {@link String }
145 *
146 */
147 public void setDomainName(String value) {
148 this.domainName = value;
149 }
150
151 public boolean isSetDomainName() {
152 return (this.domainName!= null);
153 }
154
155 /**
156 * Gets the value of the machinePerformanceData property.
157 *
158 * @return
159 * possible object is
160 * {@link MachinePerformanceData }
161 *
162 */
163 public MachinePerformanceData getMachinePerformanceData() {
164 return machinePerformanceData;
165 }
166
167 /**
168 * Sets the value of the machinePerformanceData property.
169 *
170 * @param value
171 * allowed object is
172 * {@link MachinePerformanceData }
173 *
174 */
175 public void setMachinePerformanceData(MachinePerformanceData value) {
176 this.machinePerformanceData = value;
177 }
178
179 public boolean isSetMachinePerformanceData() {
180 return (this.machinePerformanceData!= null);
181 }
182
183 /**
184 * Gets the value of the processPerformanceData property.
185 *
186 * <p>
187 * This accessor method returns a reference to the live list,
188 * not a snapshot. Therefore any modification you make to the
189 * returned list will be present inside the JAXB object.
190 * This is why there is not a <CODE>set</CODE> method for the processPerformanceData property.
191 *
192 * <p>
193 * For example, to add a new item, do as follows:
194 * <pre>
195 * getProcessPerformanceData().add(newItem);
196 * </pre>
197 *
198 *
199 * <p>
200 * Objects of the following type(s) are allowed in the list
201 * {@link ProcessPerformanceData }
202 *
203 *
204 */
205 public List<ProcessPerformanceData> getProcessPerformanceData() {
206 if (processPerformanceData == null) {
207 processPerformanceData = new ArrayList<ProcessPerformanceData>();
208 }
209 return this.processPerformanceData;
210 }
211
212 public boolean isSetProcessPerformanceData() {
213 return ((this.processPerformanceData!= null)&&(!this.processPerformanceData.isEmpty()));
214 }
215
216 public void unsetProcessPerformanceData() {
217 this.processPerformanceData = null;
218 }
219
220 }