org.libvirt
public class Interface extends Object
| Field Summary | |
|---|---|
| protected Libvirt | libvirt
The libvirt connection from the hypervisor |
| static int | VIR_INTERFACE_XML_INACTIVE
Get XML Flag: dump inactive interface information |
| Method Summary | |
|---|---|
| int | create()
Create and start a defined network. |
| int | destroy()
Destroy the network object. |
| int | free()
Frees this interface object. |
| String | getMACString()
Returns the mac string of the interface
|
| String | getName()
Returns the name of the interface
|
| String | getXMLDescription(int flags)
Returns the XML description for theinterface
|
| int | isActive()
Determine if the interface is currently running
|
| protected void | processError()
Error handling logic to throw errors. |
| int | undefine()
Undefine an interface, ie remove it from the config. |
Throws: LibvirtException
Throws: LibvirtException
Returns: number of references left (>= 0) for success, -1 for failure.
Throws: LibvirtException
Throws: LibvirtException
Throws: LibvirtException
Throws: LibvirtException
Returns: 1 if running, 0 if inactive, -1 on error
Throws: LibvirtException
See Also: Libvirt
Documentation
Throws: LibvirtException