|
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
public abstract class Pool
Represents a generic OpenNebula Pool in XML format and provides the basic functionality to handle the Pool elements.
Field Summary | |
---|---|
protected Client |
client
|
protected java.lang.String |
elementName
|
protected org.w3c.dom.NodeList |
poolElements
|
Constructor Summary | |
---|---|
protected |
Pool(java.lang.String elementName,
Client client)
Sets the Pool attributes. |
Method Summary | |
---|---|
abstract PoolElement |
factory(org.w3c.dom.Node node)
The factory method returns a suitable PoolElement object from an XML node. |
int |
getLength()
The number of elements in the pool. |
PoolElement |
item(int index)
Returns the indexth element in the pool. |
void |
processInfo(OneResponse info)
After a *pool.info call, this method builds the internal xml representation of the pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Client client
protected java.lang.String elementName
protected org.w3c.dom.NodeList poolElements
Constructor Detail |
---|
protected Pool(java.lang.String elementName, Client client)
elementName
- Name of the PoolElement's xml elementclient
- XML-RPC client which will handle callsMethod Detail |
---|
public abstract PoolElement factory(org.w3c.dom.Node node)
node
- XML Dom node to build the PoolElement from
public void processInfo(OneResponse info)
info
- The XML-RPC *pool.info responsepublic PoolElement item(int index)
index
- Index of the element.
public int getLength()
|
OpenNebula Cloud API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |