public class InstallerStub extends com.vmware.vapi.internal.bindings.Stub implements Installer
Installer
API service.
WARNING: Internal class, subject to change in future versions.
InstallerTypes.Info
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
InstallerStub(ApiProvider apiProvider,
StubConfigurationBase config) |
InstallerStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
void |
connect(java.lang.String vm)
Connects the VMware Tools CD installer as a CD-ROM for the guest operating
system.
|
void |
connect(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback)
Connects the VMware Tools CD installer as a CD-ROM for the guest operating
system.
|
void |
connect(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Connects the VMware Tools CD installer as a CD-ROM for the guest operating
system.
|
void |
connect(java.lang.String vm,
InvocationConfig invocationConfig)
Connects the VMware Tools CD installer as a CD-ROM for the guest operating
system.
|
void |
disconnect(java.lang.String vm)
Disconnect the VMware Tools installer CD image.
|
void |
disconnect(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback)
Disconnect the VMware Tools installer CD image.
|
void |
disconnect(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Disconnect the VMware Tools installer CD image.
|
void |
disconnect(java.lang.String vm,
InvocationConfig invocationConfig)
Disconnect the VMware Tools installer CD image.
|
InstallerTypes.Info |
get(java.lang.String vm)
Get information about the VMware Tools installer.
|
void |
get(java.lang.String vm,
AsyncCallback<InstallerTypes.Info> asyncCallback)
Get information about the VMware Tools installer.
|
void |
get(java.lang.String vm,
AsyncCallback<InstallerTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Get information about the VMware Tools installer.
|
InstallerTypes.Info |
get(java.lang.String vm,
InvocationConfig invocationConfig)
Get information about the VMware Tools installer.
|
public InstallerStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public InstallerStub(ApiProvider apiProvider, StubConfigurationBase config)
public InstallerTypes.Info get(java.lang.String vm)
Installer
Synchronous method overload. Result of the invocation will be reported as a method return value.
public InstallerTypes.Info get(java.lang.String vm, InvocationConfig invocationConfig)
Installer
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void get(java.lang.String vm, AsyncCallback<InstallerTypes.Info> asyncCallback)
Installer
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
information about the VMware Tools installer.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
public void get(java.lang.String vm, AsyncCallback<InstallerTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Installer
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
information about the VMware Tools installer.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
get
in interface Installer
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void connect(java.lang.String vm)
Installer
getVersionStatus()
and getRunState()
from Tools.get(java.lang.String)
. This method was added in vSphere API 7.0.0.0.
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void connect(java.lang.String vm, InvocationConfig invocationConfig)
Installer
getVersionStatus()
and getRunState()
from Tools.get(java.lang.String)
. This method was added in vSphere API 7.0.0.0.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void connect(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback)
Installer
getVersionStatus()
and getRunState()
from Tools.get(java.lang.String)
. This method was added in vSphere API 7.0.0.0.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the virtual machine is not found.
NotAllowedInCurrentState
- if the virtual machine is not powered on.
AlreadyInDesiredState
- if the VMware Tools CD is already connected.
Error
- if the Tools installation fails in the guest operating system.
public void connect(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Installer
getVersionStatus()
and getRunState()
from Tools.get(java.lang.String)
. This method was added in vSphere API 7.0.0.0.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- if the virtual machine is not found.
NotAllowedInCurrentState
- if the virtual machine is not powered on.
AlreadyInDesiredState
- if the VMware Tools CD is already connected.
Error
- if the Tools installation fails in the guest operating system.
connect
in interface Installer
vm
- Virtual machine ID
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void disconnect(java.lang.String vm)
Installer
Synchronous method overload. Result of the invocation will be reported as a method return value.
disconnect
in interface Installer
vm
- Virtual machine ID
The parameter must be an identifier for the resource type: VirtualMachine
.public void disconnect(java.lang.String vm, InvocationConfig invocationConfig)
Installer
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
disconnect
in interface Installer
vm
- Virtual machine ID
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.public void disconnect(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback)
Installer
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
NotAllowedInCurrentState
- if the virtual machine is not powered on.
disconnect
in interface Installer
vm
- Virtual machine ID
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void disconnect(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Installer
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
NotAllowedInCurrentState
- if the virtual machine is not powered on.
disconnect
in interface Installer
vm
- Virtual machine ID
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.