Interface Connection

  • All Known Implementing Classes:
    BasicConnection, SsoConnection

    public interface Connection
    This simple object shows how to set up a vCenter connection. It is intended as a utility class for use by Samples that will need to connect before they can do anything useful. This is a light weight POJO that should be very easy to make portable.
    See Also:
    ConnectedVimServiceBase
    • Method Detail

      • setUrl

        @Option(name="url",
                systemProperty="vimService.url",
                description="full url to the vSphere WS SDK service")
        void setUrl​(java.lang.String url)
      • getUrl

        java.lang.String getUrl()
      • getHost

        java.lang.String getHost()
      • getPort

        java.lang.Integer getPort()
      • setUsername

        @Option(name="username",
                systemProperty="connection.username",
                description="username on remote system")
        void setUsername​(java.lang.String username)
      • getUsername

        java.lang.String getUsername()
      • setPassword

        @Option(name="password",
                systemProperty="connection.password",
                description="password on remote system")
        void setPassword​(java.lang.String password)
      • getPassword

        java.lang.String getPassword()
      • getVimService

        com.vmware.vim25.VimService getVimService()
      • getVimPort

        com.vmware.vim25.VimPortType getVimPort()
      • getServiceContent

        com.vmware.vim25.ServiceContent getServiceContent()
      • getUserSession

        com.vmware.vim25.UserSession getUserSession()
      • getServiceInstanceName

        java.lang.String getServiceInstanceName()
      • getHeaders

        java.util.Map getHeaders()
      • getServiceInstanceReference

        com.vmware.vim25.ManagedObjectReference getServiceInstanceReference()
      • isConnected

        boolean isConnected()
      • getURL

        java.net.URL getURL()