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
LibvirtException
public void destroy() throws LibvirtException
LibvirtException
protected 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 yetLibvirtException
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 1LibvirtException
public void undefine() throws LibvirtException
LibvirtException