Package com.vmware.connection
Class ESXHostSampleBase
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.connection.ESXHostSampleBase
-
- Direct Known Subclasses:
CreateUser
public class ESXHostSampleBase extends ConnectedVimServiceBase
Some API samples only make sense when used with an ESX(i) Host Samples based on this class will only function when connected to an ESX/ESXi host.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase
ConnectedVimServiceBase.ConnectionException
-
-
Field Summary
-
Fields inherited from class com.vmware.connection.ConnectedVimServiceBase
PROP_ME_NAME, SVC_INST_NAME
-
-
Constructor Summary
Constructors Constructor Description ESXHostSampleBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connectionconnect()connects this object, returns itself to allow for method chainingvoidsetConnection(Connection rawConnection)A method for dependency injection of the connection object.-
Methods inherited from class com.vmware.connection.ConnectedVimServiceBase
basicConnectionFromConnection, disconnect, getServiceInstanceReference, setHostConnection
-
-
-
-
Method Detail
-
setConnection
public void setConnection(Connection rawConnection)
Description copied from class:ConnectedVimServiceBaseA method for dependency injection of the connection object.- Overrides:
setConnectionin classConnectedVimServiceBase- Parameters:
rawConnection- the connection object to use for this POJO- See Also:
Connection
-
connect
@Before public Connection connect()
Description copied from class:ConnectedVimServiceBaseconnects this object, returns itself to allow for method chaining- Overrides:
connectin classConnectedVimServiceBase- Returns:
- a connected reference to itself.
-
-