Package org.opennebula.client
Class OneSystem
- java.lang.Object
-
- org.opennebula.client.OneSystem
-
public class OneSystem extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
compatibleVersion()
Returns whether of not the oned version is the same as the OCA versionOneResponse
getConfiguration()
Calls OpenNebula and retrieves oned configurationorg.w3c.dom.Node
getConfigurationXML()
Calls OpenNebula and retrieves oned configurationOneResponse
getGroupQuotas()
Gets the default group quota limitsorg.w3c.dom.Node
getGroupQuotasXML()
Gets the default group quota limitsOneResponse
getOnedVersion()
Calls OpenNebula and retrieves the oned versionOneResponse
getUserQuotas()
Gets the default user quota limitsorg.w3c.dom.Node
getUserQuotasXML()
Gets the default user quota limitsOneResponse
setGroupQuotas(java.lang.String quota)
Sets the default group quota limitsOneResponse
setUserQuotas(java.lang.String quota)
Sets the default user quota limits
-
-
-
Field Detail
-
client
protected Client client
-
VERSION
public static final java.lang.String VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OneSystem
public OneSystem(Client client)
-
-
Method Detail
-
getOnedVersion
public OneResponse getOnedVersion()
Calls OpenNebula and retrieves the oned version- Returns:
- The server's xml-rpc response encapsulated
-
compatibleVersion
public boolean compatibleVersion()
Returns whether of not the oned version is the same as the OCA version- Returns:
- true if oned is the same version
-
getConfiguration
public OneResponse getConfiguration()
Calls OpenNebula and retrieves oned configuration- Returns:
- The server's xml-rpc response encapsulated
-
getConfigurationXML
public org.w3c.dom.Node getConfigurationXML()
Calls OpenNebula and retrieves oned configuration- Returns:
- The xml root node in case of success, null otherwise
-
getUserQuotas
public OneResponse getUserQuotas()
Gets the default user quota limits- Returns:
- the default user quota in case of success, Error otherwise
-
getUserQuotasXML
public org.w3c.dom.Node getUserQuotasXML()
Gets the default user quota limits- Returns:
- The xml root node in case of success, null otherwise
-
setUserQuotas
public OneResponse setUserQuotas(java.lang.String quota)
Sets the default user quota limits- Parameters:
quota
- a template (XML or txt) with the new quota limits- Returns:
- If an error occurs the error message contains the reason.
-
getGroupQuotas
public OneResponse getGroupQuotas()
Gets the default group quota limits- Returns:
- the default group quota in case of success, Error otherwise
-
getGroupQuotasXML
public org.w3c.dom.Node getGroupQuotasXML()
Gets the default group quota limits- Returns:
- The xml root node in case of success, null otherwise
-
setGroupQuotas
public OneResponse setGroupQuotas(java.lang.String quota)
Sets the default group quota limits- Parameters:
quota
- a template (XML or txt) with the new quota limits- Returns:
- If an error occurs the error message contains the reason.
-
-