Statistiques
| Révision :

root / src / gZFS / zdisk.java @ 53

Historique | Voir | Annoter | Télécharger (9,46 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.Hashtable;
11

    
12
public class zdisk {
13

    
14
        public Hashtable<String,zProperties> zProperties = new Hashtable<String, zProperties>();
15
        //private zProperties zProperty = new zProperties();
16
        zdisk(){
17

    
18
                Hashtable<Object,Object> permitValuezName = new Hashtable<Object,Object>();
19
                permitValuezName.clear();
20
                zProperties zPropertyPoolname = new zProperties();
21
                zPropertyPoolname.setNameProperty("poolname");
22
                zPropertyPoolname.setLabelProperty("Poolname");
23
                zPropertyPoolname.setType("noupdateable");
24
                zPropertyPoolname.setValue("");
25
                zPropertyPoolname.setPermitValue(null);
26
                //zPropertyPoolname.setPropertyOf("volandfs");
27
                zProperties.put("poolname", zPropertyPoolname);
28
                
29
                Hashtable<Object,Object> permitValueDevid = new Hashtable<Object,Object>();
30
                permitValueDevid.clear();
31
                zProperties zPropertyDevid = new zProperties();
32
                zPropertyDevid.setNameProperty("devid");
33
                zPropertyDevid.setLabelProperty("Devid");
34
                zPropertyDevid.setType("noupdateable");
35
                zPropertyDevid.setValue("");
36
                zPropertyDevid.setPermitValue(null);
37
                //zPropertyDevid.setPropertyOf("volandfs");
38
                zProperties.put("devid", zPropertyDevid);
39
                
40
                Hashtable<Object,Object> permitValuePath = new Hashtable<Object,Object>();
41
                permitValuePath.clear();
42
                zProperties zPropertyPath = new zProperties();
43
                zPropertyPath.setNameProperty("path");
44
                zPropertyPath.setLabelProperty("Path");
45
                zPropertyPath.setType("noupdateable");
46
                zPropertyPath.setValue("");
47
                zPropertyPath.setPermitValue(null);
48
                zProperties.put("path", zPropertyPath);
49
                
50
                Hashtable<Object,Object> permitValueVendor = new Hashtable<Object,Object>();
51
                permitValueVendor.clear();
52
                zProperties zPropertyVendor = new zProperties();
53
                zPropertyVendor.setNameProperty("vendor");
54
                zPropertyVendor.setLabelProperty("Vendor");
55
                zPropertyVendor.setType("noupdateable");
56
                zPropertyVendor.setValue("");
57
                zPropertyVendor.setPermitValue(null);
58
                //zPropertyVendor.setPropertyOf("volandfs");
59
                zProperties.put("vendor", zPropertyVendor);
60
                
61
                Hashtable<Object,Object> permitValueProduct = new Hashtable<Object,Object>();
62
                permitValueProduct.clear();
63
                zProperties zPropertyProduct = new zProperties();
64
                zPropertyProduct.setNameProperty("product");
65
                zPropertyProduct.setLabelProperty("Product");
66
                zPropertyProduct.setType("noupdateable");
67
                zPropertyProduct.setValue("");
68
                zPropertyProduct.setPermitValue(null);
69
                //zPropertyProduct.setPropertyOf("volandfs");
70
                zProperties.put("product", zPropertyProduct);
71
                
72
                Hashtable<Object,Object> permitValueRevision = new Hashtable<Object,Object>();
73
                permitValueRevision.clear();
74
                zProperties zPropertyRevision = new zProperties();
75
                zPropertyRevision.setNameProperty("revision");
76
                zPropertyRevision.setLabelProperty("Revision");
77
                zPropertyRevision.setType("noupdateable");
78
                zPropertyRevision.setValue("");
79
                zPropertyRevision.setPermitValue(null);
80
                //zPropertyRevision.setPropertyOf("volandfs");
81
                zProperties.put("revision", zPropertyRevision);
82
                
83
                Hashtable<Object,Object> permitValueUserCapacity = new Hashtable<Object,Object>();
84
                permitValueUserCapacity.clear();
85
                zProperties zPropertyUserCapacity = new zProperties();
86
                zPropertyUserCapacity.setNameProperty("usercapacity");
87
                zPropertyUserCapacity.setLabelProperty("UserCapacity");
88
                zPropertyUserCapacity.setType("noupdateable");
89
                zPropertyUserCapacity.setValue("");
90
                zPropertyUserCapacity.setPermitValue(null);
91
                //zPropertyUserCapacity.setPropertyOf("volandfs");
92
                zProperties.put("usercapacity", zPropertyUserCapacity);
93
                
94
                Hashtable<Object,Object> permitValueLogicalblocksize = new Hashtable<Object,Object>();
95
                permitValueLogicalblocksize.clear();
96
                zProperties zPropertyLogicalblocksize = new zProperties();
97
                zPropertyLogicalblocksize.setNameProperty("logicalblocksize");
98
                zPropertyLogicalblocksize.setLabelProperty("Logicalblocksize");
99
                zPropertyLogicalblocksize.setType("noupdateable");
100
                zPropertyLogicalblocksize.setValue("");
101
                zPropertyLogicalblocksize.setPermitValue(null);
102
                //zPropertyLogicalblocksize.setPropertyOf("volandfs");
103
                zProperties.put("logicalblocksize", zPropertyLogicalblocksize);
104
                
105
                Hashtable<Object,Object> permitValueLogicalUnitid = new Hashtable<Object,Object>();
106
                permitValueLogicalUnitid.clear();
107
                zProperties zPropertyLogicalUnitid = new zProperties();
108
                zPropertyLogicalUnitid.setNameProperty("logicalunitid");
109
                zPropertyLogicalUnitid.setLabelProperty("LogicalUnitid");
110
                zPropertyLogicalUnitid.setType("noupdateable");
111
                zPropertyLogicalUnitid.setValue("");
112
                zPropertyLogicalUnitid.setPermitValue(null);
113
                //zPropertyLogicalUnitid.setPropertyOf("volandfs");
114
                zProperties.put("logicalunitid", zPropertyLogicalUnitid);
115
                
116
                Hashtable<Object,Object> permitValueSerialnumber = new Hashtable<Object,Object>();
117
                permitValueSerialnumber.clear();
118
                zProperties zPropertySerialnumber = new zProperties();
119
                zPropertySerialnumber.setNameProperty("serialnumber");
120
                zPropertySerialnumber.setLabelProperty("Serialnumber");
121
                zPropertySerialnumber.setType("noupdateable");
122
                zPropertySerialnumber.setValue("");
123
                zPropertySerialnumber.setPermitValue(null);
124
                //zPropertySerialnumber.setPropertyOf("volandfs");
125
                zProperties.put("serialnumber", zPropertySerialnumber);
126
                
127
                Hashtable<Object,Object> permitValueDevicetype = new Hashtable<Object,Object>();
128
                permitValueDevicetype.clear();
129
                zProperties zPropertyDevicetype = new zProperties();
130
                zPropertyDevicetype.setNameProperty("devicetype");
131
                zPropertyDevicetype.setLabelProperty("Devicetype");
132
                zPropertyDevicetype.setType("noupdateable");
133
                zPropertyDevicetype.setValue("");
134
                zPropertyDevicetype.setPermitValue(null);
135
                //zPropertyDevicetype.setPropertyOf("volandfs");
136
                zProperties.put("devicetype", zPropertyDevicetype);
137
                
138
                Hashtable<Object,Object> permitValueTransportprotocol = new Hashtable<Object,Object>();
139
                permitValueTransportprotocol.clear();
140
                zProperties zPropertyTransportprotocol = new zProperties();
141
                zPropertyTransportprotocol.setNameProperty("transportprotocol");
142
                zPropertyTransportprotocol.setLabelProperty("Transportprotocol");
143
                zPropertyTransportprotocol.setType("noupdateable");
144
                zPropertyTransportprotocol.setValue("");
145
                zPropertyTransportprotocol.setPermitValue(null);
146
                //zPropertyTransportprotocol.setPropertyOf("volandfs");
147
                zProperties.put("transportprotocol", zPropertyTransportprotocol);
148
                
149
                Hashtable<Object,Object> permitValueSMARTHealthStatus = new Hashtable<Object,Object>();
150
                permitValueSMARTHealthStatus.clear();
151
                zProperties zPropertySMARTHealthStatus = new zProperties();
152
                zPropertySMARTHealthStatus.setNameProperty("smarthealthstatus");
153
                zPropertySMARTHealthStatus.setLabelProperty("SMARTHealthStatus");
154
                zPropertySMARTHealthStatus.setType("noupdateable");
155
                zPropertySMARTHealthStatus.setValue("");
156
                zPropertySMARTHealthStatus.setPermitValue(null);
157
                //zPropertySMARTHealthStatus.setPropertyOf("volandfs");
158
                zProperties.put("smarthealthstatus", zPropertySMARTHealthStatus);
159
                
160
                Hashtable<Object,Object> permitValueErrorRead = new Hashtable<Object,Object>();
161
                permitValueErrorRead.clear();
162
                zProperties zPropertyErrorRead = new zProperties();
163
                zPropertyErrorRead.setNameProperty("errorread");
164
                zPropertyErrorRead.setLabelProperty("ErrorRead");
165
                zPropertyErrorRead.setType("noupdateable");
166
                zPropertyErrorRead.setValue("");
167
                zPropertyErrorRead.setPermitValue(null);
168
                //zPropertyErrorRead.setPropertyOf("volandfs");
169
                zProperties.put("errorread", zPropertyErrorRead);
170
                
171
                Hashtable<Object,Object> permitValueErrorWrite = new Hashtable<Object,Object>();
172
                permitValueErrorWrite.clear();
173
                zProperties zPropertyErrorWrite = new zProperties();
174
                zPropertyErrorWrite.setNameProperty("errorwrite");
175
                zPropertyErrorWrite.setLabelProperty("ErrorWrite");
176
                zPropertyErrorWrite.setType("noupdateable");
177
                zPropertyErrorWrite.setValue("");
178
                zPropertyErrorWrite.setPermitValue(null);
179
                //zPropertyErrorWrite.setPropertyOf("volandfs");
180
                zProperties.put("errorwrite", zPropertyErrorWrite);
181
                
182
                Hashtable<Object,Object> permitValueErrorChecksum = new Hashtable<Object,Object>();
183
                permitValueErrorChecksum.clear();
184
                zProperties zPropertyErrorChecksum = new zProperties();
185
                zPropertyErrorChecksum.setNameProperty("errorchecksum");
186
                zPropertyErrorChecksum.setLabelProperty("ErrorChecksum");
187
                zPropertyErrorChecksum.setType("noupdateable");
188
                zPropertyErrorChecksum.setValue("");
189
                zPropertyErrorChecksum.setPermitValue(null);
190
                //zPropertyErrorChecksum.setPropertyOf("volandfs");
191
                zProperties.put("errorchecksum", zPropertyErrorChecksum);
192
                
193
                Hashtable<Object,Object> permitValueRaidID = new Hashtable<Object,Object>();
194
                permitValueRaidID.clear();
195
                zProperties zPropertyRaidID = new zProperties();
196
                zPropertyRaidID.setNameProperty("raidid");
197
                zPropertyRaidID.setLabelProperty("RaidID");
198
                zPropertyRaidID.setType("noupdateable");
199
                zPropertyRaidID.setValue("");
200
                zPropertyRaidID.setPermitValue(null);
201
                //zPropertyzRaidID.setPropertyOf("volandfs");
202
                zProperties.put("raidid", zPropertyRaidID);
203
                
204
                Hashtable<Object,Object> permitValueRaidType = new Hashtable<Object,Object>();
205
                permitValueRaidType.clear();
206
                zProperties zPropertyRaidType = new zProperties();
207
                zPropertyRaidType.setNameProperty("raidtype");
208
                zPropertyRaidType.setLabelProperty("RaidType");
209
                zPropertyRaidType.setType("noupdateable");
210
                zPropertyRaidType.setValue("");
211
                zPropertyRaidType.setPermitValue(null);
212
                //zPropertyzRaidType.setPropertyOf("volandfs");
213
                zProperties.put("raidtype", zPropertyRaidType);
214
        }
215
}