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
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 @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
69
70
71 public boolean isRecordCPUusage() {
72 return recordCPUusage;
73 }
74
75
76
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
89
90
91 public boolean isRecordMemoryUsage() {
92 return recordMemoryUsage;
93 }
94
95
96
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
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 }