public class S3Utils extends Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<Throwable> |
S3RETRY |
Constructor and Description |
---|
S3Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
closeStreamsQuietly(org.jets3t.service.model.S3Object s3Obj) |
static String |
constructSegmentPath(String baseKey,
io.druid.timeline.DataSegment segment) |
static String |
descriptorPathForSegmentPath(String s3Path) |
static boolean |
isObjectInBucket(org.jets3t.service.impl.rest.httpclient.RestS3Service s3Client,
String bucketName,
String objectKey) |
static boolean |
isServiceExceptionRecoverable(org.jets3t.service.ServiceException ex) |
static <T> T |
retryS3Operation(Callable<T> f)
Retries S3 operations that fail due to io-related exceptions.
|
public static final com.google.common.base.Predicate<Throwable> S3RETRY
public static void closeStreamsQuietly(org.jets3t.service.model.S3Object s3Obj)
public static boolean isServiceExceptionRecoverable(org.jets3t.service.ServiceException ex)
public static <T> T retryS3Operation(Callable<T> f) throws Exception
Exception
public static boolean isObjectInBucket(org.jets3t.service.impl.rest.httpclient.RestS3Service s3Client, String bucketName, String objectKey) throws org.jets3t.service.ServiceException
org.jets3t.service.ServiceException
public static String constructSegmentPath(String baseKey, io.druid.timeline.DataSegment segment)
Copyright © 2011–2015. All rights reserved.