public class PowerStub extends com.vmware.vapi.internal.bindings.Stub implements Power
Power
API service.
WARNING: Internal class, subject to change in future versions.
PowerTypes.Info, PowerTypes.State
Constructor and Description |
---|
PowerStub(ApiProvider apiProvider,
StubConfigurationBase config) |
PowerStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
PowerTypes.Info |
get(java.lang.String vm)
Returns information about the guest operating system power state.
|
void |
get(java.lang.String vm,
AsyncCallback<PowerTypes.Info> asyncCallback)
Returns information about the guest operating system power state.
|
void |
get(java.lang.String vm,
AsyncCallback<PowerTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about the guest operating system power state.
|
PowerTypes.Info |
get(java.lang.String vm,
InvocationConfig invocationConfig)
Returns information about the guest operating system power state.
|
void |
reboot(java.lang.String vm)
Issues a request to the guest operating system asking it to perform a reboot.
|
void |
reboot(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback)
Issues a request to the guest operating system asking it to perform a reboot.
|
void |
reboot(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Issues a request to the guest operating system asking it to perform a reboot.
|
void |
reboot(java.lang.String vm,
InvocationConfig invocationConfig)
Issues a request to the guest operating system asking it to perform a reboot.
|
void |
shutdown(java.lang.String vm)
Issues a request to the guest operating system asking it to perform a clean
shutdown of all services.
|
void |
shutdown(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback)
Issues a request to the guest operating system asking it to perform a clean
shutdown of all services.
|
void |
shutdown(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Issues a request to the guest operating system asking it to perform a clean
shutdown of all services.
|
void |
shutdown(java.lang.String vm,
InvocationConfig invocationConfig)
Issues a request to the guest operating system asking it to perform a clean
shutdown of all services.
|
void |
standby(java.lang.String vm)
Issues a request to the guest operating system asking it to perform a suspend
operation.
|
void |
standby(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback)
Issues a request to the guest operating system asking it to perform a suspend
operation.
|
void |
standby(java.lang.String vm,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Issues a request to the guest operating system asking it to perform a suspend
operation.
|
void |
standby(java.lang.String vm,
InvocationConfig invocationConfig)
Issues a request to the guest operating system asking it to perform a suspend
operation.
|
public PowerStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public PowerStub(ApiProvider apiProvider, StubConfigurationBase config)
public PowerTypes.Info get(java.lang.String vm)
Power
Synchronous method overload. Result of the invocation will be reported as a method return value.
public PowerTypes.Info get(java.lang.String vm, InvocationConfig invocationConfig)
Power
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<PowerTypes.Info> asyncCallback)
Power
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Guest OS powerstate information.
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<PowerTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Power
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Guest OS powerstate information.
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 Power
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 shutdown(java.lang.String vm)
Power
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void shutdown(java.lang.String vm, InvocationConfig invocationConfig)
Power
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 shutdown(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback)
Power
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.
AlreadyInDesiredState
- if the virtual machine is not powered on.
ServiceUnavailable
- if VMware Tools is not running.
NotAllowedInCurrentState
- if the virtual machine is suspended.
ResourceBusy
- if the virtual machine is performing another operation.
Unsupported
- if the virtual machine does not support being powered on (e.g. marked as a
template, serving as a fault-tolerance secondary virtual machine).
public void shutdown(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Power
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.
AlreadyInDesiredState
- if the virtual machine is not powered on.
ServiceUnavailable
- if VMware Tools is not running.
NotAllowedInCurrentState
- if the virtual machine is suspended.
ResourceBusy
- if the virtual machine is performing another operation.
Unsupported
- if the virtual machine does not support being powered on (e.g. marked as a
template, serving as a fault-tolerance secondary virtual machine).
shutdown
in interface Power
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 reboot(java.lang.String vm)
Power
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void reboot(java.lang.String vm, InvocationConfig invocationConfig)
Power
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 reboot(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback)
Power
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.
ServiceUnavailable
- if VMware Tools is not running.
ResourceBusy
- if the virtual machine is performing another operation.
Unsupported
- if the virtual machine does not support being powered on (e.g. marked as a
template, serving as a fault-tolerance secondary virtual machine).
public void reboot(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Power
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.
ServiceUnavailable
- if VMware Tools is not running.
ResourceBusy
- if the virtual machine is performing another operation.
Unsupported
- if the virtual machine does not support being powered on (e.g. marked as a
template, serving as a fault-tolerance secondary virtual machine).
reboot
in interface Power
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 standby(java.lang.String vm)
Power
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void standby(java.lang.String vm, InvocationConfig invocationConfig)
Power
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 standby(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback)
Power
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.
AlreadyInDesiredState
- if the virtual machine is suspended.
NotFound
- if the virtual machine is not found.
ServiceUnavailable
- if VMware Tools is not running.
NotAllowedInCurrentState
- if the virtual machine is not powered on.
ResourceBusy
- if the virtual machine is performing another operation.
Unsupported
- if the virtual machine does not support being powered on (e.g. marked as a
template, serving as a fault-tolerance secondary virtual machine).
public void standby(java.lang.String vm, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Power
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.
AlreadyInDesiredState
- if the virtual machine is suspended.
NotFound
- if the virtual machine is not found.
ServiceUnavailable
- if VMware Tools is not running.
NotAllowedInCurrentState
- if the virtual machine is not powered on.
ResourceBusy
- if the virtual machine is performing another operation.
Unsupported
- if the virtual machine does not support being powered on (e.g. marked as a
template, serving as a fault-tolerance secondary virtual machine).
standby
in interface Power
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.