JobTypes.BackupJobStatus, JobTypes.BackupRequest, JobTypes.BackupRestoreProcessState, JobTypes.LocalizableMessage, JobTypes.LocationType, JobTypes.ReturnResult, JobTypes.ReturnStatus
Constructor and Description |
---|
JobStub(ApiProvider apiProvider,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
JobTypes.ReturnResult |
cancel(String id)
Cancel the backup job
|
void |
cancel(String id,
AsyncCallback<JobTypes.ReturnResult> asyncCallback)
Cancel the backup job
|
void |
cancel(String id,
AsyncCallback<JobTypes.ReturnResult> asyncCallback,
InvocationConfig invocationConfig)
Cancel the backup job
|
JobTypes.ReturnResult |
cancel(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(String id)
See backup job progress/result.
|
void |
get(String id,
AsyncCallback<JobTypes.BackupJobStatus> asyncCallback)
See backup job progress/result.
|
void |
get(String id,
AsyncCallback<JobTypes.BackupJobStatus> asyncCallback,
InvocationConfig invocationConfig)
See backup job progress/result.
|
JobTypes.BackupJobStatus |
get(String id,
InvocationConfig invocationConfig)
See backup job progress/result.
|
List<String> |
list()
Get list of backup jobs
|
void |
list(AsyncCallback<List<String>> asyncCallback)
Get list of backup jobs
|
void |
list(AsyncCallback<List<String>> asyncCallback,
InvocationConfig invocationConfig)
Get list of backup jobs
|
List<String> |
list(InvocationConfig invocationConfig)
Get list of backup jobs
|
public JobStub(ApiProvider apiProvider, StubConfigurationBase config)
public JobTypes.ReturnResult cancel(String id)
Job
Synchronous method overload. Result of the invocation will be reported as a method return value.
public JobTypes.ReturnResult cancel(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(String id, AsyncCallback<JobTypes.ReturnResult> asyncCallback)
Job
public void cancel(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.
Operation Result:
BackupJobStatus Structure
Operation Errors:
NotFound
- ID is not found
Error
- Generic error
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
.
Operation Result:
BackupJobStatus Structure
Operation Errors:
FeatureInUse
- A backup or restore is already in progress
Error
- Generic error
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.
Operation Result:
BackupJobStatus Structure
Operation Errors:
FeatureInUse
- A backup or restore is already in progress
Error
- Generic error
public List<String> list()
Job
Synchronous method overload. Result of the invocation will be reported as a method return value.
public List<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<List<String>> asyncCallback)
Job
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
list of BackupJob IDs
The return value will contain identifiers for the resource type: com.vmware.appliance.recovery.backup.job
.
Operation Errors:
Error
- Generic error
public void list(AsyncCallback<List<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.
Operation Result:
list of BackupJob IDs
The return value will contain identifiers for the resource type: com.vmware.appliance.recovery.backup.job
.
Operation Errors:
Error
- Generic error
public JobTypes.BackupJobStatus get(String id)
Job
Synchronous method overload. Result of the invocation will be reported as a method return value.
public JobTypes.BackupJobStatus get(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(String id, AsyncCallback<JobTypes.BackupJobStatus> asyncCallback)
Job
public void get(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.
Operation Result:
BackupJobStatus Structure
Operation Errors:
NotFound
- ID is not found
Error
- Generic error
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.Copyright © 2016. All Rights Reserved.