|
OpenNebula Cloud API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennebula.client.PoolElement
org.opennebula.client.cluster.Cluster
public class Cluster
This class represents an OpenNebula cluster. It also offers static XML-RPC call wrappers.
| Field Summary |
|---|
| Fields inherited from class org.opennebula.client.PoolElement |
|---|
client, id, xml, xpath |
| Constructor Summary | |
|---|---|
|
Cluster(int id,
Client client)
Creates a new Image representation. |
protected |
Cluster(org.w3c.dom.Node xmlElement,
Client client)
|
| Method Summary | |
|---|---|
static OneResponse |
add(Client client,
int id,
int hid)
Adds a host to a cluster. |
OneResponse |
add(Host host)
Adds a host to the cluster. |
OneResponse |
add(int hid)
Adds a host to the cluster. |
static OneResponse |
allocate(Client client,
java.lang.String name)
Allocates a new Cluster in OpenNebula. |
OneResponse |
delete()
Deletes the cluster from OpenNebula. |
static OneResponse |
delete(Client client,
int id)
Deletes a cluster from OpenNebula. |
OneResponse |
info()
Retrieves the information of the Cluster. |
static OneResponse |
info(Client client,
int id)
Retrieves the information of the given Cluster. |
static OneResponse |
remove(Client client,
int hid)
Removes a host from its cluster. |
OneResponse |
remove(Host host)
Removes a host from its cluster. |
OneResponse |
remove(int hid)
Removes a host from its cluster. |
| Methods inherited from class org.opennebula.client.PoolElement |
|---|
getId, getName, id, processInfo, state, xpath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cluster(int id,
Client client)
id - The image id.client - XML-RPC Client.
protected Cluster(org.w3c.dom.Node xmlElement,
Client client)
PoolElement| Method Detail |
|---|
public static OneResponse allocate(Client client,
java.lang.String name)
client - XML-RPC Client.name - Name for the cluster we want to add.
public static OneResponse info(Client client,
int id)
client - XML-RPC Client.id - The cluster id for the cluster to retrieve the information from
public static OneResponse delete(Client client,
int id)
client - XML-RPC Client.id - The cluster id of the target cluster we want to delete.
public static OneResponse add(Client client,
int id,
int hid)
client - XML-RPC Client.id - The cluster id of the cluster where the host will be assigned.hid - The host id (hid) of the host.
public static OneResponse remove(Client client,
int hid)
client - XML-RPC Client.hid - The host id (hid) of the host.
public OneResponse info()
public OneResponse delete()
public OneResponse add(int hid)
hid - The host id (hid) of the host.
public OneResponse add(Host host)
host - The Host to add.
public OneResponse remove(int hid)
hid - The host id (hid) of the host.
public OneResponse remove(Host host)
host - The Host to remove.
|
OpenNebula Cloud API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||