public interface Activation extends Service, ActivationTypes
Activation interface provides methods for tasks cancelation.| Modifier and Type | Method and Description |
|---|---|
void |
cancel(String activationId)
Sends a request to cancel the task associated with the provided
activationId. |
void |
cancel(String activationId,
AsyncCallback<Void> asyncCallback)
Sends a request to cancel the task associated with the provided
activationId. |
void |
cancel(String activationId,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Sends a request to cancel the task associated with the provided
activationId. |
void |
cancel(String activationId,
InvocationConfig invocationConfig)
Sends a request to cancel the task associated with the provided
activationId. |
void cancel(String activationId)
activationId.
Synchronous method overload. Result of the invocation will be reported as a method return value.
activationId - the activationId associated with a vCenter Server task to be canceled.
The parameter must be an identifier for the resource type: com.vmware.Activation.NotFound - if a vCenter Server task with the given activationId was not found.NotAllowedInCurrentState - if the vCenter Server task associated with the given activationId is not
cancelable.Unauthorized - if the user is not authorized to cancel the task.Unauthenticated - if the user is not authenticated.ServiceUnavailable - if the task cancelation cannot be performed due to vCenter server is unreachable
or it is not properly configured.void cancel(String activationId, InvocationConfig invocationConfig)
activationId.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
activationId - the activationId associated with a vCenter Server task to be canceled.
The parameter must be an identifier for the resource type: com.vmware.Activation.invocationConfig - Configuration for the method invocation.NotFound - if a vCenter Server task with the given activationId was not found.NotAllowedInCurrentState - if the vCenter Server task associated with the given activationId is not
cancelable.Unauthorized - if the user is not authorized to cancel the task.Unauthenticated - if the user is not authenticated.ServiceUnavailable - if the task cancelation cannot be performed due to vCenter server is unreachable
or it is not properly configured.void cancel(String activationId, AsyncCallback<Void> asyncCallback)
activationId.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
NotFound - if a vCenter Server task with the given activationId was not found.
NotAllowedInCurrentState - if the vCenter Server task associated with the given activationId is not
cancelable.
Unauthorized - if the user is not authorized to cancel the task.
Unauthenticated - if the user is not authenticated.
ServiceUnavailable - if the task cancelation cannot be performed due to vCenter server is unreachable
or it is not properly configured.
activationId - the activationId associated with a vCenter Server task to be canceled.
The parameter must be an identifier for the resource type: com.vmware.Activation.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void cancel(String activationId, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
activationId.
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 a vCenter Server task with the given activationId was not found.
NotAllowedInCurrentState - if the vCenter Server task associated with the given activationId is not
cancelable.
Unauthorized - if the user is not authorized to cancel the task.
Unauthenticated - if the user is not authenticated.
ServiceUnavailable - if the task cancelation cannot be performed due to vCenter server is unreachable
or it is not properly configured.
activationId - the activationId associated with a vCenter Server task to be canceled.
The parameter must be an identifier for the resource type: com.vmware.Activation.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.Copyright © 2016. All Rights Reserved.