OperationT
- the operation type for the API version and SOAP toolkit.OperandT
- the operand type for the API version and SOAP toolkit.ErrorT
- the ApiError
type for the API version and SOAP toolkit.ResultT
- the mutate result type for the API version and SOAP toolkit.ResponseT
- the mutate response type for the API version and SOAP toolkit.public interface BatchJobHelperInterface<OperationT,OperandT,ErrorT,ResultT extends BatchJobMutateResultInterface<OperandT,ErrorT>,ResponseT extends BatchJobMutateResponseInterface<OperandT,ErrorT,ResultT>>
BatchJob
.Modifier and Type | Method and Description |
---|---|
ResponseT |
downloadBatchJobMutateResponse(String downloadUrl)
Downloads and returns the results from the attempted operations for a completed batch job.
|
BatchJobUploadResponse |
uploadBatchJobOperations(Iterable<OperationT> operations,
String uploadUrl)
Uploads the specified operations to the batch job.
|
BatchJobUploadResponse |
uploadIncrementalBatchJobOperations(Iterable<? extends OperationT> operations,
boolean isLastRequest,
BatchJobUploadStatus batchJobUploadStatus)
Uploads the specified operations to the batch job.
|
BatchJobUploadResponse uploadBatchJobOperations(Iterable<OperationT> operations, String uploadUrl) throws BatchJobException
ACTIVE
state.
Use this method if you want to upload all operations in a single request. To upload operations
across multiple requests, use
uploadIncrementalBatchJobOperations(Iterable, boolean, BatchJobUploadStatus)
instead.
operations
- the operations to upload to the batch jobuploadUrl
- the BatchJob#getUploadUrl()
BatchJobException
- if the request failedBatchJobUploadResponse uploadIncrementalBatchJobOperations(Iterable<? extends OperationT> operations, boolean isLastRequest, BatchJobUploadStatus batchJobUploadStatus) throws BatchJobException
uploadBatchJobOperations(Iterable, String)
instead.
If isLastRequest
, then after this method returns successfully, the job will
transition to the ACTIVE
state.
operations
- the operations to upload to the batch jobisLastRequest
- if this is the last set of operations to upload for the jobbatchJobUploadStatus
- the current upload status. If this is the first upload,
set the BatchJobUploadStatus.getResumableUploadUri()
to the BatchJob#getUploadUrl()
.BatchJobException
- if the request failedResponseT downloadBatchJobMutateResponse(String downloadUrl) throws BatchJobException
downloadUrl
- the BatchJob.getDownloadUrl()
BatchJobException
Copyright © 2018. All Rights Reserved.