]>
Commit | Line | Data |
---|---|---|
f891182f MR |
1 | <?php |
2 | require_once 'Vdev.php'; | |
3 | require_once 'Snapshot.php'; | |
4 | require_once 'Dataset.php'; | |
5 | require_once 'Zvol.php'; | |
6 | ||
7 | /** | |
8 | * XXX detailed description | |
9 | * | |
10 | * @author XXX | |
11 | * @version XXX | |
12 | * @copyright XXX | |
13 | */ | |
14 | class Zpool { | |
15 | // Attributes | |
16 | /** | |
17 | * XXX | |
18 | * | |
19 | * @var string $name | |
20 | * @access private | |
21 | */ | |
22 | private $_name; | |
23 | ||
24 | /** | |
25 | * XXX | |
26 | * | |
27 | * @var list<Vdev> $vdevs | |
28 | * @access private | |
29 | */ | |
30 | private $_vdevs; | |
31 | ||
32 | /** | |
33 | * XXX | |
34 | * | |
35 | * @var list<Disk> $spare | |
36 | * @access private | |
37 | */ | |
38 | private $_spare; | |
39 | ||
40 | /** | |
41 | * XXX | |
42 | * | |
43 | * @var Log $log | |
44 | * @access private | |
45 | */ | |
46 | private $_log; | |
47 | ||
48 | /** | |
49 | * XXX | |
50 | * | |
51 | * @var Cache $cache | |
52 | * @access private | |
53 | */ | |
54 | private $_cache; | |
55 | ||
56 | /** | |
57 | * XXX | |
58 | * | |
59 | * @var int $size | |
60 | * @access private | |
61 | */ | |
62 | private $_size; | |
63 | ||
64 | /** | |
65 | * XXX | |
66 | * | |
67 | * @var string $mountPoint | |
68 | * @access private | |
69 | */ | |
70 | private $_mountPoint; | |
71 | ||
72 | /** | |
73 | * XXX | |
74 | * | |
75 | * @var list<Feature> $features | |
76 | * @access private | |
77 | */ | |
78 | private $_features; | |
79 | ||
80 | // Associations | |
81 | /** | |
82 | * XXX | |
83 | * | |
84 | * @var Snapshot $unnamed | |
85 | * @access private | |
86 | * @accociation Snapshot to unnamed | |
87 | */ | |
88 | #var $unnamed; | |
89 | ||
90 | /** | |
91 | * XXX | |
92 | * | |
93 | * @var Dataset $unnamed | |
94 | * @access private | |
95 | * @accociation Dataset to unnamed | |
96 | */ | |
97 | #var $unnamed; | |
98 | ||
99 | /** | |
100 | * XXX | |
101 | * | |
102 | * @var Zvol $unnamed | |
103 | * @access private | |
104 | * @accociation Zvol to unnamed | |
105 | */ | |
106 | #var $unnamed; | |
107 | ||
108 | /** | |
109 | * XXX | |
110 | * | |
111 | * @var Vdev $unnamed | |
112 | * @access private | |
113 | * @accociation Vdev to unnamed | |
114 | */ | |
115 | #var $unnamed; | |
116 | ||
117 | // Operations | |
118 | /** | |
119 | * XXX | |
120 | * | |
121 | * @return string XXX | |
122 | * @access public | |
123 | */ | |
124 | public function getName() { | |
125 | trigger_error('Not Implemented!', E_USER_WARNING); | |
126 | } | |
127 | ||
128 | /** | |
129 | * XXX | |
130 | * | |
131 | * @return list<Vdev> XXX | |
132 | * @access public | |
133 | */ | |
134 | public function getVdevs() { | |
135 | trigger_error('Not Implemented!', E_USER_WARNING); | |
136 | } | |
137 | ||
138 | /** | |
139 | * XXX | |
140 | * | |
141 | * @param Vdev $vdev XXX | |
142 | * @return void XXX | |
143 | * @access public | |
144 | */ | |
145 | public function addVdev($vdev) { | |
146 | trigger_error('Not Implemented!', E_USER_WARNING); | |
147 | } | |
148 | ||
149 | /** | |
150 | * XXX | |
151 | * | |
152 | * @param Vdev $vdev XXX | |
153 | * @return void XXX | |
154 | * @access public | |
155 | */ | |
156 | public function removeVdev($vdev) { | |
157 | trigger_error('Not Implemented!', E_USER_WARNING); | |
158 | } | |
159 | ||
160 | /** | |
161 | * XXX | |
162 | * | |
163 | * @param Cache $cache XXX | |
164 | * @return void XXX | |
165 | * @access public | |
166 | */ | |
167 | public function addCache($cache) { | |
168 | trigger_error('Not Implemented!', E_USER_WARNING); | |
169 | } | |
170 | ||
171 | /** | |
172 | * XXX | |
173 | * | |
174 | * @return void XXX | |
175 | * @access public | |
176 | */ | |
177 | public function removeCache() { | |
178 | trigger_error('Not Implemented!', E_USER_WARNING); | |
179 | } | |
180 | ||
181 | /** | |
182 | * XXX | |
183 | * | |
184 | * @return Cache XXX | |
185 | * @access public | |
186 | */ | |
187 | public function getCache() { | |
188 | trigger_error('Not Implemented!', E_USER_WARNING); | |
189 | } | |
190 | ||
191 | /** | |
192 | * XXX | |
193 | * | |
194 | * @param Log $log XXX | |
195 | * @return void XXX | |
196 | * @access public | |
197 | */ | |
198 | public function addLog($log) { | |
199 | trigger_error('Not Implemented!', E_USER_WARNING); | |
200 | } | |
201 | ||
202 | /** | |
203 | * XXX | |
204 | * | |
205 | * @return void XXX | |
206 | * @access public | |
207 | */ | |
208 | public function removeLog() { | |
209 | trigger_error('Not Implemented!', E_USER_WARNING); | |
210 | } | |
211 | ||
212 | /** | |
213 | * XXX | |
214 | * | |
215 | * @return Log XXX | |
216 | * @access public | |
217 | */ | |
218 | public function getLog() { | |
219 | trigger_error('Not Implemented!', E_USER_WARNING); | |
220 | } | |
221 | ||
222 | /** | |
223 | * XXX | |
224 | * | |
225 | * @param Disk $spare XXX | |
226 | * @return void XXX | |
227 | * @access public | |
228 | */ | |
229 | public function addSpare($spare) { | |
230 | trigger_error('Not Implemented!', E_USER_WARNING); | |
231 | } | |
232 | ||
233 | /** | |
234 | * XXX | |
235 | * | |
236 | * @param Disk $spare XXX | |
237 | * @return void XXX | |
238 | * @access public | |
239 | */ | |
240 | public function removeSpare($spare) { | |
241 | trigger_error('Not Implemented!', E_USER_WARNING); | |
242 | } | |
243 | ||
244 | /** | |
245 | * XXX | |
246 | * | |
247 | * @return list<Disk> XXX | |
248 | * @access public | |
249 | */ | |
250 | public function getSpares() { | |
251 | trigger_error('Not Implemented!', E_USER_WARNING); | |
252 | } | |
253 | ||
254 | /** | |
255 | * XXX | |
256 | * | |
257 | * @return int XXX | |
258 | * @access public | |
259 | */ | |
260 | public function getSize() { | |
261 | trigger_error('Not Implemented!', E_USER_WARNING); | |
262 | } | |
263 | ||
264 | /** | |
265 | * XXX | |
266 | * | |
267 | * @return string XXX | |
268 | * @access public | |
269 | */ | |
270 | public function getMountPoint() { | |
271 | trigger_error('Not Implemented!', E_USER_WARNING); | |
272 | } | |
273 | ||
274 | /** | |
275 | * XXX | |
276 | * | |
277 | * @param list<Feature> $features XXX | |
278 | * @return void XXX | |
279 | * @access public | |
280 | */ | |
281 | public function setFeatures($features) { | |
282 | trigger_error('Not Implemented!', E_USER_WARNING); | |
283 | } | |
284 | ||
285 | /** | |
286 | * XXX | |
287 | * | |
288 | * @return list<Feature> XXX | |
289 | * @access public | |
290 | */ | |
291 | public function getFeatures() { | |
292 | trigger_error('Not Implemented!', E_USER_WARNING); | |
293 | } | |
294 | ||
295 | /** | |
296 | * XXX | |
297 | * | |
298 | * @return void XXX | |
299 | * @access public | |
300 | */ | |
301 | public function export() { | |
302 | trigger_error('Not Implemented!', E_USER_WARNING); | |
303 | } | |
304 | ||
305 | /** | |
306 | * XXX | |
307 | * | |
308 | * @param string $name XXX | |
309 | * @return void XXX | |
310 | * @access public | |
311 | */ | |
312 | public function import($name) { | |
313 | trigger_error('Not Implemented!', E_USER_WARNING); | |
314 | } | |
315 | ||
316 | /** | |
317 | * XXX | |
318 | * | |
319 | * @return void XXX | |
320 | * @access public | |
321 | */ | |
322 | public function scrub() { | |
323 | trigger_error('Not Implemented!', E_USER_WARNING); | |
324 | } | |
325 | ||
326 | /** | |
327 | * XXX | |
328 | * | |
329 | * @return string XXX | |
330 | * @access public | |
331 | */ | |
332 | public function status() { | |
333 | trigger_error('Not Implemented!', E_USER_WARNING); | |
334 | } | |
335 | ||
336 | /** | |
337 | * XXX | |
338 | * org.openmediavault.module.service.<servicename>.start | |
339 | * org.openmediavault.module.service.<servicename>.stop | |
340 | * org.openmediavault.module.service.<servicename>.applyconfig | |
341 | * | |
342 | * @param string event | |
343 | * @access public | |
344 | */ | |
345 | public function onNotify($event) { | |
346 | trigger_error('Not Implemented!', E_USER_WARNING); | |
347 | } | |
348 | ||
349 | /** | |
350 | * XXX | |
351 | * | |
352 | * @access public | |
353 | */ | |
354 | public function applyConfig() { | |
355 | trigger_error('Not Implemented!', E_USER_WARNING); | |
356 | } | |
357 | ||
358 | /** | |
359 | * XXX | |
360 | * | |
361 | * @access public | |
362 | */ | |
363 | public function stopService() { | |
364 | trigger_error('Not Implemented!', E_USER_WARNING); | |
365 | } | |
366 | ||
367 | /** | |
368 | * XXX | |
369 | * | |
370 | * @access public | |
371 | */ | |
372 | public function startService() { | |
373 | trigger_error('Not Implemented!', E_USER_WARNING); | |
374 | } | |
375 | } | |
376 | ||
377 | ?> |