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 fs,
String bucket,
String object)
Schedule a task to clean multipart upload.
|
static boolean |
apply(FileSystem fs,
String bucket,
String object,
Long uploadId)
Schedule a task to clean multipart upload.
|
static void |
cancelAbort(FileSystem fs,
String bucket,
String object,
Long uploadId)
Cancel schedule task.
|
static MultipartUploadCleaner |
getInstance() |
long |
getRetryDelay()
Get retry delay.
|
static void |
shutdown()
Shutdown cleaner.
|
long |
tryAbortMultipartUpload(FileSystem fs,
String bucket,
String object,
Long 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 fs, String bucket, String object) throws IOException, AlluxioException
fs
- instance of FileSystem
bucket
- bucket nameobject
- object nameIOException
AlluxioException
public static boolean apply(FileSystem fs, String bucket, String object, Long uploadId) throws IOException, AlluxioException
fs
- instance of FileSystem
bucket
- bucket nameobject
- object nameuploadId
- multipart upload tmp directory fileIdIOException
AlluxioException
public static void cancelAbort(FileSystem fs, String bucket, String object, Long uploadId)
fs
- instance of FileSystem
bucket
- bucket nameobject
- object nameuploadId
- multipart upload tmp directory fileIdpublic long getRetryDelay()
public long tryAbortMultipartUpload(FileSystem fs, String bucket, String object, Long uploadId) throws IOException, AlluxioException
fs
- instance of FileSystem
bucket
- the bucket nameobject
- the object nameuploadId
- multipart upload tmp directory fileIdIOException
AlluxioException
Copyright © 2023. All Rights Reserved.