|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.libvirt.StorageVol
public class StorageVol
An acutal storage bucket.
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 |
void |
finalize()
|
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 |
java.lang.String |
getKey()
Fetch the storage volume key. |
java.lang.String |
getName()
Fetch the storage volume name. |
java.lang.String |
getPath()
Fetch the storage volume path. |
java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Connect virConnect
protected Libvirt libvirt
Method Detail |
---|
public void delete(int flags) throws LibvirtException
flags
- future flags, use 0 for now
LibvirtException
public void finalize() throws LibvirtException
finalize
in class java.lang.Object
LibvirtException
public int free() throws LibvirtException
LibvirtException
public Connect getConnect()
public StorageVolInfo getInfo() throws LibvirtException
LibvirtException
public java.lang.String getKey() throws LibvirtException
LibvirtException
public java.lang.String getName() throws LibvirtException
LibvirtException
public java.lang.String getPath() throws LibvirtException
LibvirtException
public java.lang.String getXMLDesc(int flags) throws LibvirtException
flags
- flags for XML generation (unused, pass 0)
LibvirtException
protected void processError() throws LibvirtException
LibvirtException
public StoragePool storagePoolLookupByVolume() throws LibvirtException
LibvirtException
public int wipe() throws LibvirtException
LibvirtException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |