public class BatchJobLogger extends Object
Modifier and Type | Method and Description |
---|---|
<O,E,R extends BatchJobMutateResultInterface<O,E>> |
logDownload(String downloadUrl,
BatchJobMutateResponseInterface<O,E,R> response,
Throwable throwable)
Logs a batch job results download.
|
void |
logUpload(String uploadContents,
Object uploadUri,
BatchJobUploadResponse batchJobUploadResponse,
Throwable throwable)
Logs a batch job operations upload.
|
public void logUpload(String uploadContents, Object uploadUri, @Nullable BatchJobUploadResponse batchJobUploadResponse, @Nullable Throwable throwable)
uploadContents
- the contents of the upload.uploadUri
- the URI for the upload. This is of type Object because this method will
simply use Object.toString()
when logging.batchJobUploadResponse
- the upload response.throwable
- the throwable that occurred during upload, or null
if the upload
succeeded.public <O,E,R extends BatchJobMutateResultInterface<O,E>> void logDownload(String downloadUrl, BatchJobMutateResponseInterface<O,E,R> response, Throwable throwable)
downloadUrl
- the download URL for the batch job.response
- the response - only not null if the download succeeded.throwable
- the throwable that occurred during download, or null
if the download
succeeded.Copyright © 2017. All Rights Reserved.