public class Network
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Connect |
virConnect
The Connect Object that represents the Hypervisor of this Network
|
| Modifier and Type | Method and Description |
|---|---|
void |
create()
Creates and starts this defined network.
|
void |
destroy()
Destroy this network object.
|
protected 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
|
protected Connect virConnect
public void create()
throws LibvirtException
LibvirtExceptionpublic void destroy()
throws LibvirtException
LibvirtExceptionprotected void finalize()
throws LibvirtException
finalize in class java.lang.ObjectLibvirtExceptionpublic int free()
throws LibvirtException
LibvirtExceptionpublic boolean getAutostart()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getBridgeName()
throws LibvirtException
LibvirtExceptionpublic Connect getConnect()
public java.lang.String getName()
throws LibvirtException
LibvirtExceptionpublic int[] getUUID()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getUUIDString()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getXMLDesc(int flags)
throws LibvirtException
flags - and OR'ed set of extraction flags, not used yetLibvirtExceptionpublic int isActive()
throws LibvirtException
LibvirtExceptionpublic int isPersistent()
throws LibvirtException
LibvirtExceptionprotected void processError()
throws LibvirtException
LibvirtExceptionpublic void setAutostart(boolean autostart)
throws LibvirtException
autostart - whether the network should be automatically started 0 or 1LibvirtExceptionpublic void undefine()
throws LibvirtException
LibvirtException