Interface FileUploadListener
Method Summary
Modifier and TypeMethodDescriptionvoidonFullFileUpload(Result result) This method is called when a single shot complete upload has been completed.default voidonMultiPartUploadCancel(List<Result> uploadResults) This method is called when a multi-part upload was aborted because an earlier stage of the job failed.voidonMultiPartUploadComplete(List<Result> uploadResults) This method is called when all the parts of a multi-part upload have been completed successfully.voidonPartUpload(Result result) This method is called whenever any part of a multi-part upload has been completed.
Method Details
onMultiPartUploadComplete
This method is called when all the parts of a multi-part upload have been completed successfully.The list contains a
Resultfor every stage of the job, in the order they were executed: the initiating stage, one entry per uploaded part, and finally the completing stage. Only the completing stage reports the uploaded file throughResult.getFullFileNames(); for the other stages that list is empty. UseResult.getUploadInfo()to tell the stages apart.Parameters:uploadResults- - List ofResultobjects, one per stage.onMultiPartUploadCancel
This method is called when a multi-part upload was aborted because an earlier stage of the job failed. It is never the result of an explicit request to cancel, as no such operation is exposed.The list contains a
Resultfor every stage that completed before the failure, followed by the cancelling stage; none of them report an uploaded file, since nothing was committed. This callback is purely informational — the failure is also reported to the caller of the upload method as a thrownGPUdbException, which remains the authoritative error channel.Parameters:uploadResults- - List ofResultobjects, one per stage.