Class DataStoreUtils
- java.lang.Object
-
- org.apache.jackrabbit.oak.fixture.DataStoreUtils
-
public class DataStoreUtils extends Object
Extension toDataStoreUtilsto enable S3 / AzureBlob extensions for cleaning and initialization.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcleanup(File storeDir, Map<String,?> config, String bucket)Clean directory and if S3 bucket/Azure container is configured delete that.static DataStoreconfigureIfCloudDataStore(String className, DataStore ds, Map<String,?> config, String bucket, StatisticsProvider statisticsProvider)static voiddeleteAzureContainer(Map<String,?> config, String containerName)static voiddeleteBucket(String bucket, Map<String,?> map, Date date)static booleanisAzureDataStore(String dsName)static booleanisS3DataStore(String dsName)
-
-
-
Method Detail
-
isS3DataStore
public static boolean isS3DataStore(String dsName)
-
isAzureDataStore
public static boolean isAzureDataStore(String dsName)
-
configureIfCloudDataStore
public static DataStore configureIfCloudDataStore(String className, DataStore ds, Map<String,?> config, String bucket, StatisticsProvider statisticsProvider)
-
cleanup
public static void cleanup(File storeDir, Map<String,?> config, String bucket) throws Exception
Clean directory and if S3 bucket/Azure container is configured delete that.- Parameters:
storeDir- the local directoryconfig- the datastore configbucket- the S3 bucket name / Azure container name- Throws:
Exception
-
-