|
OpenNebula Cloud API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opennebula.client.PoolElement org.opennebula.client.vnet.VirtualNetwork
public class VirtualNetwork
This class represents an OpenNebula virtual network. It also offers static XML-RPC call wrappers.
Field Summary |
---|
Fields inherited from class org.opennebula.client.PoolElement |
---|
client, id, xml, xpath |
Constructor Summary | |
---|---|
|
VirtualNetwork(int id,
Client client)
Creates a new virtual network representation. |
protected |
VirtualNetwork(org.w3c.dom.Node xmlElement,
Client client)
|
Method Summary | |
---|---|
static OneResponse |
allocate(Client client,
java.lang.String description)
Allocates a new virtual network in OpenNebula. |
OneResponse |
delete()
Deletes the network from OpenNebula. |
static OneResponse |
delete(Client client,
int id)
Deletes a network from OpenNebula. |
OneResponse |
info()
Loads the xml representation of the virtual network. |
static OneResponse |
info(Client client,
int id)
Retrieves the information of the given virtual network |
Methods inherited from class org.opennebula.client.PoolElement |
---|
getId, getName, processInfo, state, xpath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VirtualNetwork(int id, Client client)
id
- The virtual network id (nid) .client
- XML-RPC Client.protected VirtualNetwork(org.w3c.dom.Node xmlElement, Client client)
PoolElement
Method Detail |
---|
public static OneResponse allocate(Client client, java.lang.String description)
client
- XML-RPC Client.description
- A string containing the template
of the virtual network.
public static OneResponse info(Client client, int id)
client
- XML-RPC Client.id
- the virtual network id (nid) for the network to
retrieve the information from.
public static OneResponse delete(Client client, int id)
client
- XML-RPC Client.id
- The virtual network id (nid) of the target network.
public OneResponse info()
info(Client, int)
public OneResponse delete()
|
OpenNebula Cloud API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |