Class OakFixture
- java.lang.Object
-
- org.apache.jackrabbit.oak.fixture.OakFixture
-
- Direct Known Subclasses:
OakFixture.MongoFixture
,SegmentTarFixture
public abstract class OakFixture extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OakFixture.MongoFixture
-
Field Summary
Fields Modifier and Type Field Description static String
OAK_COMPOSITE_MEMORY_STORE
static String
OAK_COMPOSITE_MONGO_STORE
static String
OAK_COMPOSITE_STORE
static String
OAK_MEMORY
static String
OAK_MEMORY_NS
static String
OAK_MONGO
static String
OAK_MONGO_DS
static String
OAK_MONGO_NS
static String
OAK_RDB
static String
OAK_RDB_DS
static String
OAK_SEGMENT_AWS
static String
OAK_SEGMENT_AZURE
static String
OAK_SEGMENT_TAR
static String
OAK_SEGMENT_TAR_COLD
static String
OAK_SEGMENT_TAR_DS
protected String
unique
-
Constructor Summary
Constructors Modifier Constructor Description protected
OakFixture(String name)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static OakFixture
getCompositeMemoryStore(String name)
static OakFixture
getCompositeMongoStore(String name, String uri, long cacheSize, boolean dropDBAfterTest, boolean throttlingEnabled)
static OakFixture
getCompositeStore(String name, File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold)
static OakFixture
getMemory(long cacheSize)
static OakFixture
getMemory(String name, long cacheSize)
static OakFixture
getMemoryNS(long cacheSize)
static OakFixture
getMongo(String uri, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)
static OakFixture
getMongo(String host, int port, String database, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)
static OakFixture
getMongo(String name, String uri, boolean dropDBAfterTest, long cacheSize, boolean useDataStore, File base, int dsCacheInMB, boolean throttlingEnabled)
static OakFixture
getMongo(String name, String host, int port, String database, boolean dropDBAfterTest, long cacheSize, boolean useFileDataStore, File base, int fdsCacheInMB, boolean throttlingEnabled)
static OakFixture
getMongoNS(String uri, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)
static OakFixture
getMongoNS(String host, int port, String database, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)
abstract Oak
getOak(int clusterId)
static OakFixture
getRDB(String name, String jdbcuri, String jdbcuser, String jdbcpasswd, String tablePrefix, boolean dropDBAfterTest, long cacheSize, boolean useDataStore, File base, int dsCacheInMB, int vgcMaxAge)
static OakFixture
getRDB(String name, String jdbcuri, String jdbcuser, String jdbcpasswd, String tablePrefix, boolean dropDBAfterTest, long cacheSize, int vgcMaxAge)
static OakFixture
getSegmentTar(String name, File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB, boolean withColdStandby, int syncInterval, boolean shareBlobStore, boolean secure, boolean oneShotRun)
static OakFixture
getSegmentTarWithAwsSegmentStore(File base, String awsBucketName, String awsRootPath, String awsJournalTableName, String awsLockTableName, int maxFileSizeMB, int cacheSizeMB, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB)
static OakFixture
getSegmentTarWithAzureSegmentStore(File base, String azureConnectionString, String azureContainerName, String azureRootPath, int maxFileSizeMB, int cacheSizeMB, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB)
static OakFixture
getSegmentTarWithColdStandby(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB, int syncInterval, boolean shareBlobStore, boolean secure, boolean oneShotRun)
static OakFixture
getSegmentTarWithDataStore(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold, int dsCacheInMB)
static String
getUniqueDatabaseName(String name)
static OakFixture
getVanillaSegmentTar(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping)
static OakFixture
getVanillaSegmentTar(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold)
abstract Oak[]
setUpCluster(int n, StatisticsProvider statsProvider)
abstract void
tearDownCluster()
String
toString()
-
-
-
Field Detail
-
OAK_MEMORY
public static final String OAK_MEMORY
- See Also:
- Constant Field Values
-
OAK_MEMORY_NS
public static final String OAK_MEMORY_NS
- See Also:
- Constant Field Values
-
OAK_MONGO
public static final String OAK_MONGO
- See Also:
- Constant Field Values
-
OAK_MONGO_DS
public static final String OAK_MONGO_DS
- See Also:
- Constant Field Values
-
OAK_MONGO_NS
public static final String OAK_MONGO_NS
- See Also:
- Constant Field Values
-
OAK_RDB
public static final String OAK_RDB
- See Also:
- Constant Field Values
-
OAK_RDB_DS
public static final String OAK_RDB_DS
- See Also:
- Constant Field Values
-
OAK_SEGMENT_TAR
public static final String OAK_SEGMENT_TAR
- See Also:
- Constant Field Values
-
OAK_SEGMENT_AWS
public static final String OAK_SEGMENT_AWS
- See Also:
- Constant Field Values
-
OAK_SEGMENT_AZURE
public static final String OAK_SEGMENT_AZURE
- See Also:
- Constant Field Values
-
OAK_SEGMENT_TAR_DS
public static final String OAK_SEGMENT_TAR_DS
- See Also:
- Constant Field Values
-
OAK_SEGMENT_TAR_COLD
public static final String OAK_SEGMENT_TAR_COLD
- See Also:
- Constant Field Values
-
OAK_COMPOSITE_STORE
public static final String OAK_COMPOSITE_STORE
- See Also:
- Constant Field Values
-
OAK_COMPOSITE_MEMORY_STORE
public static final String OAK_COMPOSITE_MEMORY_STORE
- See Also:
- Constant Field Values
-
OAK_COMPOSITE_MONGO_STORE
public static final String OAK_COMPOSITE_MONGO_STORE
- See Also:
- Constant Field Values
-
unique
protected final String unique
-
-
Constructor Detail
-
OakFixture
protected OakFixture(String name)
-
-
Method Detail
-
setUpCluster
public abstract Oak[] setUpCluster(int n, StatisticsProvider statsProvider) throws Exception
- Throws:
Exception
-
tearDownCluster
public abstract void tearDownCluster()
-
getMemory
public static OakFixture getMemory(long cacheSize)
-
getMemoryNS
public static OakFixture getMemoryNS(long cacheSize)
-
getMemory
public static OakFixture getMemory(String name, long cacheSize)
-
getMongo
public static OakFixture getMongo(String uri, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)
-
getMongo
public static OakFixture getMongo(String host, int port, String database, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)
-
getMongoNS
public static OakFixture getMongoNS(String uri, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)
-
getMongoNS
public static OakFixture getMongoNS(String host, int port, String database, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)
-
getMongo
public static OakFixture getMongo(String name, String host, int port, String database, boolean dropDBAfterTest, long cacheSize, boolean useFileDataStore, File base, int fdsCacheInMB, boolean throttlingEnabled)
-
getMongo
public static OakFixture getMongo(String name, String uri, boolean dropDBAfterTest, long cacheSize, boolean useDataStore, File base, int dsCacheInMB, boolean throttlingEnabled)
-
getRDB
public static OakFixture getRDB(String name, String jdbcuri, String jdbcuser, String jdbcpasswd, String tablePrefix, boolean dropDBAfterTest, long cacheSize, int vgcMaxAge)
-
getRDB
public static OakFixture getRDB(String name, String jdbcuri, String jdbcuser, String jdbcpasswd, String tablePrefix, boolean dropDBAfterTest, long cacheSize, boolean useDataStore, File base, int dsCacheInMB, int vgcMaxAge)
-
getSegmentTar
public static OakFixture getSegmentTar(String name, File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB, boolean withColdStandby, int syncInterval, boolean shareBlobStore, boolean secure, boolean oneShotRun)
-
getVanillaSegmentTar
public static OakFixture getVanillaSegmentTar(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold)
-
getVanillaSegmentTar
public static OakFixture getVanillaSegmentTar(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping)
-
getSegmentTarWithDataStore
public static OakFixture getSegmentTarWithDataStore(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold, int dsCacheInMB)
-
getSegmentTarWithColdStandby
public static OakFixture getSegmentTarWithColdStandby(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB, int syncInterval, boolean shareBlobStore, boolean secure, boolean oneShotRun)
-
getSegmentTarWithAwsSegmentStore
public static OakFixture getSegmentTarWithAwsSegmentStore(File base, String awsBucketName, String awsRootPath, String awsJournalTableName, String awsLockTableName, int maxFileSizeMB, int cacheSizeMB, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB)
-
getSegmentTarWithAzureSegmentStore
public static OakFixture getSegmentTarWithAzureSegmentStore(File base, String azureConnectionString, String azureContainerName, String azureRootPath, int maxFileSizeMB, int cacheSizeMB, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB)
-
getCompositeStore
public static OakFixture getCompositeStore(String name, File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold)
-
getCompositeMemoryStore
public static OakFixture getCompositeMemoryStore(String name)
-
getCompositeMongoStore
public static OakFixture getCompositeMongoStore(String name, String uri, long cacheSize, boolean dropDBAfterTest, boolean throttlingEnabled)
-
-