public class Device
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected void |
finalize() |
int |
free()
Frees this device object.
|
java.lang.String |
getName()
Returns the name of the device
|
int |
getNumberOfCapabilities()
Returns the number of capabilities which the instance has.
|
java.lang.String |
getParent()
Returns the parent of the device
|
java.lang.String |
getXMLDescription()
Returns the XML description of the device
|
java.lang.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.
|
public int destroy()
throws LibvirtException
LibvirtExceptionpublic int detach()
throws LibvirtException
LibvirtExceptionprotected void finalize()
throws LibvirtException
finalize in class java.lang.ObjectLibvirtExceptionpublic int free()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getName()
throws LibvirtException
LibvirtExceptionpublic int getNumberOfCapabilities()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getParent()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getXMLDescription()
throws LibvirtException
LibvirtExceptionpublic java.lang.String[] listCapabilities()
throws LibvirtException
LibvirtExceptionprotected void processError()
throws LibvirtException
LibvirtExceptionpublic int reAttach()
throws LibvirtException
LibvirtExceptionpublic int reset()
throws LibvirtException
LibvirtException