Package com.vmware.vim25.mo
Class ServerConnection
java.lang.Object
com.vmware.vim25.mo.ServerConnection
The class representing the connection to a server either VC server or ESX.
-
Constructor Summary
ConstructorsConstructorDescriptionServerConnection(URL url, VimPortType vimService, ServiceInstance serviceInstance) -
Method Summary
-
Constructor Details
-
ServerConnection
-
-
Method Details
-
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
-
getVimService
-
getUrl
-
getUsername
-
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.
-