public class Vdc extends PoolElement
client, id, xml, xpath
Modifier | Constructor and Description |
---|---|
|
Vdc(int id,
Client client)
Creates a new Vdc representation.
|
protected |
Vdc(org.w3c.dom.Node xmlElement,
Client client) |
Modifier and Type | Method and Description |
---|---|
static OneResponse |
addCluster(Client client,
int id,
int zoneId,
int clusterId)
Adds a cluster to this VDC
|
OneResponse |
addCluster(int zoneId,
int clusterId)
Adds a cluster to this VDC
|
static OneResponse |
addDatastore(Client client,
int id,
int zoneId,
int datastoreId)
Adds a datastore to this VDC
|
OneResponse |
addDatastore(int zoneId,
int datastoreId)
Adds a datastore to this VDC
|
static OneResponse |
addGroup(Client client,
int id,
int groupId)
Adds a group to this VDC
|
OneResponse |
addGroup(int groupId)
Adds a group to this VDC
|
static OneResponse |
addHost(Client client,
int id,
int zoneId,
int hostId)
Adds a host to this VDC
|
OneResponse |
addHost(int zoneId,
int hostId)
Adds a host to this VDC
|
static OneResponse |
addVnet(Client client,
int id,
int zoneId,
int vnetId)
Adds a vnet to this VDC
|
OneResponse |
addVnet(int zoneId,
int vnetId)
Adds a vnet to this VDC
|
static OneResponse |
allocate(Client client,
java.lang.String description)
Allocates a new vdc in OpenNebula
|
static OneResponse |
delCluster(Client client,
int id,
int zoneId,
int clusterId)
Deletes a cluster from this VDC
|
OneResponse |
delCluster(int zoneId,
int clusterId)
Deletes a cluster from this VDC
|
static OneResponse |
delDatastore(Client client,
int id,
int zoneId,
int datastoreId)
Deletes a datastore from this VDC
|
OneResponse |
delDatastore(int zoneId,
int datastoreId)
Deletes a datastore from this VDC
|
OneResponse |
delete()
Deletes the vdc from OpenNebula.
|
static OneResponse |
delete(Client client,
int id)
Deletes a vdc from OpenNebula.
|
static OneResponse |
delGroup(Client client,
int id,
int groupId)
Deletes a group from this VDC
|
OneResponse |
delGroup(int groupId)
Deletes a group from this VDC
|
static OneResponse |
delHost(Client client,
int id,
int zoneId,
int hostId)
Deletes a host from this VDC
|
OneResponse |
delHost(int zoneId,
int hostId)
Deletes a host from this VDC
|
static OneResponse |
delVnet(Client client,
int id,
int zoneId,
int vnetId)
Deletes a vnet from this VDC
|
OneResponse |
delVnet(int zoneId,
int vnetId)
Deletes a vnet from this VDC
|
OneResponse |
info()
Loads the xml representation of the vdc.
|
static OneResponse |
info(Client client,
int id)
Retrieves the information of the given vdc.
|
static OneResponse |
rename(Client client,
int id,
java.lang.String name)
Renames this vdc
|
OneResponse |
rename(java.lang.String name)
Renames this Vdc
|
static OneResponse |
update(Client client,
int id,
java.lang.String new_template,
boolean append)
Replaces the template contents.
|
OneResponse |
update(java.lang.String new_template)
Replaces the template contents.
|
OneResponse |
update(java.lang.String new_template,
boolean append)
Replaces the template contents.
|
public Vdc(int id, Client client)
id
- The vdc id.client
- XML-RPC Client.protected Vdc(org.w3c.dom.Node xmlElement, Client client)
PoolElement
public static OneResponse allocate(Client client, java.lang.String description)
client
- XML-RPC Client.description
- A string containing the template of the vdc.public static OneResponse info(Client client, int id)
client
- XML-RPC Client.id
- The vdc id.public static OneResponse delete(Client client, int id)
client
- XML-RPC Client.id
- The vdc id.public static OneResponse update(Client client, int id, java.lang.String new_template, boolean append)
client
- XML-RPC Client.id
- The vdc id of the target vdc we want to modify.new_template
- New template contentsappend
- True to append new attributes instead of replace the whole templatepublic static OneResponse rename(Client client, int id, java.lang.String name)
client
- XML-RPC Client.id
- The vdc id of the target vdcname
- New name for the vdc.public static OneResponse addGroup(Client client, int id, int groupId)
client
- XML-RPC Client.id
- The vdc id of the target vdcgroupId
- The group to addpublic static OneResponse delGroup(Client client, int id, int groupId)
client
- XML-RPC Client.id
- The vdc id of the target vdcgroupId
- The group to deletepublic static OneResponse addCluster(Client client, int id, int zoneId, int clusterId)
client
- XML-RPC Client.id
- The vdc id of the target vdczoneId
- The cluster's zoneclusterId
- The cluster to addpublic static OneResponse delCluster(Client client, int id, int zoneId, int clusterId)
client
- XML-RPC Client.id
- The vdc id of the target vdczoneId
- The cluster's zoneclusterId
- The cluster to deletepublic static OneResponse addHost(Client client, int id, int zoneId, int hostId)
client
- XML-RPC Client.id
- The vdc id of the target vdczoneId
- The host's zonehostId
- The host to addpublic static OneResponse delHost(Client client, int id, int zoneId, int hostId)
client
- XML-RPC Client.id
- The vdc id of the target vdczoneId
- The host's zonehostId
- The host to deletepublic static OneResponse addVnet(Client client, int id, int zoneId, int vnetId)
client
- XML-RPC Client.id
- The vdc id of the target vdczoneId
- The vnet's zonevnetId
- The vnet to addpublic static OneResponse delVnet(Client client, int id, int zoneId, int vnetId)
client
- XML-RPC Client.id
- The vdc id of the target vdczoneId
- The vnet's zonevnetId
- The vnet to deletepublic static OneResponse addDatastore(Client client, int id, int zoneId, int datastoreId)
client
- XML-RPC Client.id
- The vdc id of the target vdczoneId
- The datastore's zonedatastoreId
- The datastore to addpublic static OneResponse delDatastore(Client client, int id, int zoneId, int datastoreId)
client
- XML-RPC Client.id
- The vdc id of the target vdczoneId
- The datastore's zonedatastoreId
- The datastore to deletepublic OneResponse info()
info(Client, int)
public OneResponse delete()
delete(Client, int)
public OneResponse update(java.lang.String new_template)
new_template
- New template contentspublic OneResponse update(java.lang.String new_template, boolean append)
new_template
- New template contentsappend
- True to append new attributes instead of replace the whole templatepublic OneResponse rename(java.lang.String name)
name
- New name for the vdc.public OneResponse addGroup(int groupId)
groupId
- The group to addpublic OneResponse delGroup(int groupId)
groupId
- The group to deletepublic OneResponse addCluster(int zoneId, int clusterId)
zoneId
- The cluster's zoneclusterId
- The cluster to addpublic OneResponse delCluster(int zoneId, int clusterId)
zoneId
- The cluster's zoneclusterId
- The cluster to deletepublic OneResponse addHost(int zoneId, int hostId)
zoneId
- The host's zonehostId
- The host to addpublic OneResponse delHost(int zoneId, int hostId)
zoneId
- The host's zonehostId
- The host to deletepublic OneResponse addVnet(int zoneId, int vnetId)
zoneId
- The vnet's zonevnetId
- The vnet to addpublic OneResponse delVnet(int zoneId, int vnetId)
zoneId
- The vnet's zonevnetId
- The vnet to deletepublic OneResponse addDatastore(int zoneId, int datastoreId)
zoneId
- The datastore's zonedatastoreId
- The datastore to addpublic OneResponse delDatastore(int zoneId, int datastoreId)
zoneId
- The datastore's zonedatastoreId
- The datastore to deleteVisit OpenNebula.org
Copyright 2002-2015 ©
OpenNebula Project (OpenNebula.org), C12G Labs.