com.xensource.xenapi
public class Connection extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
_connWait
Connection timeout for xml-rpc calls.
|
protected int |
_replyWait
Reply timeout for xml-rpc calls.
|
static java.lang.String |
BINDINGS_VERSION
The version of the bindings that this class belongs to.
|
Constructor and Description |
---|
Connection(java.lang.String client,
java.lang.String username,
java.lang.String password)
Deprecated.
Use a constructor that takes a URL as the first parameter instead.
|
Connection(java.net.URL url)
Creates a connection to a particular server using a given url.
|
Connection(java.net.URL url,
int replyWait,
int connWait)
Creates a connection to a particular server using a given url.
|
Connection(java.net.URL url,
java.lang.String sessionReference)
Creates a connection to a particular server using a given url.
|
Connection(java.net.URL url,
java.lang.String sessionReference,
int replyWait,
int connWait)
Creates a connection to a particular server using a given url.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map |
dispatch(java.lang.String method_call,
java.lang.Object[] method_params)
The (auto-generated parts of) the bindings dispatch XMLRPC calls on this Connection's client through this method.
|
void |
dispose()
Nothrow guarantee.
|
protected void |
finalize() |
APIVersion |
getAPIVersion()
Updated when Session.login_with_password() is called.
|
org.apache.xmlrpc.client.XmlRpcClientConfigImpl |
getConfig() |
java.lang.String |
getSessionReference() |
public static final java.lang.String BINDINGS_VERSION
protected int _replyWait
protected int _connWait
@Deprecated public Connection(java.lang.String client, java.lang.String username, java.lang.String password) throws java.net.MalformedURLException, org.apache.xmlrpc.XmlRpcException, Types.BadServerResponse, Types.SessionAuthenticationFailed, Types.XenAPIException
java.net.MalformedURLException
org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.SessionAuthenticationFailed
Types.XenAPIException
public Connection(java.net.URL url)
public Connection(java.net.URL url, int replyWait, int connWait)
public Connection(java.net.URL url, java.lang.String sessionReference)
public Connection(java.net.URL url, java.lang.String sessionReference, int replyWait, int connWait)
public APIVersion getAPIVersion()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void dispose()
public org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig()
public java.lang.String getSessionReference()
protected java.util.Map dispatch(java.lang.String method_call, java.lang.Object[] method_params) throws org.apache.xmlrpc.XmlRpcException, Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
Types.XenAPIException