public static final class S3ObjectTask.CompleteMultipartUploadTask extends S3ObjectTask
S3ObjectTask.CompleteMultipartUploadTask, S3ObjectTask.Factory
S3BaseTask.OpTag, S3BaseTask.OpType
mHandler, mOPType
Constructor and Description |
---|
CompleteMultipartUploadTask(S3Handler handler,
S3BaseTask.OpType opType)
Create a CompleteMultipartUploadTask.
|
Modifier and Type | Method and Description |
---|---|
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.
|
javax.ws.rs.core.Response |
continueTask()
Run core S3 API logic from different S3 task.
|
void |
handleTaskAsync()
Run S3 API logic in a customized async way, e.g.
|
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.
|
getObjectTaskResource
getOPType
public CompleteMultipartUploadTask(S3Handler handler, S3BaseTask.OpType opType)
handler
- opType
- public void handleTaskAsync()
S3BaseTask
handleTaskAsync
in class S3BaseTask
public javax.ws.rs.core.Response continueTask()
S3BaseTask
continueTask
in class S3ObjectTask
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.