public class CloudFilesUtils extends Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<Throwable> |
CLOUDFILESRETRY |
Constructor and Description |
---|
CloudFilesUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
buildCloudFilesPath(String basePath,
DataSegment segment) |
static String |
buildCloudFilesPath(String basePath,
String fileName) |
static <T> T |
retryCloudFilesOperation(Callable<T> f,
int maxTries)
Retries CloudFiles operations that fail due to io-related exceptions.
|
public static final com.google.common.base.Predicate<Throwable> CLOUDFILESRETRY
public static <T> T retryCloudFilesOperation(Callable<T> f, int maxTries) throws Exception
Exception
public static String buildCloudFilesPath(String basePath, DataSegment segment)
Copyright © 2011–2017. All rights reserved.