root / src / gZFS / zpool.java @ 53
Historique | Voir | Annoter | Télécharger (12,96 ko)
1 |
/*******************************************************************
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2013 Kevin Reverchon
|
4 |
* This file/program is part of gZFS free software
|
5 |
* See COPYING file for details
|
6 |
*
|
7 |
*******************************************************************/
|
8 |
package gZFS; |
9 |
|
10 |
import java.util.ArrayList; |
11 |
import java.util.Hashtable; |
12 |
import java.util.List; |
13 |
|
14 |
public class zpool { |
15 |
|
16 |
public Hashtable<String,zProperties> zProperties = new Hashtable<String, zProperties>(); |
17 |
|
18 |
zpool(){ |
19 |
Hashtable<Object,Object> permitValueNamePool =new Hashtable<Object,Object>(); |
20 |
permitValueNamePool.clear(); |
21 |
zProperties zPropertyNamePool = new zProperties();
|
22 |
zPropertyNamePool.setNameProperty("name");
|
23 |
zPropertyNamePool.setLabelProperty("Pool Name");
|
24 |
zPropertyNamePool.setType("noupdateable");
|
25 |
zPropertyNamePool.setValue("");
|
26 |
zPropertyNamePool.setPermitValue(null);
|
27 |
zProperties.put("name", zPropertyNamePool);
|
28 |
|
29 |
Hashtable<Object,Object> permitValueCapacity =new Hashtable<Object,Object>(); |
30 |
permitValueCapacity.clear(); |
31 |
zProperties zPropertyCapacity = new zProperties();
|
32 |
zPropertyCapacity.setNameProperty("capacity");
|
33 |
zPropertyCapacity.setLabelProperty("Capacity");
|
34 |
zPropertyCapacity.setType("noupdateable");
|
35 |
zPropertyCapacity.setValue("");
|
36 |
zPropertyCapacity.setPermitValue(null);
|
37 |
zProperties.put("capacity", zPropertyCapacity);
|
38 |
|
39 |
Hashtable<Object,Object> permitValueAltroot =new Hashtable<Object,Object>(); |
40 |
permitValueAltroot.clear(); |
41 |
zProperties zPropertyAltroot = new zProperties();
|
42 |
zPropertyAltroot.setNameProperty("altroot");
|
43 |
zPropertyAltroot.setLabelProperty("Capacity");
|
44 |
zPropertyAltroot.setType("noupdateable");
|
45 |
zPropertyAltroot.setValue("");
|
46 |
zPropertyAltroot.setPermitValue(null);
|
47 |
zProperties.put("altroot", zPropertyAltroot);
|
48 |
|
49 |
Hashtable<Object,Object> permitValueHealth =new Hashtable<Object,Object>(); |
50 |
permitValueHealth.clear(); |
51 |
zProperties zPropertyHealth = new zProperties();
|
52 |
zPropertyHealth.setNameProperty("health");
|
53 |
zPropertyHealth.setLabelProperty("Health of Pool");
|
54 |
zPropertyHealth.setType("noupdateable");
|
55 |
zPropertyHealth.setValue("");
|
56 |
zPropertyHealth.setPermitValue(null);
|
57 |
zProperties.put("health", zPropertyHealth);
|
58 |
|
59 |
Hashtable<Object,Object> permitValueGuid =new Hashtable<Object,Object>(); |
60 |
permitValueGuid.clear(); |
61 |
zProperties zPropertyGuid = new zProperties();
|
62 |
zPropertyGuid.setNameProperty("guid");
|
63 |
zPropertyGuid.setLabelProperty("Guid");
|
64 |
zPropertyGuid.setType("noupdateable");
|
65 |
zPropertyGuid.setValue("");
|
66 |
zPropertyGuid.setPermitValue(null);
|
67 |
zProperties.put("guid", zPropertyGuid);
|
68 |
|
69 |
Hashtable<Object,Object> permitValueVersion =new Hashtable<Object,Object>(); |
70 |
permitValueVersion.clear(); |
71 |
zProperties zPropertyVersion = new zProperties();
|
72 |
zPropertyVersion.setNameProperty("version");
|
73 |
zPropertyVersion.setLabelProperty("Version");
|
74 |
zPropertyVersion.setType("noupdateable");
|
75 |
zPropertyVersion.setValue("");
|
76 |
zPropertyVersion.setPermitValue(null);
|
77 |
zProperties.put("version", zPropertyVersion);
|
78 |
|
79 |
Hashtable<Object,Object> permitValueBootfs =new Hashtable<Object,Object>(); |
80 |
permitValueBootfs.clear(); |
81 |
zProperties zPropertyBootfs = new zProperties();
|
82 |
zPropertyBootfs.setNameProperty("bootfs");
|
83 |
zPropertyBootfs.setLabelProperty("Bootfs");
|
84 |
zPropertyBootfs.setType("noupdateable");
|
85 |
zPropertyBootfs.setValue("");
|
86 |
zPropertyBootfs.setPermitValue(null);
|
87 |
zProperties.put("bootfs", zPropertyBootfs);
|
88 |
|
89 |
Hashtable<Object,Object> permitValueDelegation =new Hashtable<Object,Object>(); |
90 |
permitValueDelegation.clear(); |
91 |
zProperties zPropertyDelegation = new zProperties();
|
92 |
zPropertyDelegation.setNameProperty("delegation");
|
93 |
zPropertyDelegation.setLabelProperty("Delegation");
|
94 |
zPropertyDelegation.setType("noupdateable");
|
95 |
zPropertyDelegation.setValue("");
|
96 |
zPropertyDelegation.setPermitValue(null);
|
97 |
zProperties.put("delegation", zPropertyDelegation);
|
98 |
|
99 |
Hashtable<Object,Object> permitValueAutoreplace =new Hashtable<Object,Object>(); |
100 |
permitValueAutoreplace.clear(); |
101 |
zProperties zPropertyAutoreplace = new zProperties();
|
102 |
zPropertyAutoreplace.setNameProperty("autoreplace");
|
103 |
zPropertyAutoreplace.setLabelProperty("Auto replace");
|
104 |
zPropertyAutoreplace.setType("noupdateable");
|
105 |
zPropertyAutoreplace.setValue("");
|
106 |
zPropertyAutoreplace.setPermitValue(null);
|
107 |
zProperties.put("autoreplace", zPropertyAutoreplace);
|
108 |
|
109 |
Hashtable<Object,Object> permitValueCachefile =new Hashtable<Object,Object>(); |
110 |
permitValueCachefile.clear(); |
111 |
zProperties zPropertyCachefile = new zProperties();
|
112 |
zPropertyCachefile.setNameProperty("cachefile");
|
113 |
zPropertyCachefile.setLabelProperty("Cachefile");
|
114 |
zPropertyCachefile.setType("noupdateable");
|
115 |
zPropertyCachefile.setValue("");
|
116 |
zPropertyCachefile.setPermitValue(null);
|
117 |
zProperties.put("cachefile", zPropertyCachefile);
|
118 |
|
119 |
Hashtable<Object,Object> permitValueFailmode =new Hashtable<Object,Object>(); |
120 |
permitValueFailmode.clear(); |
121 |
zProperties zPropertyFailmode = new zProperties();
|
122 |
zPropertyFailmode.setNameProperty("failmode");
|
123 |
zPropertyFailmode.setLabelProperty("Failmode");
|
124 |
zPropertyFailmode.setType("noupdateable");
|
125 |
zPropertyFailmode.setValue("");
|
126 |
zPropertyFailmode.setPermitValue(null);
|
127 |
zProperties.put("failmode", zPropertyFailmode);
|
128 |
|
129 |
Hashtable<Object,Object> permitValuelistsnapshots =new Hashtable<Object,Object>(); |
130 |
permitValuelistsnapshots.clear(); |
131 |
zProperties zPropertylistsnapshots = new zProperties();
|
132 |
zPropertylistsnapshots.setNameProperty("listsnapshots");
|
133 |
zPropertylistsnapshots.setLabelProperty("List snapshots");
|
134 |
zPropertylistsnapshots.setType("noupdateable");
|
135 |
zPropertylistsnapshots.setValue("");
|
136 |
zPropertylistsnapshots.setPermitValue(null);
|
137 |
zProperties.put("listsnapshots", zPropertylistsnapshots);
|
138 |
|
139 |
Hashtable<Object,Object> permitValueAutoexpand =new Hashtable<Object,Object>(); |
140 |
permitValueAutoexpand.clear(); |
141 |
zProperties zPropertyAutoexpand = new zProperties();
|
142 |
zPropertyAutoexpand.setNameProperty("autoexpand");
|
143 |
zPropertyAutoexpand.setLabelProperty("Auto expand");
|
144 |
zPropertyAutoexpand.setType("noupdateable");
|
145 |
zPropertyAutoexpand.setValue("");
|
146 |
zPropertyAutoexpand.setPermitValue(null);
|
147 |
zProperties.put("autoexpand", zPropertyAutoexpand);
|
148 |
|
149 |
Hashtable<Object,Object> permitValueDedupditto =new Hashtable<Object,Object>(); |
150 |
permitValueDedupditto.clear(); |
151 |
zProperties zPropertyDedupditto = new zProperties();
|
152 |
zPropertyDedupditto.setNameProperty("dedupditto");
|
153 |
zPropertyDedupditto.setLabelProperty("Dedupditto");
|
154 |
zPropertyDedupditto.setType("noupdateable");
|
155 |
zPropertyDedupditto.setValue("");
|
156 |
zPropertyDedupditto.setPermitValue(null);
|
157 |
zProperties.put("dedupditto", zPropertyDedupditto);
|
158 |
|
159 |
Hashtable<Object,Object> permitValueDedupratio =new Hashtable<Object,Object>(); |
160 |
permitValueDedupratio.clear(); |
161 |
zProperties zPropertyDedupratio = new zProperties();
|
162 |
zPropertyDedupratio.setNameProperty("dedupratio");
|
163 |
zPropertyDedupratio.setLabelProperty("Deduplication Ratio");
|
164 |
zPropertyDedupratio.setType("noupdateable");
|
165 |
zPropertyDedupratio.setValue("");
|
166 |
zPropertyDedupratio.setPermitValue(null);
|
167 |
zProperties.put("dedupratio", zPropertyDedupratio);
|
168 |
|
169 |
Hashtable<Object,Object> permitValueFree =new Hashtable<Object,Object>(); |
170 |
permitValueFree.clear(); |
171 |
zProperties zPropertyFree = new zProperties();
|
172 |
zPropertyFree.setNameProperty("free");
|
173 |
zPropertyFree.setLabelProperty("Free");
|
174 |
zPropertyFree.setType("noupdateable");
|
175 |
zPropertyFree.setValue("");
|
176 |
zPropertyFree.setPermitValue(null);
|
177 |
zProperties.put("free", zPropertyFree);
|
178 |
|
179 |
Hashtable<Object,Object> permitValueAllocated =new Hashtable<Object,Object>(); |
180 |
permitValueAllocated.clear(); |
181 |
zProperties zPropertyAllocated = new zProperties();
|
182 |
zPropertyAllocated.setNameProperty("allocated");
|
183 |
zPropertyAllocated.setLabelProperty("Allocated");
|
184 |
zPropertyAllocated.setType("noupdateable");
|
185 |
zPropertyAllocated.setValue("");
|
186 |
zPropertyAllocated.setPermitValue(null);
|
187 |
zProperties.put("allocated", zPropertyAllocated);
|
188 |
|
189 |
Hashtable<Object,Object> permitValueReadonly =new Hashtable<Object,Object>(); |
190 |
permitValueReadonly.clear(); |
191 |
zProperties zPropertyReadonly = new zProperties();
|
192 |
zPropertyReadonly.setNameProperty("readonly");
|
193 |
zPropertyReadonly.setLabelProperty("Readonly");
|
194 |
zPropertyReadonly.setType("noupdateable");
|
195 |
zPropertyReadonly.setValue("");
|
196 |
zPropertyReadonly.setPermitValue(null);
|
197 |
zProperties.put("readonly", zPropertyReadonly);
|
198 |
|
199 |
Hashtable<Object,Object> permitValueAshift =new Hashtable<Object,Object>(); |
200 |
permitValueAshift.clear(); |
201 |
zProperties zPropertyAshift = new zProperties();
|
202 |
zPropertyAshift.setNameProperty("ashift");
|
203 |
zPropertyAshift.setLabelProperty("Ashift");
|
204 |
zPropertyAshift.setType("noupdateable");
|
205 |
zPropertyAshift.setValue("");
|
206 |
zPropertyAshift.setPermitValue(null);
|
207 |
zProperties.put("ashift", zPropertyAshift);
|
208 |
|
209 |
Hashtable<Object,Object> permitValueComment =new Hashtable<Object,Object>(); |
210 |
permitValueComment.clear(); |
211 |
zProperties zPropertyComment = new zProperties();
|
212 |
zPropertyComment.setNameProperty("comment");
|
213 |
zPropertyComment.setLabelProperty("Comment");
|
214 |
zPropertyComment.setType("noupdateable");
|
215 |
zPropertyComment.setValue("");
|
216 |
zPropertyComment.setPermitValue(null);
|
217 |
zProperties.put("comment", zPropertyComment);
|
218 |
|
219 |
Hashtable<Object,Object> permitValueExpandsize =new Hashtable<Object,Object>(); |
220 |
permitValueExpandsize.clear(); |
221 |
zProperties zPropertyExpandsize = new zProperties();
|
222 |
zPropertyExpandsize.setNameProperty("expandsize");
|
223 |
zPropertyExpandsize.setLabelProperty("Expandsize");
|
224 |
zPropertyExpandsize.setType("noupdateable");
|
225 |
zPropertyExpandsize.setValue("");
|
226 |
zPropertyExpandsize.setPermitValue(null);
|
227 |
zProperties.put("expandsize", zPropertyExpandsize);
|
228 |
|
229 |
Hashtable<Object,Object> permitValueFreeing =new Hashtable<Object,Object>(); |
230 |
permitValueFreeing.clear(); |
231 |
zProperties zPropertyFreeing = new zProperties();
|
232 |
zPropertyFreeing.setNameProperty("freeing");
|
233 |
zPropertyFreeing.setLabelProperty("Freeing");
|
234 |
zPropertyFreeing.setType("noupdateable");
|
235 |
zPropertyFreeing.setValue("");
|
236 |
zPropertyFreeing.setPermitValue(null);
|
237 |
zProperties.put("freeing", zPropertyFreeing);
|
238 |
|
239 |
|
240 |
Hashtable<Object,Object> permitValuefeatureAsyncDestroy =new Hashtable<Object,Object>(); |
241 |
permitValuefeatureAsyncDestroy.clear(); |
242 |
zProperties zPropertyfeatureAsyncDestroy = new zProperties();
|
243 |
zPropertyfeatureAsyncDestroy.setNameProperty("feature@async_destroy");
|
244 |
zPropertyfeatureAsyncDestroy.setLabelProperty("Feature async Destroy");
|
245 |
zPropertyfeatureAsyncDestroy.setType("noupdateable");
|
246 |
zPropertyfeatureAsyncDestroy.setValue("");
|
247 |
zPropertyfeatureAsyncDestroy.setPermitValue(null);
|
248 |
zProperties.put("feature@async_destroy", zPropertyfeatureAsyncDestroy);
|
249 |
|
250 |
Hashtable<Object,Object> permitValuefeatureEmptyBpobj =new Hashtable<Object,Object>(); |
251 |
permitValuefeatureEmptyBpobj.clear(); |
252 |
zProperties zPropertyfeatureEmptyBpobj = new zProperties();
|
253 |
zPropertyfeatureEmptyBpobj.setNameProperty("feature@empty_bpobj");
|
254 |
zPropertyfeatureEmptyBpobj.setLabelProperty("Feature Empty Bpobj");
|
255 |
zPropertyfeatureEmptyBpobj.setType("noupdateable");
|
256 |
zPropertyfeatureEmptyBpobj.setValue("");
|
257 |
zPropertyfeatureEmptyBpobj.setPermitValue(null);
|
258 |
zProperties.put("feature@empty_bpobj", zPropertyfeatureEmptyBpobj);
|
259 |
|
260 |
Hashtable<Object,Object> permitValuefeatureLz4Compress =new Hashtable<Object,Object>(); |
261 |
permitValuefeatureLz4Compress.clear(); |
262 |
zProperties zPropertyfeatureLz4Compress = new zProperties();
|
263 |
zPropertyfeatureLz4Compress.setNameProperty("feature@lz4_compress");
|
264 |
zPropertyfeatureLz4Compress.setLabelProperty("Feature Lz4 Compression");
|
265 |
zPropertyfeatureLz4Compress.setType("noupdateable");
|
266 |
zPropertyfeatureLz4Compress.setValue("");
|
267 |
zPropertyfeatureLz4Compress.setPermitValue(null);
|
268 |
zProperties.put("feature@lz4_compress", zPropertyfeatureLz4Compress);
|
269 |
|
270 |
Hashtable<Object,Object> permitValueProvisionSpace =new Hashtable<Object,Object>(); |
271 |
permitValueProvisionSpace.clear(); |
272 |
zProperties zPropertyProvisionSpace = new zProperties();
|
273 |
zPropertyProvisionSpace.setNameProperty("provisionspace");
|
274 |
zPropertyProvisionSpace.setLabelProperty("Provisionned Space");
|
275 |
zPropertyProvisionSpace.setType("noupdateable");
|
276 |
zPropertyProvisionSpace.setValue("");
|
277 |
zPropertyProvisionSpace.setPermitValue(null);
|
278 |
zProperties.put("provisionspace", zPropertyProvisionSpace);
|
279 |
|
280 |
Hashtable<Object,Object> permitValueRealUseableSpace =new Hashtable<Object,Object>(); |
281 |
permitValueRealUseableSpace.clear(); |
282 |
zProperties zPropertyRealUseableSpace = new zProperties();
|
283 |
zPropertyRealUseableSpace.setNameProperty("realuseablespace");
|
284 |
zPropertyRealUseableSpace.setLabelProperty("Real Useable Space");
|
285 |
zPropertyRealUseableSpace.setType("noupdateable");
|
286 |
zPropertyRealUseableSpace.setValue("");
|
287 |
zPropertyRealUseableSpace.setPermitValue(null);
|
288 |
zProperties.put("realuseablespace", zPropertyRealUseableSpace);
|
289 |
|
290 |
Hashtable<Object,Object> permitValueScan =new Hashtable<Object,Object>(); |
291 |
permitValueScan.clear(); |
292 |
zProperties zPropertyScan = new zProperties();
|
293 |
zPropertyScan.setNameProperty("scan");
|
294 |
zPropertyScan.setLabelProperty("Scan");
|
295 |
zPropertyScan.setType("noupdateable");
|
296 |
zPropertyScan.setValue("");
|
297 |
zPropertyScan.setPermitValue(null);
|
298 |
zProperties.put("scan", zPropertyScan);
|
299 |
|
300 |
} |
301 |
} |