Class ConnectedVimServiceBase

    • Constructor Detail

      • ConnectedVimServiceBase

        public ConnectedVimServiceBase()
    • Method Detail

      • setHostConnection

        @Option(name="basic-connection",
                required=false,
                description="Turn off the use of SSO for connections. Useful for connecting to ESX or ESXi hosts.",
                parameter=false)
        public void setHostConnection​(java.lang.Boolean value)
      • getServiceInstanceReference

        public com.vmware.vim25.ManagedObjectReference getServiceInstanceReference()
        Use this method to get a reference to the service instance itself.

        Returns:
        a managed object reference referring to the service instance itself.
      • setConnection

        @Option(name="connection",
                type=Connection.class)
        public void setConnection​(Connection connect)
        A method for dependency injection of the connection object.

        Parameters:
        connect - the connection object to use for this POJO
        See Also:
        Connection
      • connect

        @Before
        public Connection connect()
        connects this object, returns itself to allow for method chaining
        Returns:
        a connected reference to itself.
      • disconnect

        @After
        public Connection disconnect()
        disconnects this object and returns a reference to itself for method chaining
        Returns:
        a disconnected reference to itself