org.glassfish.virtualization.libvirt.jna
Class StorageVol
java.lang.Object
org.glassfish.virtualization.libvirt.jna.LibVirtObject
org.glassfish.virtualization.libvirt.jna.StorageVol
public class StorageVol
- extends LibVirtObject
Storage Volume JNA interface
- Author:
- Jerome Dochez
|
Method Summary |
void |
delete(int flags)
Delete the storage volume from the pool |
String |
getName()
Fetch the storage volume name. |
String |
getPath()
Fetch the storage volume path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StorageVol
public StorageVol(StorageVolPointer handle)
delete
public void delete(int flags)
throws VirtException
- Delete the storage volume from the pool
- Parameters:
flags - future flags, use 0 for now
- Throws:
VirtException - if an error occurs
getName
public String getName()
throws VirtException
- Fetch the storage volume name. This is unique within the scope of a pool
- Returns:
- the name
- Throws:
VirtException - if an error occurs
getPath
public String getPath()
throws VirtException
- Fetch the storage volume path. Depending on the pool configuration this
is either persistent across hosts, or dynamically assigned at pool
startup. Consult pool documentation for information on getting the
persistent naming
- Returns:
- the storage volume path
- Throws:
VirtException - if an error occurs
Copyright © 2012. All Rights Reserved.