com.vmware.vim25.mo
Class ServerConnection
java.lang.Object
com.vmware.vim25.mo.ServerConnection
public final class ServerConnection
- extends Object
The class representing the connection to a server either VC server or ESX.
- Author:
- Steve JIN (sjin@vmware.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerConnection
public ServerConnection(URL url,
VimPortType vimService,
ServiceInstance serviceInstance)
getSessionStr
public String getSessionStr()
- Returns:
- the current session string in format like:
vmware_soap_session="B3240D15-34DF-4BB8-B902-A844FDF42E85"
logout
public void logout()
- Disconnect from the server and clean up
getServiceInstance
public ServiceInstance getServiceInstance()
getVimService
public VimPortType getVimService()
getUrl
public URL getUrl()
getUsername
public String getUsername()
getUserSession
public UserSession getUserSession()
- Deprecated. This method returns a cached UserSession which holds dynamic properties,
for example, lastActiveTime, but are not updated. To avoid this confusion,
deprecate it. Also see bug: 3403474
To get updated UserSession, always use SessionManager.
Copyright © 2011-2012. All Rights Reserved.