|
OpenNebula Cloud API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opennebula.client.Pool org.opennebula.client.vm.VirtualMachinePool
public class VirtualMachinePool
This class represents an OpenNebula VM pool. It also offers static XML-RPC call wrappers.
Field Summary |
---|
Fields inherited from class org.opennebula.client.Pool |
---|
client, elementName, poolElements |
Constructor Summary | |
---|---|
VirtualMachinePool(Client client)
Creates a new VM pool with the default filter flag value set to 0 (VMs belonging to user with UID 0) |
|
VirtualMachinePool(Client client,
int filter)
Creates a new VM 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 all or part of the VMs in the pool. |
static OneResponse |
info(Client client,
int filter)
Retrieves all or part of the VMs in the pool. |
java.util.Iterator<VirtualMachine> |
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 |
---|
public VirtualMachinePool(Client client)
client
- XML-RPC Client.VirtualMachinePool(Client, int)
public VirtualMachinePool(Client client, int filter)
client
- XML-RPC Client.filter
- Filter flag used by default in the method
info()
. Possible values:
Method Detail |
---|
public PoolElement factory(org.w3c.dom.Node node)
Pool
factory
in class Pool
node
- XML Dom node to build the PoolElement from
public static OneResponse info(Client client, int filter)
client
- XML-RPC Client.filter
- Filter flag. Possible values:
public OneResponse info()
info(Client, int)
public java.util.Iterator<VirtualMachine> iterator()
iterator
in interface java.lang.Iterable<VirtualMachine>
|
OpenNebula Cloud API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |