|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.xensource.xenapi.Connection
public class Connection
Represents a connection to a XenServer. Creating a new instance of this class initialises a new XmlRpcClient that is then used by all method calls: each method call in xenapi takes a Connection as a parameter, composes an XMLRPC method call, and dispatches it on the Connection's client via the dispatch method.
| Field Summary | |
|---|---|
static java.lang.String |
BINDINGS_VERSION
The version of the bindings that this class belongs to. |
java.lang.Boolean |
rioConnection
Deprecated. Use getAPIVersion() instead. |
| Constructor Summary | |
|---|---|
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 username and password. |
|
Connection(java.net.URL url,
java.lang.String sessionReference)
Creates a connection to a particular server using a given username and password. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BINDINGS_VERSION
@Deprecated public java.lang.Boolean rioConnection
| Constructor Detail |
|---|
@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.XenAPIExceptionpublic Connection(java.net.URL url)
public Connection(java.net.URL url,
java.lang.String sessionReference)
| Method Detail |
|---|
public APIVersion getAPIVersion()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void dispose()
public org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig()
public java.lang.String getSessionReference()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||