com.vmware.vim25.mo
Class ServerConnection

java.lang.Object
  extended by 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)

Constructor Summary
ServerConnection(URL url, VimPortType vimService, ServiceInstance serviceInstance)
           
 
Method Summary
 ServiceInstance getServiceInstance()
           
 String getSessionStr()
           
 URL getUrl()
           
 String getUsername()
           
 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.
 VimPortType getVimService()
           
 void logout()
          Disconnect from the server and clean up
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerConnection

public ServerConnection(URL url,
                        VimPortType vimService,
                        ServiceInstance serviceInstance)
Method Detail

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.