|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.libvirt.Network
public class Network
A network object defined by libvirt.
Field Summary | |
---|---|
protected Libvirt |
libvirt
The libvirt connection from the hypervisor |
protected Connect |
virConnect
The Connect Object that represents the Hypervisor of this Network |
Method Summary | |
---|---|
void |
create()
Creates and starts this defined network. |
void |
destroy()
Destroy this network object. |
void |
finalize()
|
int |
free()
Frees this network object. |
boolean |
getAutostart()
Provides a boolean value indicating whether this network is configured to be automatically started when the host machine boots. |
java.lang.String |
getBridgeName()
Provides a bridge interface name to which a domain may connect a network interface in order to join this network. |
Connect |
getConnect()
Provides the connection pointer associated with this network. |
java.lang.String |
getName()
Gets the public name for this network |
int[] |
getUUID()
Gets the UUID for this network |
java.lang.String |
getUUIDString()
Gets the UUID for a network as string. |
java.lang.String |
getXMLDesc(int flags)
Provides an XML description of this network. |
int |
isActive()
Determine if the network is currently running |
int |
isPersistent()
Determine if the network has a persistent configuration which means it will still exist after shutting down |
protected void |
processError()
|
void |
setAutostart(boolean autostart)
Configures this network to be automatically started when the host machine boots. |
void |
undefine()
Undefines this network but does not stop it if it is running |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Connect virConnect
protected Libvirt libvirt
Method Detail |
---|
public void create() throws LibvirtException
LibvirtException
public void destroy() throws LibvirtException
LibvirtException
public void finalize() throws LibvirtException
finalize
in class java.lang.Object
LibvirtException
public int free() throws LibvirtException
LibvirtException
public boolean getAutostart() throws LibvirtException
LibvirtException
public java.lang.String getBridgeName() throws LibvirtException
LibvirtException
public Connect getConnect()
public java.lang.String getName() throws LibvirtException
LibvirtException
public int[] getUUID() throws LibvirtException
LibvirtException
public java.lang.String getUUIDString() throws LibvirtException
LibvirtException
public java.lang.String getXMLDesc(int flags) throws LibvirtException
flags
- and OR'ed set of extraction flags, not used yet
LibvirtException
public int isActive() throws LibvirtException
LibvirtException
public int isPersistent() throws LibvirtException
LibvirtException
protected void processError() throws LibvirtException
LibvirtException
public void setAutostart(boolean autostart) throws LibvirtException
autostart
- whether the network should be automatically started 0 or 1
LibvirtException
public void undefine() throws LibvirtException
LibvirtException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |