Modifier and Type | Field and Description |
---|---|
static int |
NONE_CLUSTER_ID |
ALL, client, elementName, infoMethod, MINE, MINE_GROUP, poolElements
Constructor and Description |
---|
ClusterPool(Client client)
Creates a new cluster pool
|
Modifier and Type | Method and Description |
---|---|
PoolElement |
factory(org.w3c.dom.Node node)
The factory method returns a suitable PoolElement object from
an XML node.
|
Cluster |
getById(int id)
Returns the Cluster with the given Id from the pool.
|
OneResponse |
info()
Loads the xml representation of the cluster pool.
|
static OneResponse |
info(Client client)
Retrieves all the clusters in the pool.
|
java.util.Iterator<Cluster> |
iterator() |
public static final int NONE_CLUSTER_ID
public ClusterPool(Client client)
client
- XML-RPC Client.public PoolElement factory(org.w3c.dom.Node node)
Pool
public static OneResponse info(Client client)
client
- XML-RPC Client.public OneResponse info()
info
in class Pool
info(Client)
public java.util.Iterator<Cluster> iterator()
iterator
in interface java.lang.Iterable<Cluster>
Visit OpenNebula.org
Copyright 2002-2013 ©
OpenNebula Project (OpenNebula.org), C12G Labs.