org.libvirt
public class StorageVol extends Object
| Nested Class Summary | |
|---|---|
| static class | StorageVol.Type |
| Field Summary | |
|---|---|
| protected Libvirt | libvirt
the libvirt instance |
| protected Connect | virConnect
The VirConnect Object that represents the Hypervisor of this Domain |
| Method Summary | |
|---|---|
| void | delete(int flags)
Delete the storage volume from the pool
|
| int | free()
Release the storage volume handle. |
| Connect | getConnect()
Provides the connection object associated with a storage volume. |
| StorageVolInfo | getInfo()
Fetches volatile information about the storage volume such as its current
allocation
|
| String | getKey()
Fetch the storage volume key. |
| String | getName()
Fetch the storage volume name. |
| String | getPath()
Fetch the storage volume path. |
| String | getXMLDesc(int flags)
Fetch an XML document describing all aspects of this storage volume
|
| protected void | processError()
Error handling logic which should be called after every libvirt call
|
| StoragePool | storagePoolLookupByVolume()
Fetch a storage pool which contains this volume
|
| int | wipe()
Ensure data previously on a volume is not accessible to future reads
|
Parameters: flags future flags, use 0 for now
Throws: LibvirtException
Returns: number of references left (>= 0) for success, -1 for failure.
Throws: LibvirtException
Returns: the Connect object
Returns: StorageVolInfo object
Throws: LibvirtException
Returns: the key
Throws: LibvirtException
Returns: the name
Throws: LibvirtException
Returns: the storage volume path
Throws: LibvirtException
Parameters: flags flags for XML generation (unused, pass 0)
Returns: the XML document
Throws: LibvirtException
Throws: LibvirtException
Returns: StoragePool object,
Throws: LibvirtException
Returns: 0 on success, or -1 on error
Throws: LibvirtException
See Also: Libvirt
Documentation