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 classOakFixture.MongoFixture
-
Field Summary
Fields Modifier and Type Field Description static StringOAK_COMPOSITE_MEMORY_STOREstatic StringOAK_COMPOSITE_MONGO_STOREstatic StringOAK_COMPOSITE_STOREstatic StringOAK_MEMORYstatic StringOAK_MEMORY_NSstatic StringOAK_MONGOstatic StringOAK_MONGO_DSstatic StringOAK_MONGO_NSstatic StringOAK_RDBstatic StringOAK_RDB_DSstatic StringOAK_SEGMENT_AWSstatic StringOAK_SEGMENT_AZUREstatic StringOAK_SEGMENT_TARstatic StringOAK_SEGMENT_TAR_COLDstatic StringOAK_SEGMENT_TAR_DSprotected Stringunique
-
Constructor Summary
Constructors Modifier Constructor Description protectedOakFixture(String name)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static OakFixturegetCompositeMemoryStore(String name)static OakFixturegetCompositeMongoStore(String name, String uri, long cacheSize, boolean dropDBAfterTest, boolean throttlingEnabled)static OakFixturegetCompositeStore(String name, File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold)static OakFixturegetMemory(long cacheSize)static OakFixturegetMemory(String name, long cacheSize)static OakFixturegetMemoryNS(long cacheSize)static OakFixturegetMongo(String uri, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)static OakFixturegetMongo(String host, int port, String database, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)static OakFixturegetMongo(String name, String uri, boolean dropDBAfterTest, long cacheSize, boolean useDataStore, File base, int dsCacheInMB, boolean throttlingEnabled)static OakFixturegetMongo(String name, String host, int port, String database, boolean dropDBAfterTest, long cacheSize, boolean useFileDataStore, File base, int fdsCacheInMB, boolean throttlingEnabled)static OakFixturegetMongoNS(String uri, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)static OakFixturegetMongoNS(String host, int port, String database, boolean dropDBAfterTest, long cacheSize, boolean throttlingEnabled)abstract OakgetOak(int clusterId)static OakFixturegetRDB(String name, String jdbcuri, String jdbcuser, String jdbcpasswd, String tablePrefix, boolean dropDBAfterTest, long cacheSize, boolean useDataStore, File base, int dsCacheInMB, int vgcMaxAge)static OakFixturegetRDB(String name, String jdbcuri, String jdbcuser, String jdbcpasswd, String tablePrefix, boolean dropDBAfterTest, long cacheSize, int vgcMaxAge)static OakFixturegetSegmentTar(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 OakFixturegetSegmentTarWithAwsSegmentStore(File base, String awsBucketName, String awsRootPath, String awsJournalTableName, String awsLockTableName, int maxFileSizeMB, int cacheSizeMB, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB)static OakFixturegetSegmentTarWithAzureSegmentStore(File base, String azureConnectionString, String azureContainerName, String azureRootPath, int maxFileSizeMB, int cacheSizeMB, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB)static OakFixturegetSegmentTarWithColdStandby(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold, boolean useBlobStore, int dsCacheInMB, int syncInterval, boolean shareBlobStore, boolean secure, boolean oneShotRun)static OakFixturegetSegmentTarWithDataStore(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold, int dsCacheInMB)static StringgetUniqueDatabaseName(String name)static OakFixturegetVanillaSegmentTar(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping)static OakFixturegetVanillaSegmentTar(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int binariesInlineThreshold)abstract Oak[]setUpCluster(int n, StatisticsProvider statsProvider)abstract voidtearDownCluster()StringtoString()
-
-
-
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)
-
-