Statistiques
| Révision :

root / src / gZFS / zpool.java @ 23

Historique | Voir | Annoter | Télécharger (12,7 ko)

1
package gZFS;
2

    
3
import java.util.ArrayList;
4
import java.util.Hashtable;
5
import java.util.List;
6

    
7
public class zpool {
8

    
9
        public Hashtable<String,zProperties> zProperties = new Hashtable<String, zProperties>();
10

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