Package org.opennebula.client.vdc
Class VdcPool
java.lang.Object
org.opennebula.client.Pool
org.opennebula.client.vdc.VdcPool
This class represents an OpenNebula vdc pool.
It also offers static XML-RPC call wrappers.
-
Field Summary
Fields inherited from class org.opennebula.client.Pool
ALL, client, elementName, GROUP, infoMethod, MINE, MINE_GROUP, poolElements, xpath
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe factory method returns a suitable PoolElement object from an XML node.getById
(int id) Returns the Vdc with the given Id from the pool.info()
Loads the xml representation of the vdc pool.static OneResponse
Retrieves all the vdcs in the pool.iterator()
Methods inherited from class org.opennebula.client.Pool
getLength, info, info, info, infoAll, infoAll, infoGroup, infoGroup, infoGroupPrimary, infoMine, infoMine, item, processInfo, xmlrpcInfo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
VdcPool
Creates a new vdc pool- Parameters:
client
- XML-RPC Client.
-
-
Method Details
-
factory
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. -
info
Retrieves all the vdcs in the pool.- Parameters:
client
- XML-RPC Client.- Returns:
- If successful the message contains the string with the information returned by OpenNebula.
-
info
Loads the xml representation of the vdc pool. -
iterator
-
getById
Returns the Vdc with the given Id from the pool. If it is not found, then returns null. The methodinfo()
must be called before.
-