public class S3Utils extends Object
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 <T> T |
retryS3Operation(Callable<T> f)
Retries S3 operations that fail due to io-related exceptions.
|
public static void closeStreamsQuietly(org.jets3t.service.model.S3Object s3Obj)
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 © 2015. All rights reserved.