public interface ImportHistory extends Service, ImportHistoryTypes
ImportHistory
interface provides methods for managing the import of
vCenter historical data, e.g. Tasks, Events and Statistics, when is is imported
separately from the upgrade or migration process. This interface was added in
vSphere API 6.7.ImportHistoryTypes.CreateSpec, ImportHistoryTypes.Info
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels the task for importing vCenter historical data.
|
void |
cancel(AsyncCallback<java.lang.Void> asyncCallback)
Cancels the task for importing vCenter historical data.
|
void |
cancel(AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Cancels the task for importing vCenter historical data.
|
void |
cancel(InvocationConfig invocationConfig)
Cancels the task for importing vCenter historical data.
|
ImportHistoryTypes.Info |
get()
Get the current status of the vCenter historical data import.
|
void |
get(AsyncCallback<ImportHistoryTypes.Info> asyncCallback)
Get the current status of the vCenter historical data import.
|
void |
get(AsyncCallback<ImportHistoryTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Get the current status of the vCenter historical data import.
|
ImportHistoryTypes.Info |
get(InvocationConfig invocationConfig)
Get the current status of the vCenter historical data import.
|
void |
pause()
Pauses the task for importing vCenter historical data.
|
void |
pause(AsyncCallback<java.lang.Void> asyncCallback)
Pauses the task for importing vCenter historical data.
|
void |
pause(AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Pauses the task for importing vCenter historical data.
|
void |
pause(InvocationConfig invocationConfig)
Pauses the task for importing vCenter historical data.
|
void |
resume()
Resumes the task for importing vCenter historical data.
|
void |
resume(AsyncCallback<java.lang.Void> asyncCallback)
Resumes the task for importing vCenter historical data.
|
void |
resume(AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Resumes the task for importing vCenter historical data.
|
void |
resume(InvocationConfig invocationConfig)
Resumes the task for importing vCenter historical data.
|
void |
start(ImportHistoryTypes.CreateSpec spec)
Creates and starts task for importing vCenter historical data.
|
void |
start(ImportHistoryTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Creates and starts task for importing vCenter historical data.
|
void |
start(ImportHistoryTypes.CreateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Creates and starts task for importing vCenter historical data.
|
void |
start(ImportHistoryTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates and starts task for importing vCenter historical data.
|
ImportHistoryTypes.Info get()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Unauthenticated
- if the caller is not authenticated.Unauthorized
- if the caller is not authorized to perform the method.Error
- Generic errorImportHistoryTypes.Info get(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.
invocationConfig
- Configuration for the method invocation.Unauthenticated
- if the caller is not authenticated.Unauthorized
- if the caller is not authorized to perform the method.Error
- Generic errorvoid get(AsyncCallback<ImportHistoryTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Info structure containing the status information about the historical data
import status.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized to perform the method.
Error
- Generic error
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(AsyncCallback<ImportHistoryTypes.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:
Info structure containing the status information about the historical data
import status.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized to perform the method.
Error
- Generic error
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void start(ImportHistoryTypes.CreateSpec spec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- An optional CreateSpec
info that can be passed for creating a new
historical data import task and starts it.
If null
, default value will be: Unauthenticated
- if the caller is not authenticated.Unauthorized
- if the caller is not authorized to perform the method.NotAllowedInCurrentState
- if vCenter historical data import task cannot be started at this time. This can
happen in the following cases: AlreadyInDesiredState
- if vCenter historical data import task has already being started.Error
- Generic errorvoid start(ImportHistoryTypes.CreateSpec spec, 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.
spec
- An optional CreateSpec
info that can be passed for creating a new
historical data import task and starts it.
If null
, default value will be: invocationConfig
- Configuration for the method invocation.Unauthenticated
- if the caller is not authenticated.Unauthorized
- if the caller is not authorized to perform the method.NotAllowedInCurrentState
- if vCenter historical data import task cannot be started at this time. This can
happen in the following cases: AlreadyInDesiredState
- if vCenter historical data import task has already being started.Error
- Generic errorvoid start(ImportHistoryTypes.CreateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized to perform the method.
NotAllowedInCurrentState
- if vCenter historical data import task cannot be started at this time. This can
happen in the following cases:
AlreadyInDesiredState
- if vCenter historical data import task has already being started.Error
- Generic errorspec
- An optional CreateSpec
info that can be passed for creating a new
historical data import task and starts it.
If null
, default value will be: asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void start(ImportHistoryTypes.CreateSpec spec, 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:
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized to perform the method.
NotAllowedInCurrentState
- if vCenter historical data import task cannot be started at this time. This can
happen in the following cases:
AlreadyInDesiredState
- if vCenter historical data import task has already being started.Error
- Generic errorspec
- An optional CreateSpec
info that can be passed for creating a new
historical data import task and starts it.
If null
, default value will be: asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void pause()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Unauthenticated
- if the caller is not authenticated.Unauthorized
- if the caller is not authorized to perform the method.NotAllowedInCurrentState
- if vCenter historical data import task cannot be paused at this time. Pause can
be accepted only in Status.RUNNING
state.AlreadyInDesiredState
- if vCenter historical data import task is already pausedError
- Generic errorvoid pause(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.
invocationConfig
- Configuration for the method invocation.Unauthenticated
- if the caller is not authenticated.Unauthorized
- if the caller is not authorized to perform the method.NotAllowedInCurrentState
- if vCenter historical data import task cannot be paused at this time. Pause can
be accepted only in Status.RUNNING
state.AlreadyInDesiredState
- if vCenter historical data import task is already pausedError
- Generic errorvoid pause(AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized to perform the method.
NotAllowedInCurrentState
- if vCenter historical data import task cannot be paused at this time. Pause can
be accepted only in Status.RUNNING
state.
AlreadyInDesiredState
- if vCenter historical data import task is already paused
Error
- Generic error
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void pause(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:
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized to perform the method.
NotAllowedInCurrentState
- if vCenter historical data import task cannot be paused at this time. Pause can
be accepted only in Status.RUNNING
state.
AlreadyInDesiredState
- if vCenter historical data import task is already paused
Error
- Generic error
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void resume()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Unauthenticated
- if the caller is not authenticated.Unauthorized
- if the caller is not authorized to perform the method.NotAllowedInCurrentState
- if vCenter historical data import task cannot be resumed at this state. Resume
can be accepted only in Status.BLOCKED
stateAlreadyInDesiredState
- if vCenter historical data import task is already resumed.Error
- Generic error.void resume(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.
invocationConfig
- Configuration for the method invocation.Unauthenticated
- if the caller is not authenticated.Unauthorized
- if the caller is not authorized to perform the method.NotAllowedInCurrentState
- if vCenter historical data import task cannot be resumed at this state. Resume
can be accepted only in Status.BLOCKED
stateAlreadyInDesiredState
- if vCenter historical data import task is already resumed.Error
- Generic error.void resume(AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized to perform the method.
NotAllowedInCurrentState
- if vCenter historical data import task cannot be resumed at this state. Resume
can be accepted only in Status.BLOCKED
state
AlreadyInDesiredState
- if vCenter historical data import task is already resumed.
Error
- Generic error.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void resume(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:
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized to perform the method.
NotAllowedInCurrentState
- if vCenter historical data import task cannot be resumed at this state. Resume
can be accepted only in Status.BLOCKED
state
AlreadyInDesiredState
- if vCenter historical data import task is already resumed.
Error
- Generic error.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void cancel()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Unauthenticated
- if the caller is not authenticated.Unauthorized
- if the caller is not authorized to perform the method.NotAllowedInCurrentState
- if vCenter historical data import task cannot be canceled at this state. This
can happen in the following cases: AlreadyInDesiredState
- if vCenter historical data import task is already canceled.Error
- Generic error.void cancel(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.
invocationConfig
- Configuration for the method invocation.Unauthenticated
- if the caller is not authenticated.Unauthorized
- if the caller is not authorized to perform the method.NotAllowedInCurrentState
- if vCenter historical data import task cannot be canceled at this state. This
can happen in the following cases: AlreadyInDesiredState
- if vCenter historical data import task is already canceled.Error
- Generic error.void cancel(AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized to perform the method.
NotAllowedInCurrentState
- if vCenter historical data import task cannot be canceled at this state. This
can happen in the following cases:
AlreadyInDesiredState
- if vCenter historical data import task is already canceled.Error
- Generic error.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void cancel(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:
Unauthenticated
- if the caller is not authenticated.
Unauthorized
- if the caller is not authorized to perform the method.
NotAllowedInCurrentState
- if vCenter historical data import task cannot be canceled at this state. This
can happen in the following cases:
AlreadyInDesiredState
- if vCenter historical data import task is already canceled.Error
- Generic error.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.