Class BlobStoreFixture
- java.lang.Object
-
- org.apache.jackrabbit.oak.fixture.BlobStoreFixture
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public abstract class BlobStoreFixture extends java.lang.Object implements java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
unique
-
Constructor Summary
Constructors Constructor Description BlobStoreFixture(java.lang.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(java.io.File basedir, boolean fallbackToFDS, int fdsCacheInMB, StatisticsProvider statisticsProvider)
Creates an instance of the BlobStoreFixture based on configuration determined from system propertiesstatic java.util.Map<java.lang.String,?>
getConfig()
static BlobStoreFixture
getDataStore(java.io.File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)
static BlobStoreFixture
getFileBlobStore(java.io.File basedir)
static BlobStoreFixture
getFileDataStore(java.io.File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)
static BlobStoreFixture
getMemoryBlobStore()
static java.util.Map<java.lang.String,java.lang.Object>
loadAndTransformProps(java.lang.String cfgPath)
abstract BlobStore
setUp()
abstract long
size()
abstract void
tearDown()
-
-
-
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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
create
@Nullable public static @Nullable BlobStoreFixture create(java.io.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(java.io.File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)
-
getFileBlobStore
public static BlobStoreFixture getFileBlobStore(java.io.File basedir)
-
getMemoryBlobStore
public static BlobStoreFixture getMemoryBlobStore()
-
getDataStore
public static BlobStoreFixture getDataStore(java.io.File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)
-
loadAndTransformProps
public static java.util.Map<java.lang.String,java.lang.Object> loadAndTransformProps(java.lang.String cfgPath) throws java.io.IOException
- Throws:
java.io.IOException
-
getConfig
public static java.util.Map<java.lang.String,?> getConfig()
-
-