| 
OpenNebula Cloud API  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennebula.client.Pool
org.opennebula.client.host.HostPool
public class HostPool
This class represents an OpenNebula host pool. It also offers static XML-RPC call wrappers.
| Field Summary | 
|---|
| Fields inherited from class org.opennebula.client.Pool | 
|---|
ALL, client, elementName, infoMethod, MINE, MINE_GROUP, poolElements | 
| Constructor Summary | |
|---|---|
HostPool(Client client)
Creates a new host pool  | 
|
| Method Summary | |
|---|---|
 PoolElement | 
factory(org.w3c.dom.Node node)
The factory method returns a suitable PoolElement object from an XML node.  | 
 Host | 
getById(int id)
Returns the Host with the given Id from the pool.  | 
 OneResponse | 
info()
Loads the xml representation of the host pool.  | 
static OneResponse | 
info(Client client)
Retrieves all the hosts in the pool.  | 
 java.util.Iterator<Host> | 
iterator()
 | 
 OneResponse | 
monitoring()
Retrieves the monitoring data for all the hosts in the pool.  | 
static OneResponse | 
monitoring(Client client)
Retrieves the monitoring data for all the hosts in the pool.  | 
| Methods inherited from class org.opennebula.client.Pool | 
|---|
getLength, info, info, info, infoAll, infoAll, infoGroup, infoGroup, infoMine, infoMine, item, processInfo, xmlrpcInfo | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public HostPool(Client client)
client - XML-RPC Client.| Method Detail | 
|---|
public PoolElement factory(org.w3c.dom.Node node)
Pool
factory in class Poolnode - XML Dom node to build the PoolElement from
public static OneResponse info(Client client)
client - XML-RPC Client.
public static OneResponse monitoring(Client client)
client - XML-RPC Client.
public OneResponse info()
info in class Poolinfo(Client)public OneResponse monitoring()
public java.util.Iterator<Host> iterator()
iterator in interface java.lang.Iterable<Host>public Host getById(int id)
info() must be called before.
getById in class Poolid - of the Host to retrieve
  | 
OpenNebula Cloud API  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||