org.libvirt
public class Device extends Object
Field Summary | |
---|---|
protected Libvirt | libvirt
The libvirt connection from the hypervisor |
Method Summary | |
---|---|
int | destroy()
Destroy the device object. |
int | detach()
Dettach the node device from the node itself so that it may be assigned
to a guest domain.
|
int | free()
Frees this device object. |
String | getName()
Returns the name of the device
|
int | getNumberOfCapabilities()
Returns the number of capabilities which the instance has.
|
String | getParent()
Returns the parent of the device
|
String | getXMLDescription()
Returns the XML description of the device
|
String[] | listCapabilities()
List the capabilities of the device
|
protected void | processError()
Error handling logic to throw errors. |
int | reAttach()
ReAttach a device to the node.
|
int | reset()
Reset a previously dettached node device to the node before or after
assigning it to a guest.
|
Throws: LibvirtException
UNKNOWN: 0 for success, -1 for failure.
Throws: LibvirtException
Returns: number of references left (>= 0) for success, -1 for failure.
Throws: LibvirtException
Throws: LibvirtException
Throws: LibvirtException
Throws: LibvirtException
Throws: LibvirtException
Throws: LibvirtException
Throws: LibvirtException
Throws: LibvirtException