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