Class BlobStoreFixture
- java.lang.Object
-
- org.apache.jackrabbit.oak.fixture.BlobStoreFixture
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public abstract class BlobStoreFixture extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description BlobStoreFixture(String name)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
static @Nullable BlobStoreFixture
create(File basedir, boolean fallbackToFDS, int fdsCacheInMB, StatisticsProvider statisticsProvider)
Creates an instance of the BlobStoreFixture based on configuration determined from system propertiesstatic Map<String,?>
getConfig()
static BlobStoreFixture
getDataStore(File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)
static BlobStoreFixture
getFileBlobStore(File basedir)
static BlobStoreFixture
getFileDataStore(File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)
static BlobStoreFixture
getMemoryBlobStore()
static Map<String,Object>
loadAndTransformProps(String cfgPath)
abstract BlobStore
setUp()
abstract long
size()
abstract void
tearDown()
-
-
-
Field Detail
-
unique
protected final String unique
-
-
Constructor Detail
-
BlobStoreFixture
public BlobStoreFixture(String name)
-
-
Method Detail
-
setUp
public abstract BlobStore setUp()
-
tearDown
public abstract void tearDown()
-
size
public abstract long size()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
create
@Nullable public static @Nullable BlobStoreFixture create(File basedir, boolean fallbackToFDS, int fdsCacheInMB, StatisticsProvider statisticsProvider)
Creates an instance of the BlobStoreFixture based on configuration determined from system properties- Parameters:
basedir
- directory to be used in case of file based BlobStorefallbackToFDS
- if true then FileDataStore would be used in absence of any explicitly defined BlobStore
-
getFileDataStore
public static BlobStoreFixture getFileDataStore(File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)
-
getFileBlobStore
public static BlobStoreFixture getFileBlobStore(File basedir)
-
getMemoryBlobStore
public static BlobStoreFixture getMemoryBlobStore()
-
getDataStore
public static BlobStoreFixture getDataStore(File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)
-
loadAndTransformProps
public static Map<String,Object> loadAndTransformProps(String cfgPath) throws IOException
- Throws:
IOException
-
-