public interface Installer extends Service, InstallerTypes
Installer
(@term service} provides methods to install VMware Tools
in the guest operating system. This interface was added in vSphere API 7.0.0.0.InstallerTypes.Info
_VAPI_SERVICE_ID
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.
|
InstallerTypes.Info get(java.lang.String vm)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.InstallerTypes.Info get(java.lang.String vm, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
vm
- Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.NotFound
- if the virtual machine is not found.void get(java.lang.String vm, AsyncCallback<InstallerTypes.Info> asyncCallback)
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.
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.void get(java.lang.String vm, AsyncCallback<InstallerTypes.Info> asyncCallback, InvocationConfig invocationConfig)
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.
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.void connect(java.lang.String vm)
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.
vm
- Virtual machine ID
The parameter must be an identifier for the resource type: VirtualMachine
.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.void connect(java.lang.String vm, InvocationConfig invocationConfig)
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.
vm
- Virtual machine ID
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.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.void connect(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback)
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.
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.void connect(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
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.
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.void disconnect(java.lang.String vm)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vm
- Virtual machine ID
The parameter must be an identifier for the resource type: VirtualMachine
.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.void disconnect(java.lang.String vm, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
vm
- Virtual machine ID
The parameter must be an identifier for the resource type: VirtualMachine
.invocationConfig
- Configuration for the method invocation.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.void disconnect(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback)
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.
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.void disconnect(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
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.
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.