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,
                    String storageDir)  | 
static String | 
descriptorPathForSegmentPath(String s3Path)  | 
static String | 
indexZipForSegmentPath(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. 
 | 
static Iterator<org.jets3t.service.model.StorageObject> | 
storageObjectsIterator(org.jets3t.service.impl.rest.httpclient.RestS3Service s3Client,
                      String bucket,
                      String prefix,
                      long maxListingLength)  | 
static String | 
toFilename(String key)  | 
static String | 
toFilename(String key,
          String suffix)  | 
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
Exceptionpublic static boolean isObjectInBucket(org.jets3t.service.impl.rest.httpclient.RestS3Service s3Client,
                                       String bucketName,
                                       String objectKey)
                                throws org.jets3t.service.ServiceException
org.jets3t.service.ServiceExceptionpublic static Iterator<org.jets3t.service.model.StorageObject> storageObjectsIterator(org.jets3t.service.impl.rest.httpclient.RestS3Service s3Client, String bucket, String prefix, long maxListingLength)
Copyright © 2011–2018. All rights reserved.