public class Client
extends java.lang.Object
| Constructor and Description |
|---|
Client()
Creates a new xml-rpc client with default options: the auth.
|
Client(java.lang.String secret,
java.lang.String endpoint)
Creates a new xml-rpc client with specified options.
|
| Modifier and Type | Method and Description |
|---|---|
OneResponse |
call(java.lang.String action,
java.lang.Object... args)
Performs an XML-RPC call.
|
OneResponse |
get_version()
Calls OpenNebula and retrieves oned version
|
public Client()
throws ClientConfigurationException
ClientConfigurationException - if the default configuration options are invalid.public Client(java.lang.String secret,
java.lang.String endpoint)
throws ClientConfigurationException
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 nullClientConfigurationException - if the configuration options are invalidpublic OneResponse call(java.lang.String action, java.lang.Object... args)
action - ONE actionargs - ONE argumentspublic OneResponse get_version()
Visit OpenNebula.org
Copyright 2002-2013 ©
OpenNebula Project (OpenNebula.org), C12G Labs.