public class MultipartUploadCleaner extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MultipartUploadCleaner.AbortTask
Abort Multipart upload task.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
apply(FileSystem metaFs,
FileSystem userFs,
String bucket,
String object,
String uploadId)
Schedule a task to clean multipart upload.
|
static void |
cancelAbort(FileSystem metaFs,
FileSystem userFs,
String bucket,
String object,
String uploadId)
Cancel schedule task.
|
static MultipartUploadCleaner |
getInstance() |
long |
getRetryDelay()
Get retry delay.
|
static void |
shutdown()
Shutdown cleaner.
|
long |
tryAbortMultipartUpload(FileSystem metaFs,
FileSystem userFs,
String bucket,
String object,
String uploadId)
Try to abort a multipart upload if it was timeout.
|
public static MultipartUploadCleaner getInstance()
MultipartUploadCleaner
public static void shutdown()
public static boolean apply(FileSystem metaFs, FileSystem userFs, String bucket, String object, String uploadId) throws IOException, AlluxioException
metaFs
- instance of FileSystem
- used for metadata operationsuserFs
- instance of FileSystem
- under the scope of a user agentbucket
- bucket nameobject
- object nameuploadId
- multipart upload tmp directory fileIdIOException
AlluxioException
public static void cancelAbort(FileSystem metaFs, FileSystem userFs, String bucket, String object, String uploadId)
metaFs
- instance of FileSystem
- used for metadata operationsuserFs
- instance of FileSystem
- under the scope of a user agentbucket
- bucket nameobject
- object nameuploadId
- multipart upload tmp directory fileIdpublic long getRetryDelay()
public long tryAbortMultipartUpload(FileSystem metaFs, FileSystem userFs, String bucket, String object, String uploadId) throws IOException, AlluxioException
metaFs
- instance of FileSystem
- used for metadata operationsuserFs
- instance of FileSystem
- under the scope of a user agentbucket
- the bucket nameobject
- the object nameuploadId
- multipart upload tmp directory fileIdIOException
AlluxioException
Copyright © 2023. All Rights Reserved.