org.libvirt
public class StoragePool extends Object
Method Summary | |
---|---|
void | build(int flags)
Build the underlying storage pool
|
void | create(int flags)
Starts this inactive storage pool
|
void | delete(int flags)
Delete the underlying pool resources. |
void | destroy()
Destroy an active storage pool.
|
void | free()
Free a storage pool object, releasing all memory associated with it.
|
boolean | getAutostart()
Fetches the value of the autostart flag, which determines whether the pool is automatically started at boot time
|
Connect | getConnect()
Provides the connection pointer associated with a storage pool.
|
StoragePoolInfo | getInfo()
Get volatile information about the storage pool such as free space / usage summary
|
String | getName()
Fetch the locally unique name of the storage pool
|
int[] | getUUID()
Fetch the globally unique ID of this storage pool
|
String | getUUIDString()
Fetch the globally unique ID of the storage pool as a string
|
String | getXMLDesc(int flags)
Fetch an XML document describing all aspects of the storage pool.
|
String[] | listVolumes()
Fetch list of storage volume names
|
int | numOfVolumes()
Fetch the number of storage volumes within a pool
|
void | refresh(int flags)
Request that the pool refresh its list of volumes.
|
void | setAutostart(int autostart)
Sets the autostart flag
|
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
|
void | undefine()
Undefine an inactive storage pool
|
Parameters: flags future flags, use 0 for now
Parameters: flags future flags, use 0 for now
Parameters: flags flags for obliteration process
Returns: the result
Throws: LibvirtException
Returns: the Connect object
Returns: a StoragePoolInfo object describing this storage pool
Throws: LibvirtException
Returns: the name
Throws: LibvirtException
Returns: the UUID as an unpacked int array
Throws: LibvirtException
Returns: the UUID in canonical String format
Throws: LibvirtException
Parameters: flags flags for XML format options (set of virDomainXMLFlags)
Returns: a XML document -java @throws LibvirtException
Returns: an Array of Strings that contains the names of the storage volumes
Throws: LibvirtException
Returns: the number of storage pools
Throws: LibvirtException
Parameters: flags flags to control refresh behaviour (currently unused, use 0)
Throws: LibvirtException
Parameters: autostart new flag setting
Throws: LibvirtException
Parameters: xmlDesc description of volume to create flags flags for creation (unused, pass 0)
Returns: the storage volume
Throws: LibvirtException
Parameters: name name of storage volume
Returns: The StorageVol object found
Throws: LibvirtException
Throws: LibvirtException