Class BlobStoreFixture
java.lang.Object
org.apache.jackrabbit.oak.fixture.BlobStoreFixture
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 BlobStoreFixture
getDataStore
(File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider) static BlobStoreFixture
getFileBlobStore
(File basedir) static BlobStoreFixture
getFileDataStore
(File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider) static BlobStoreFixture
loadAndTransformProps
(String cfgPath) abstract BlobStore
setUp()
abstract long
size()
abstract void
tearDown()
-
Field Details
-
unique
-
-
Constructor Details
-
BlobStoreFixture
-
-
Method Details
-
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
-
getMemoryBlobStore
-
getDataStore
public static BlobStoreFixture getDataStore(File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider) -
loadAndTransformProps
- Throws:
IOException
-
getConfig
-