|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.libvirt.Interface
public class Interface
A device which is attached to a node
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int VIR_INTERFACE_XML_INACTIVE
protected Libvirt libvirt
Method Detail |
---|
public int create() throws LibvirtException
LibvirtException
public int destroy() throws LibvirtException
LibvirtException
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |