JobTypes.BackupJobStatus, JobTypes.BackupRequest, JobTypes.BackupRestoreProcessState, JobTypes.LocalizableMessage, JobTypes.LocationType, JobTypes.ReturnResult, JobTypes.ReturnStatus
apiProvider, converter, ifaceId, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
JobStub(ApiProvider apiProvider,
StubConfigurationBase config) |
JobStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
JobTypes.ReturnResult |
cancel(java.lang.String id)
Cancel the backup job.
|
void |
cancel(java.lang.String id,
AsyncCallback<JobTypes.ReturnResult> asyncCallback)
Cancel the backup job.
|
void |
cancel(java.lang.String id,
AsyncCallback<JobTypes.ReturnResult> asyncCallback,
InvocationConfig invocationConfig)
Cancel the backup job.
|
JobTypes.ReturnResult |
cancel(java.lang.String id,
InvocationConfig invocationConfig)
Cancel the backup job.
|
JobTypes.BackupJobStatus |
create(JobTypes.BackupRequest piece)
Initiate backup.
|
void |
create(JobTypes.BackupRequest piece,
AsyncCallback<JobTypes.BackupJobStatus> asyncCallback)
Initiate backup.
|
void |
create(JobTypes.BackupRequest piece,
AsyncCallback<JobTypes.BackupJobStatus> asyncCallback,
InvocationConfig invocationConfig)
Initiate backup.
|
JobTypes.BackupJobStatus |
create(JobTypes.BackupRequest piece,
InvocationConfig invocationConfig)
Initiate backup.
|
JobTypes.BackupJobStatus |
get(java.lang.String id)
See backup job progress/result.
|
void |
get(java.lang.String id,
AsyncCallback<JobTypes.BackupJobStatus> asyncCallback)
See backup job progress/result.
|
void |
get(java.lang.String id,
AsyncCallback<JobTypes.BackupJobStatus> asyncCallback,
InvocationConfig invocationConfig)
See backup job progress/result.
|
JobTypes.BackupJobStatus |
get(java.lang.String id,
InvocationConfig invocationConfig)
See backup job progress/result.
|
java.util.List<java.lang.String> |
list()
Get list of backup jobs
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Get list of backup jobs
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Get list of backup jobs
|
java.util.List<java.lang.String> |
list(InvocationConfig invocationConfig)
Get list of backup jobs
|
public JobStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public JobStub(ApiProvider apiProvider, StubConfigurationBase config)
public JobTypes.ReturnResult cancel(java.lang.String id)
Job
Synchronous method overload. Result of the invocation will be reported as a method return value.
public JobTypes.ReturnResult cancel(java.lang.String id, InvocationConfig invocationConfig)
Job
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 cancel(java.lang.String id, AsyncCallback<JobTypes.ReturnResult> asyncCallback)
Job
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
BackupJobStatus Structure
Operation Errors:
NotFound
- if backup associated with id does not exist.
Error
- if any error occurs during the execution of the operation.
public void cancel(java.lang.String id, AsyncCallback<JobTypes.ReturnResult> asyncCallback, InvocationConfig invocationConfig)
Job
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:
BackupJobStatus Structure
Operation Errors:
NotFound
- if backup associated with id does not exist.
Error
- if any error occurs during the execution of the operation.
cancel
in interface Job
id
- ID (ID of job)
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.job
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public JobTypes.BackupJobStatus create(JobTypes.BackupRequest piece)
Job
Synchronous method overload. Result of the invocation will be reported as a method return value.
public JobTypes.BackupJobStatus create(JobTypes.BackupRequest piece, InvocationConfig invocationConfig)
Job
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 create(JobTypes.BackupRequest piece, AsyncCallback<JobTypes.BackupJobStatus> asyncCallback)
Job
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
BackupJobStatus Structure
Operation Errors:
FeatureInUse
- A backup or restore is already in progress.
Error
- if any error occurs during the execution of the operation.
public void create(JobTypes.BackupRequest piece, AsyncCallback<JobTypes.BackupJobStatus> asyncCallback, InvocationConfig invocationConfig)
Job
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:
BackupJobStatus Structure
Operation Errors:
FeatureInUse
- A backup or restore is already in progress.
Error
- if any error occurs during the execution of the operation.
public java.util.List<java.lang.String> list()
Job
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<java.lang.String> list(InvocationConfig invocationConfig)
Job
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 list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Job
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
list of BackupJob IDs
The return value will contain identifiers for the resource type: com.vmware.appliance.recovery.backup.job
.
Operation Errors:
Error
- if any error occurs during the execution of the operation.
public void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
Job
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:
list of BackupJob IDs
The return value will contain identifiers for the resource type: com.vmware.appliance.recovery.backup.job
.
Operation Errors:
Error
- if any error occurs during the execution of the operation.
public JobTypes.BackupJobStatus get(java.lang.String id)
Job
Synchronous method overload. Result of the invocation will be reported as a method return value.
public JobTypes.BackupJobStatus get(java.lang.String id, InvocationConfig invocationConfig)
Job
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 id, AsyncCallback<JobTypes.BackupJobStatus> asyncCallback)
Job
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
BackupJobStatus Structure
Operation Errors:
NotFound
- if backup associated with id does not exist.
Error
- if any error occurs during the execution of the operation.
public void get(java.lang.String id, AsyncCallback<JobTypes.BackupJobStatus> asyncCallback, InvocationConfig invocationConfig)
Job
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:
BackupJobStatus Structure
Operation Errors:
NotFound
- if backup associated with id does not exist.
Error
- if any error occurs during the execution of the operation.
get
in interface Job
id
- ID (ID of job)
The parameter must be an identifier for the resource type: com.vmware.appliance.recovery.backup.job
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.