- Timestamp:
- Feb 18, 2015 3:38:34 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/SDKRef.xml
r52793 r54266 1217 1217 1218 1218 <para>Upon logon, the websession manager creates one instance 1219 of <xref linkend="IVirtualBox" xreflabel="IVirtualBox" /> and 1220 another object of <xref linkend="ISession" 1221 xreflabel="ISession" /> representing the web service session. 1222 This can be retrieved using <xref 1219 of <xref linkend="IVirtualBox" xreflabel="IVirtualBox" />, 1220 which can be used for directly performing calls to its 1221 methods, or used as a parameter for calling some methods of 1222 <xref linkend="IWebsessionManager" xreflabel="IWebsessionManager" />. 1223 Creating Main API session objects is performed using <xref 1223 1224 linkend="IWebsessionManager__getSessionObject" 1224 1225 xreflabel="IWebsessionManager::getSessionObject()" />.</para> … … 1226 1227 <para>(Technically, there is always only one <xref 1227 1228 linkend="IVirtualBox" xreflabel="IVirtualBox" /> object, which 1228 is shared between all sessions and clients, as it is a COM1229 is shared between all websessions and clients, as it is a COM 1229 1230 singleton. However, each session receives its own managed 1230 object reference to it. The <xref linkend="ISession" 1231 xreflabel="ISession" /> object, however, is created and 1232 destroyed for each session.)</para> 1231 object reference to it.)</para> 1233 1232 </listitem> 1234 1233 … … 1528 1527 name = "Linux" 1529 1528 mach = vbox.findMachine(name) 1530 session = mgr. mgr.getSessionObject(vbox)1529 session = mgr.getSessionObject(vbox) 1531 1530 progress = mach.launchVMProcess(session, "gui", "") 1532 1531 progress.waitForCompletion(-1) … … 1549 1548 available virtual machines in case of XPCOM), and a mechanism of 1550 1549 uniform session creation and closing 1551 (<computeroutput>mgr. mgr.getSessionObject()</computeroutput>).</para>1550 (<computeroutput>mgr.getSessionObject()</computeroutput>).</para> 1552 1551 1553 1552 <para>In case you want to use the glue layer with a different Python … … 2292 2291 xreflabel="ISession" /> interface. Each process which talks to 2293 2292 VirtualBox needs its own instance of ISession. In the web service, you 2294 cannot create such an object, but 2295 <computeroutput>vboxwebsrv</computeroutput> creates one for you when you 2296 log on, which you can obtain by calling <xref 2293 can request the creation of such an object by calling <xref 2297 2294 linkend="IWebsessionManager__getSessionObject" 2298 xreflabel="IWebsessionManager::getSessionObject()" />.</para> 2295 xreflabel="IWebsessionManager::getSessionObject()" />. More complex 2296 management tasks might need multiple instances of ISession, and each call 2297 returns a new one.</para> 2299 2298 2300 2299 <para>This session object must then be used like a mutex semaphore in … … 3908 3907 </itemizedlist></para> 3909 3908 </listitem> 3909 3910 <listitem> 3911 <para>The method <xref linkend="IWebsessionManager__getSessionObject" 3912 xreflabel="IWebsessionManager::getSessionObject()" /> now returns 3913 a new <xref linkend="ISession" xreflabel="ISession" /> instance for 3914 every invocation. This puts the behavior in line with other binding 3915 styles, which never forced the equivalent of establishing another 3916 connection and logging in again to get another instance.</para> 3917 </listitem> 3910 3918 </itemizedlist> 3911 3919 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.