|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.xensource.xenapi.Session
public class Session
A session
| Nested Class Summary | |
|---|---|
static class |
Session.Record
Represents all the fields in a Session |
| Field Summary | |
|---|---|
protected String |
ref
The XenAPI reference to this object. |
| Method Summary | |
|---|---|
static Map<Session,Session.Record> |
getAllRecords()
Get all the Session Records at once, in a single XML RPC call |
static Session |
getByUuid(String uuid)
Get a reference to the session instance with the specified UUID. |
protected static Session |
getInstFromRef(String ref)
|
Long |
getLastActive()
Get the last_active field of the given session. |
Session.Record |
getRecord()
Get a record containing the current state of the given session. |
Host |
getThisHost()
Get the this_host field of the given session. |
User |
getThisUser()
Get the this_user field of the given session. |
String |
getUuid()
Get the uuid field of the given session. |
static Session |
loginWithPassword(String uname,
String pwd)
Attempt to authenticate the user, returning a session_id if successful |
static void |
logout()
Log out of a session |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String ref
| Method Detail |
|---|
protected static Session getInstFromRef(String ref)
public Session.Record getRecord()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Session getByUuid(String uuid)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
uuid - UUID of object to return
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public String getUuid()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Host getThisHost()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public User getThisUser()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public Long getLastActive()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Session loginWithPassword(String uname,
String pwd)
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
uname - Username for login.pwd - Password for login.
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static void logout()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
public static Map<Session,Session.Record> getAllRecords()
throws Types.BadServerResponse,
ConnectionHelper.NoConnectionOnThisThreadException,
XmlRpcException
Types.BadServerResponse
ConnectionHelper.NoConnectionOnThisThreadException
XmlRpcException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||