public class OakRepositoryFixture extends java.lang.Object implements RepositoryFixture
Modifier | Constructor and Description |
---|---|
protected |
OakRepositoryFixture(OakFixture oakFixture) |
Modifier and Type | Method and Description |
---|---|
static RepositoryFixture |
getCompositeMemoryStore() |
static RepositoryFixture |
getCompositeMongoStore(java.lang.String uri,
long cacheSize,
boolean dropDBAfterTest) |
static RepositoryFixture |
getCompositeStore(java.io.File base,
int maxFileSizeMB,
int cacheSizeMB,
boolean memoryMapping) |
static RepositoryFixture |
getMemoryNS(long cacheSize) |
static RepositoryFixture |
getMongo(java.lang.String uri,
boolean dropDBAfterTest,
long cacheSize) |
static RepositoryFixture |
getMongo(java.lang.String host,
int port,
java.lang.String database,
boolean dropDBAfterTest,
long cacheSize) |
static RepositoryFixture |
getMongoNS(java.lang.String uri,
boolean dropDBAfterTest,
long cacheSize) |
static RepositoryFixture |
getMongoNS(java.lang.String host,
int port,
java.lang.String database,
boolean dropDBAfterTest,
long cacheSize) |
static RepositoryFixture |
getMongoWithDS(java.lang.String uri,
boolean dropDBAfterTest,
long cacheSize,
java.io.File base,
int fdsCacheInMB) |
static RepositoryFixture |
getMongoWithDS(java.lang.String host,
int port,
java.lang.String database,
boolean dropDBAfterTest,
long cacheSize,
java.io.File base,
int fdsCacheInMB) |
OakFixture |
getOakFixture() |
static RepositoryFixture |
getRDB(java.lang.String jdbcuri,
java.lang.String jdbcuser,
java.lang.String jdbcpasswd,
java.lang.String jdbctableprefix,
boolean dropDBAfterTest,
long cacheSize,
int vgcMaxAge) |
static RepositoryFixture |
getRDBWithDS(java.lang.String jdbcuri,
java.lang.String jdbcuser,
java.lang.String jdbcpasswd,
java.lang.String jdbctableprefix,
boolean dropDBAfterTest,
long cacheSize,
java.io.File base,
int fdsCacheInMB,
int vgcMaxAge) |
static RepositoryFixture |
getSegmentTar(java.io.File base,
int maxFileSizeMB,
int cacheSizeMB,
boolean memoryMapping) |
static RepositoryFixture |
getSegmentTarWithAwsSegmentStore(java.io.File base,
java.lang.String awsBucketName,
java.lang.String awsRootPath,
java.lang.String awsJournalTableName,
java.lang.String awsLockTableName,
int maxFileSizeMB,
int cacheSizeMB,
boolean useBlobStore,
int dsCacheInMB) |
static RepositoryFixture |
getSegmentTarWithAzureSegmentStore(java.io.File base,
java.lang.String azureConnectionString,
java.lang.String azureContainerName,
java.lang.String azureRootPath,
int maxFileSizeMB,
int cacheSizeMB,
boolean useBlobStore,
int dsCacheInMB) |
static RepositoryFixture |
getSegmentTarWithColdStandby(java.io.File base,
int maxFileSizeMB,
int cacheSizeMB,
boolean memoryMapping,
boolean useBlobStore,
int dsCacheInMB,
int syncInterval,
boolean shareBlobStore,
boolean secure,
boolean oneShotRun) |
static RepositoryFixture |
getSegmentTarWithDataStore(java.io.File base,
int maxFileSizeMB,
int cacheSizeMB,
boolean memoryMapping,
int dsCacheInMB) |
boolean |
isAvailable(int n)
Checks whether this fixture is currently available.
|
void |
setStatisticsProvider(StatisticsProvider statisticsProvider) |
Repository[] |
setUpCluster(int n)
Creates a new repository cluster with the given number of nodes.
|
Repository[] |
setUpCluster(int n,
JcrCreator customizer) |
void |
syncRepositoryCluster(Repository... nodes)
Ensures that all content changes seen by one of the given cluster
nodes are seen also by all the other given nodes.
|
void |
tearDownCluster()
Releases resources associated with the given repository cluster.
|
java.lang.String |
toString() |
protected OakRepositoryFixture(OakFixture oakFixture)
public static RepositoryFixture getMemoryNS(long cacheSize)
public static RepositoryFixture getMongo(java.lang.String host, int port, java.lang.String database, boolean dropDBAfterTest, long cacheSize)
public static RepositoryFixture getMongo(java.lang.String uri, boolean dropDBAfterTest, long cacheSize)
public static RepositoryFixture getMongoWithDS(java.lang.String host, int port, java.lang.String database, boolean dropDBAfterTest, long cacheSize, java.io.File base, int fdsCacheInMB)
public static RepositoryFixture getMongoWithDS(java.lang.String uri, boolean dropDBAfterTest, long cacheSize, java.io.File base, int fdsCacheInMB)
public static RepositoryFixture getMongoNS(java.lang.String host, int port, java.lang.String database, boolean dropDBAfterTest, long cacheSize)
public static RepositoryFixture getMongoNS(java.lang.String uri, boolean dropDBAfterTest, long cacheSize)
public static RepositoryFixture getRDB(java.lang.String jdbcuri, java.lang.String jdbcuser, java.lang.String jdbcpasswd, java.lang.String jdbctableprefix, boolean dropDBAfterTest, long cacheSize, int vgcMaxAge)
public static RepositoryFixture getRDBWithDS(java.lang.String jdbcuri, java.lang.String jdbcuser, java.lang.String jdbcpasswd, java.lang.String jdbctableprefix, boolean dropDBAfterTest, long cacheSize, java.io.File base, int fdsCacheInMB, int vgcMaxAge)
public static RepositoryFixture getSegmentTar(java.io.File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping)
public static RepositoryFixture getSegmentTarWithDataStore(java.io.File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int dsCacheInMB)
public static RepositoryFixture getSegmentTarWithColdStandby(java.io.File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, boolean useBlobStore, int dsCacheInMB, int syncInterval, boolean shareBlobStore, boolean secure, boolean oneShotRun)
public static RepositoryFixture getSegmentTarWithAwsSegmentStore(java.io.File base, java.lang.String awsBucketName, java.lang.String awsRootPath, java.lang.String awsJournalTableName, java.lang.String awsLockTableName, int maxFileSizeMB, int cacheSizeMB, boolean useBlobStore, int dsCacheInMB)
public static RepositoryFixture getSegmentTarWithAzureSegmentStore(java.io.File base, java.lang.String azureConnectionString, java.lang.String azureContainerName, java.lang.String azureRootPath, int maxFileSizeMB, int cacheSizeMB, boolean useBlobStore, int dsCacheInMB)
public static RepositoryFixture getCompositeStore(java.io.File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping)
public static RepositoryFixture getCompositeMemoryStore()
public static RepositoryFixture getCompositeMongoStore(java.lang.String uri, long cacheSize, boolean dropDBAfterTest)
public boolean isAvailable(int n)
RepositoryFixture
isAvailable
in interface RepositoryFixture
n
- size of the requested clustertrue
iff the fixture is availablepublic final Repository[] setUpCluster(int n) throws java.lang.Exception
RepositoryFixture
RepositoryFixture.tearDownCluster()
when the test cluster is no longer needed.setUpCluster
in interface RepositoryFixture
n
- size of the requested clusterjava.lang.Exception
- if the cluster could not be set uppublic Repository[] setUpCluster(int n, JcrCreator customizer) throws java.lang.Exception
java.lang.Exception
public void syncRepositoryCluster(Repository... nodes)
RepositoryFixture
syncRepositoryCluster
in interface RepositoryFixture
nodes
- cluster nodes to be synchronizedpublic void tearDownCluster()
RepositoryFixture
RepositoryFixture.setUpCluster(int)
shall call this
method once the cluster is no longer needed.tearDownCluster
in interface RepositoryFixture
public java.lang.String toString()
toString
in class java.lang.Object
public OakFixture getOakFixture()
public void setStatisticsProvider(StatisticsProvider statisticsProvider)
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.