public abstract class BlobStoreFixture extends Object implements Closeable
| Constructor and Description |
|---|
BlobStoreFixture(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static BlobStoreFixture |
create(File basedir,
boolean fallbackToFDS,
int fdsCacheInMB,
org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
Creates an instance of the BlobStoreFixture based on configuration
determined from system properties
|
static Map<String,?> |
getConfig() |
static BlobStoreFixture |
getDataStore(File basedir,
int fdsCacheInMB,
org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider) |
static BlobStoreFixture |
getFileBlobStore(File basedir) |
static BlobStoreFixture |
getFileDataStore(File basedir,
int fdsCacheInMB,
org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider) |
static BlobStoreFixture |
getMemoryBlobStore() |
static Map<String,Object> |
loadAndTransformProps(String cfgPath) |
abstract org.apache.jackrabbit.oak.spi.blob.BlobStore |
setUp() |
abstract long |
size() |
abstract void |
tearDown() |
protected final String unique
public BlobStoreFixture(String name)
public abstract org.apache.jackrabbit.oak.spi.blob.BlobStore setUp()
public abstract void tearDown()
public abstract long size()
public void close()
close in interface Closeableclose in interface AutoCloseable@CheckForNull public static BlobStoreFixture create(File basedir, boolean fallbackToFDS, int fdsCacheInMB, org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
basedir - directory to be used in case of file based BlobStorefallbackToFDS - if true then FileDataStore would be used in absence of
any explicitly defined BlobStorepublic static BlobStoreFixture getFileDataStore(File basedir, int fdsCacheInMB, org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
public static BlobStoreFixture getFileBlobStore(File basedir)
public static BlobStoreFixture getMemoryBlobStore()
public static BlobStoreFixture getDataStore(File basedir, int fdsCacheInMB, org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
public static Map<String,Object> loadAndTransformProps(String cfgPath) throws IOException
IOExceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.