public class DataStoreUtils extends Object
DataStoreUtils to enable S3 / AzureBlob extensions for cleaning and initialization.| Constructor and Description |
|---|
DataStoreUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanup(File storeDir,
Map<String,?> config,
String bucket)
Clean directory and if S3 bucket/Azure container is configured delete that.
|
static DataStore |
configureIfCloudDataStore(String className,
DataStore ds,
Map<String,?> config,
String bucket,
org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider) |
static void |
deleteAzureContainer(Map<String,?> config,
String containerName) |
static void |
deleteBucket(String bucket,
Map<String,?> map,
Date date) |
static boolean |
isAzureDataStore(String dsName) |
static boolean |
isS3DataStore(String dsName) |
public static boolean isS3DataStore(String dsName)
public static boolean isAzureDataStore(String dsName)
public static DataStore configureIfCloudDataStore(String className, DataStore ds, Map<String,?> config, String bucket, org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider) throws Exception
Exceptionpublic static void cleanup(File storeDir, Map<String,?> config, String bucket) throws Exception
storeDir - the local directoryconfig - the datastore configbucket - the S3 bucket name / Azure container nameExceptionpublic static void deleteBucket(String bucket, Map<String,?> map, Date date) throws Exception
ExceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.