public abstract class BlobStoreFixture
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
unique |
Constructor and Description |
---|
BlobStoreFixture(java.lang.String name) |
Modifier and Type | Method and 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 properties
|
static 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() |
public abstract BlobStore setUp()
public abstract void tearDown()
public abstract long size()
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
@Nullable public static @Nullable BlobStoreFixture create(java.io.File basedir, boolean fallbackToFDS, int fdsCacheInMB, 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(java.io.File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)
public static BlobStoreFixture getFileBlobStore(java.io.File basedir)
public static BlobStoreFixture getMemoryBlobStore()
public static BlobStoreFixture getDataStore(java.io.File basedir, int fdsCacheInMB, StatisticsProvider statisticsProvider)
public static java.util.Map<java.lang.String,java.lang.Object> loadAndTransformProps(java.lang.String cfgPath) throws java.io.IOException
java.io.IOException
public static java.util.Map<java.lang.String,?> getConfig()
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.