|
OpenNebula Cloud API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennebula.client.PoolElement
public abstract class PoolElement
Represents a generic element of a Pool in XML format.
| Field Summary | |
|---|---|
protected Client |
client
|
protected int |
id
|
protected org.w3c.dom.Node |
xml
|
protected static javax.xml.xpath.XPath |
xpath
|
| Constructor Summary | |
|---|---|
protected |
PoolElement(int id,
Client client)
Creates a new PoolElement with the specified attributes. |
protected |
PoolElement(org.w3c.dom.Node xmlElement,
Client client)
Creates a new PoolElement from the xml provided. |
| Method Summary | |
|---|---|
java.lang.String |
getId()
Returns the element's ID. |
java.lang.String |
getName()
Returns the element's name. |
protected void |
processInfo(OneResponse info)
After a *.info call, this method builds the internal xml representation of the pool. |
int |
state()
Performs an xpath evaluation for the "state" expression. |
java.lang.String |
xpath(java.lang.String expression)
Evaluates an XPath expression and returns the result as a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static javax.xml.xpath.XPath xpath
protected int id
protected org.w3c.dom.Node xml
protected Client client
| Constructor Detail |
|---|
protected PoolElement(int id,
Client client)
id - Id of the element.client - XML-RPC Client.
protected PoolElement(org.w3c.dom.Node xmlElement,
Client client)
client - XML-RPC Client.xmlElement - XML representation of the element.| Method Detail |
|---|
protected void processInfo(OneResponse info)
info - The XML-RPC *.info responsepublic java.lang.String getId()
public java.lang.String getName()
public int state()
public java.lang.String xpath(java.lang.String expression)
expression - The XPath expression.
|
OpenNebula Cloud API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||