|
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.Client
public class Client
This class represents the connection with the core and handles the xml-rpc calls.
Constructor Summary | |
---|---|
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. |
|
Client(java.lang.String secret,
java.lang.String endpoint)
Creates a new xml-rpc client with specified options. |
Method Summary | |
---|---|
OneResponse |
call(java.lang.String action,
java.lang.Object... args)
Performs an XML-RPC call. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Client() throws java.lang.Exception
java.lang.Exception
- if one authorization file cannot be located.public Client(java.lang.String secret, java.lang.String endpoint) throws java.lang.Exception
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
java.lang.Exception
- if the authorization options are invalidMethod Detail |
---|
public OneResponse call(java.lang.String action, java.lang.Object... args)
action
- ONE actionargs
- ONE arguments
|
OpenNebula Cloud API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |