|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StoragePool
Represents a storage pool, a serverPool of volumes.
| Method Summary | |
|---|---|
StorageVol |
allocate(String name,
long capacity)
Allocates a new storage volume using the provided name and the capacity |
StorageVol |
byName(String name)
Returns a storage volume given its name |
void |
delete()
Deletes the storage pool |
Iterable<? extends StorageVol> |
volumes()
Returns the currently configured volumes for this pool. |
| Method Detail |
|---|
Iterable<? extends StorageVol> volumes()
throws VirtException
VirtException - if the connection to the underlying virtualization infrastructure failed.
StorageVol byName(String name)
throws VirtException
name - of the volume
VirtException - if the connection to the underlying virtualization infrastructure failed.
StorageVol allocate(String name,
long capacity)
throws VirtException
name - name for the new volumecapacity - maximum capacity for the volume
VirtException - if the volume cannot be allocated.
void delete()
throws VirtException
VirtException - if the volume cannot be deleted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||