Package org.opennebula.client
Class Client
java.lang.Object
org.opennebula.client.Client
This class represents the connection with the core and handles the
xml-rpc calls.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
This class extends the TypeFactoryImpl for supporting i8 type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPerforms an XML-RPC call.Calls OpenNebula and retrieves oned version
-
Constructor Details
-
Client
Creates a new xml-rpc client with default options: the auth. file will be assumed to be at $ONE_AUTH, and the endpoint will be set to $ONE_XMLRPC.
It is the equivalent of Client(null, null).- Throws:
ClientConfigurationException
- if the default configuration options are invalid.
-
Client
Creates a new xml-rpc client with specified options.- Parameters:
secret
- A string containing the ONE user:password tuple. Can be nullendpoint
- Where the rpc server is listening, must be something like "http://localhost:2633/RPC2". Can be null- Throws:
ClientConfigurationException
- if the configuration options are invalid
-
-
Method Details
-
call
Performs an XML-RPC call.- Parameters:
action
- ONE actionargs
- ONE arguments- Returns:
- The server's xml-rpc response encapsulated
-
get_version
Calls OpenNebula and retrieves oned version- Returns:
- The server's xml-rpc response encapsulated
-