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
LibvirtExceptionpublic int destroy()
throws LibvirtException
LibvirtExceptionprotected void finalize()
throws LibvirtException
finalize in class java.lang.ObjectLibvirtExceptionpublic int free()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getMACString()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getName()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getXMLDescription(int flags)
throws LibvirtException
LibvirtExceptionpublic int isActive()
throws LibvirtException
LibvirtExceptionprotected void processError()
throws LibvirtException
LibvirtExceptionpublic int undefine()
throws LibvirtException
LibvirtException