public class CompleteMultipartUploadHandler.CompleteMultipartUploadTask extends Object implements Callable<CompleteMultipartUploadResult>
Constructor and Description |
---|
CompleteMultipartUploadTask(FileSystem metaFs,
FileSystem userFs,
String bucket,
String object,
String uploadId,
String body)
Creates a new instance of
CompleteMultipartUploadHandler.CompleteMultipartUploadTask . |
Modifier and Type | Method and Description |
---|---|
CompleteMultipartUploadResult |
call() |
URIStatus |
checkIfComplete(String objectPath)
On any exception, check with Master on if the there's an object file.
|
void |
cleanupTempPath(String objTempPath)
Cleanup the temp object file for complete multipart upload.
|
CompleteMultipartUploadRequest |
parseCompleteMultipartUploadRequest(String objectPath)
Parse xml http body for CompleteMultipartUploadRequest.
|
CreateFilePOptions |
prepareForCreateTempFile(URIStatus metaStatus)
Prepare CreateFilePOptions for create temp multipart upload file.
|
void |
removePartsDirAndMPMetaFile(AlluxioURI multipartTemporaryDir)
Cleanup the multipart upload temporary folder holding the parts files.
|
List<URIStatus> |
validateParts(CompleteMultipartUploadRequest request,
String objectPath,
AlluxioURI multipartTemporaryDir)
Validate the parts as part of this multipart uplaod request.
|
public CompleteMultipartUploadTask(FileSystem metaFs, FileSystem userFs, String bucket, String object, String uploadId, String body)
CompleteMultipartUploadHandler.CompleteMultipartUploadTask
.metaFs
- instance of FileSystem
- used for metadata operationsuserFs
- instance of FileSystem
- under the scope of a user agentbucket
- bucket nameobject
- object nameuploadId
- multipart upload Idbody
- the HTTP request bodypublic CompleteMultipartUploadResult call() throws S3Exception
call
in interface Callable<CompleteMultipartUploadResult>
S3Exception
public CreateFilePOptions prepareForCreateTempFile(URIStatus metaStatus)
metaStatus
- multi part upload meta file statuspublic CompleteMultipartUploadRequest parseCompleteMultipartUploadRequest(String objectPath) throws S3Exception
objectPath
- S3Exception
public List<URIStatus> validateParts(CompleteMultipartUploadRequest request, String objectPath, AlluxioURI multipartTemporaryDir) throws S3Exception, IOException, AlluxioException
request
- objectPath
- multipartTemporaryDir
- S3Exception
IOException
AlluxioException
public void removePartsDirAndMPMetaFile(AlluxioURI multipartTemporaryDir) throws IOException, AlluxioException
multipartTemporaryDir
- IOException
AlluxioException
public void cleanupTempPath(String objTempPath)
objTempPath
- Copyright © 2023. All Rights Reserved.