|
||||||||
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 String |
BINDINGS_VERSION
The version of the bindings that this class belongs to. |
Boolean |
rioConnection
Deprecated. Use getAPIVersion() instead. |
Constructor Summary | |
---|---|
Connection(String client,
String username,
String password)
Deprecated. Use a constructor that takes a URL as the first parameter instead. |
|
Connection(URL url)
Creates a connection to a particular server using a given username and password. |
|
Connection(URL url,
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()
|
String |
getSessionReference()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BINDINGS_VERSION
@Deprecated public Boolean rioConnection
Constructor Detail |
---|
@Deprecated public Connection(String client, String username, String password) throws MalformedURLException, org.apache.xmlrpc.XmlRpcException, Types.BadServerResponse, Types.SessionAuthenticationFailed, Types.XenAPIException
MalformedURLException
org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.SessionAuthenticationFailed
Types.XenAPIException
public Connection(URL url)
public Connection(URL url, String sessionReference)
Method Detail |
---|
public APIVersion getAPIVersion()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public void dispose()
public org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig()
public String getSessionReference()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |