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 voidclose()static @Nullable BlobStoreFixturecreate(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 BlobStoreFixturegetDataStore(File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)static BlobStoreFixturegetFileBlobStore(File basedir)static BlobStoreFixturegetFileDataStore(File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)static BlobStoreFixturegetMemoryBlobStore()static Map<String,Object>loadAndTransformProps(String cfgPath)abstract BlobStoresetUp()abstract longsize()abstract voidtearDown()
-
-
-
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:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-