public class Interface
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
VIR_INTERFACE_XML_INACTIVE
Get XML Flag: dump inactive interface information
|
Modifier and Type | Method and Description |
---|---|
int |
create()
Create and start a defined network.
|
int |
destroy()
Destroy the network object.
|
protected void |
finalize() |
int |
free()
Frees this interface object.
|
java.lang.String |
getMACString()
Returns the mac string of the interface
|
java.lang.String |
getName()
Returns the name of the interface
|
java.lang.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.
|
public static int VIR_INTERFACE_XML_INACTIVE
public int create() throws LibvirtException
LibvirtException
public int destroy() throws LibvirtException
LibvirtException
protected void finalize() throws LibvirtException
finalize
in class java.lang.Object
LibvirtException
public int free() throws LibvirtException
LibvirtException
public java.lang.String getMACString() throws LibvirtException
LibvirtException
public java.lang.String getName() throws LibvirtException
LibvirtException
public java.lang.String getXMLDescription(int flags) throws LibvirtException
LibvirtException
public int isActive() throws LibvirtException
LibvirtException
protected void processError() throws LibvirtException
LibvirtException
public int undefine() throws LibvirtException
LibvirtException