ia64/xen-unstable

changeset 13280:f43fc1d6c1a6

Added session.last_active field. Removed the constructors and destructors for
session and task classes -- these are implicitly added and removed, so we
should not have explicit constructors and destructors for them.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Fri Jan 05 15:51:39 2007 +0000 (2007-01-05)
parents 8fd5113abb2e
children 568efb79a0f6
files docs/xen-api/xenapi-datamodel.tex
line diff
     1.1 --- a/docs/xen-api/xenapi-datamodel.tex	Fri Jan 05 15:50:20 2007 +0000
     1.2 +++ b/docs/xen-api/xenapi-datamodel.tex	Fri Jan 05 15:51:39 2007 +0000
     1.3 @@ -286,6 +286,7 @@ Quals & Field & Type & Description \\
     1.4  $\mathit{RO}_\mathit{run}$ &  {\tt uuid} & string & unique identifier/object reference \\
     1.5  $\mathit{RO}_\mathit{ins}$ &  {\tt this\_host} & host ref & Currently connected host \\
     1.6  $\mathit{RO}_\mathit{ins}$ &  {\tt this\_user} & user ref & Currently connected user \\
     1.7 +$\mathit{RO}_\mathit{run}$ &  {\tt last\_active} & int & Timestamp for last time session was active \\
     1.8  \hline
     1.9  \end{longtable}
    1.10  \subsection{Additional RPCs associated with class: session}
    1.11 @@ -440,45 +441,13 @@ value of the field
    1.12  \vspace{0.3cm}
    1.13  \vspace{0.3cm}
    1.14  \vspace{0.3cm}
    1.15 -\subsubsection{RPC name:~create}
    1.16 -
    1.17 -{\bf Overview:} 
    1.18 -Create a new session instance, and return its handle.
    1.19 -
    1.20 - \noindent {\bf Signature:} 
    1.21 -\begin{verbatim} (session ref) create (session_id s, session record args)\end{verbatim}
    1.22 -
    1.23 -
    1.24 -\noindent{\bf Arguments:}
    1.25 -
    1.26 - 
    1.27 -\vspace{0.3cm}
    1.28 -\begin{tabular}{|c|c|p{7cm}|}
    1.29 - \hline
    1.30 -{\bf type} & {\bf name} & {\bf description} \\ \hline
    1.31 -{\tt session record } & args & All constructor arguments \\ \hline 
    1.32 -
    1.33 -\end{tabular}
    1.34 -
    1.35 -\vspace{0.3cm}
    1.36 -
    1.37 - \noindent {\bf Return Type:} 
    1.38 -{\tt 
    1.39 -session ref
    1.40 -}
    1.41 -
    1.42 -
    1.43 -reference to the newly created object
    1.44 -\vspace{0.3cm}
    1.45 -\vspace{0.3cm}
    1.46 -\vspace{0.3cm}
    1.47 -\subsubsection{RPC name:~destroy}
    1.48 -
    1.49 -{\bf Overview:} 
    1.50 -Destroy the specified session instance.
    1.51 -
    1.52 - \noindent {\bf Signature:} 
    1.53 -\begin{verbatim} void destroy (session_id s, session ref self)\end{verbatim}
    1.54 +\subsubsection{RPC name:~get\_last\_active}
    1.55 +
    1.56 +{\bf Overview:} 
    1.57 +Get the last\_active field of the given session.
    1.58 +
    1.59 + \noindent {\bf Signature:} 
    1.60 +\begin{verbatim} int get_last_active (session_id s, session ref self)\end{verbatim}
    1.61  
    1.62  
    1.63  \noindent{\bf Arguments:}
    1.64 @@ -496,11 +465,11 @@ Destroy the specified session instance.
    1.65  
    1.66   \noindent {\bf Return Type:} 
    1.67  {\tt 
    1.68 -void
    1.69 -}
    1.70 -
    1.71 -
    1.72 -
    1.73 +int
    1.74 +}
    1.75 +
    1.76 +
    1.77 +value of the field
    1.78  \vspace{0.3cm}
    1.79  \vspace{0.3cm}
    1.80  \vspace{0.3cm}
    1.81 @@ -596,7 +565,7 @@ Quals & Field & Type & Description \\
    1.82  \subsubsection{RPC name:~get\_all}
    1.83  
    1.84  {\bf Overview:} 
    1.85 -Return a list of all the tasks known to the system
    1.86 +Return a list of all the tasks known to the system.
    1.87  
    1.88   \noindent {\bf Signature:} 
    1.89  \begin{verbatim} ((task ref) Set) get_all (session_id s)\end{verbatim}
    1.90 @@ -1002,70 +971,6 @@ value of the field
    1.91  \vspace{0.3cm}
    1.92  \vspace{0.3cm}
    1.93  \vspace{0.3cm}
    1.94 -\subsubsection{RPC name:~create}
    1.95 -
    1.96 -{\bf Overview:} 
    1.97 -Create a new task instance, and return its handle.
    1.98 -
    1.99 - \noindent {\bf Signature:} 
   1.100 -\begin{verbatim} (task ref) create (session_id s, task record args)\end{verbatim}
   1.101 -
   1.102 -
   1.103 -\noindent{\bf Arguments:}
   1.104 -
   1.105 - 
   1.106 -\vspace{0.3cm}
   1.107 -\begin{tabular}{|c|c|p{7cm}|}
   1.108 - \hline
   1.109 -{\bf type} & {\bf name} & {\bf description} \\ \hline
   1.110 -{\tt task record } & args & All constructor arguments \\ \hline 
   1.111 -
   1.112 -\end{tabular}
   1.113 -
   1.114 -\vspace{0.3cm}
   1.115 -
   1.116 - \noindent {\bf Return Type:} 
   1.117 -{\tt 
   1.118 -task ref
   1.119 -}
   1.120 -
   1.121 -
   1.122 -reference to the newly created object
   1.123 -\vspace{0.3cm}
   1.124 -\vspace{0.3cm}
   1.125 -\vspace{0.3cm}
   1.126 -\subsubsection{RPC name:~destroy}
   1.127 -
   1.128 -{\bf Overview:} 
   1.129 -Destroy the specified task instance.
   1.130 -
   1.131 - \noindent {\bf Signature:} 
   1.132 -\begin{verbatim} void destroy (session_id s, task ref self)\end{verbatim}
   1.133 -
   1.134 -
   1.135 -\noindent{\bf Arguments:}
   1.136 -
   1.137 - 
   1.138 -\vspace{0.3cm}
   1.139 -\begin{tabular}{|c|c|p{7cm}|}
   1.140 - \hline
   1.141 -{\bf type} & {\bf name} & {\bf description} \\ \hline
   1.142 -{\tt task ref } & self & reference to the object \\ \hline 
   1.143 -
   1.144 -\end{tabular}
   1.145 -
   1.146 -\vspace{0.3cm}
   1.147 -
   1.148 - \noindent {\bf Return Type:} 
   1.149 -{\tt 
   1.150 -void
   1.151 -}
   1.152 -
   1.153 -
   1.154 -
   1.155 -\vspace{0.3cm}
   1.156 -\vspace{0.3cm}
   1.157 -\vspace{0.3cm}
   1.158  \subsubsection{RPC name:~get\_by\_uuid}
   1.159  
   1.160  {\bf Overview:}