OpenNebula
Cloud API

org.opennebula.client.cluster
Class ClusterPool

java.lang.Object
  extended by org.opennebula.client.Pool
      extended by org.opennebula.client.cluster.ClusterPool
All Implemented Interfaces:
java.lang.Iterable<Cluster>

public class ClusterPool
extends Pool
implements java.lang.Iterable<Cluster>

This class represents an OpenNebula Cluster pool. It also offers static XML-RPC call wrappers.


Field Summary
 
Fields inherited from class org.opennebula.client.Pool
client, elementName, poolElements
 
Constructor Summary
ClusterPool(Client client)
          Creates a new Image pool
 
Method Summary
 PoolElement factory(org.w3c.dom.Node node)
          The factory method returns a suitable PoolElement object from an XML node.
 OneResponse info()
          Loads the xml representation of the Cluster pool.
static OneResponse info(Client client)
          Returns the Cluster pool information.
 java.util.Iterator<Cluster> iterator()
           
 
Methods inherited from class org.opennebula.client.Pool
getLength, item, processInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterPool

public ClusterPool(Client client)
Creates a new Image pool

Parameters:
client - XML-RPC Client.
Method Detail

factory

public PoolElement factory(org.w3c.dom.Node node)
Description copied from class: Pool
The factory method returns a suitable PoolElement object from an XML node. Each Pool must implement the corresponding factory method.

Specified by:
factory in class Pool
Parameters:
node - XML Dom node to build the PoolElement from
Returns:
The corresponding PoolElement

info

public static OneResponse info(Client client)
Returns the Cluster pool information.

Parameters:
client - XML-RPC Client.
Returns:
If successful the message contains the string with the information returned by OpenNebula.

info

public OneResponse info()
Loads the xml representation of the Cluster pool.

See Also:
info(Client)

iterator

public java.util.Iterator<Cluster> iterator()
Specified by:
iterator in interface java.lang.Iterable<Cluster>

OpenNebula
Cloud API

Visit OpenNebula.org
Copyright 2002-2010 © OpenNebula Project Leads (OpenNebula.org).