|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.virtualization.libvirt.jna.LibVirtObject
org.glassfish.virtualization.libvirt.jna.StoragePool
public class StoragePool
Storage Pool JNA interface
| Field Summary |
|---|
| Fields inherited from class org.glassfish.virtualization.libvirt.jna.LibVirtObject |
|---|
libvirt |
| Constructor Summary | |
|---|---|
StoragePool(StoragePoolPointer handle)
|
|
| Method Summary | |
|---|---|
void |
delete(int flags)
Delete the underlying pool resources. |
String[] |
listVolumes()
Fetch list of storage volume names |
int |
numOfVolumes()
Fetch the number of storage volumes within a pool |
StorageVol |
storageVolCreateXML(String xmlDesc,
int flags)
Create a storage volume within a pool based on an XML description. |
StorageVol |
storageVolLookupByName(String name)
Fetch an object representing to a storage volume based on its name within a pool |
| Methods inherited from class org.glassfish.virtualization.libvirt.jna.LibVirtObject |
|---|
checkForError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StoragePool(StoragePoolPointer handle)
| Method Detail |
|---|
public int numOfVolumes()
throws VirtException
VirtException - if an error occurs
public String[] listVolumes()
throws VirtException
VirtException - if an error occurs
public StorageVol storageVolLookupByName(String name)
throws VirtException
name - name of storage volume
VirtException - if an error occurs
public StorageVol storageVolCreateXML(String xmlDesc,
int flags)
throws VirtException
xmlDesc - description of volume to createflags - flags for creation (unused, pass 0)
VirtException - if an error occurs
public void delete(int flags)
throws VirtException
flags - flags for obliteration process
VirtException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||