public class OakRepositoryFixture extends Object implements RepositoryFixture
| Modifier | Constructor and Description |
|---|---|
protected |
OakRepositoryFixture(OakFixture oakFixture) |
| Modifier and Type | Method and Description |
|---|---|
static RepositoryFixture |
getMemoryNS(long cacheSize) |
static RepositoryFixture |
getMongo(String uri,
boolean dropDBAfterTest,
long cacheSize) |
static RepositoryFixture |
getMongo(String host,
int port,
String database,
boolean dropDBAfterTest,
long cacheSize) |
static RepositoryFixture |
getMongoNS(String uri,
boolean dropDBAfterTest,
long cacheSize) |
static RepositoryFixture |
getMongoNS(String host,
int port,
String database,
boolean dropDBAfterTest,
long cacheSize) |
static RepositoryFixture |
getMongoWithDS(String uri,
boolean dropDBAfterTest,
long cacheSize,
File base,
int fdsCacheInMB) |
static RepositoryFixture |
getMongoWithDS(String host,
int port,
String database,
boolean dropDBAfterTest,
long cacheSize,
File base,
int fdsCacheInMB) |
static RepositoryFixture |
getMultiplexing(File base,
int maxFileSizeMB,
int cacheSizeMB,
boolean memoryMapping,
int mounts,
int pathsPerMount) |
static RepositoryFixture |
getMultiplexingInMemory(int mounts,
int pathsPerMount) |
OakFixture |
getOakFixture() |
static RepositoryFixture |
getRDB(String jdbcuri,
String jdbcuser,
String jdbcpasswd,
String jdbctableprefix,
boolean dropDBAfterTest,
long cacheSize) |
static RepositoryFixture |
getRDBWithDS(String jdbcuri,
String jdbcuser,
String jdbcpasswd,
String jdbctableprefix,
boolean dropDBAfterTest,
long cacheSize,
File base,
int fdsCacheInMB) |
static RepositoryFixture |
getSegmentTar(File base,
int maxFileSizeMB,
int cacheSizeMB,
boolean memoryMapping) |
static RepositoryFixture |
getSegmentTarWithBlobStore(File base,
int maxFileSizeMB,
int cacheSizeMB,
boolean memoryMapping,
int dsCacheInMB) |
static RepositoryFixture |
getTar(File base,
int maxFileSizeMB,
int cacheSizeMB,
boolean memoryMapping)
Deprecated.
|
static RepositoryFixture |
getTarWithBlobStore(File base,
int maxFileSizeMB,
int cacheSizeMB,
boolean memoryMapping,
int dsCacheInMB)
Deprecated.
|
boolean |
isAvailable(int n)
Checks whether this fixture is currently available.
|
void |
setStatisticsProvider(org.apache.jackrabbit.oak.stats.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.
|
String |
toString() |
protected OakRepositoryFixture(OakFixture oakFixture)
public static RepositoryFixture getMemoryNS(long cacheSize)
public static RepositoryFixture getMongo(String host, int port, String database, boolean dropDBAfterTest, long cacheSize)
public static RepositoryFixture getMongo(String uri, boolean dropDBAfterTest, long cacheSize)
public static RepositoryFixture getMongoWithDS(String host, int port, String database, boolean dropDBAfterTest, long cacheSize, File base, int fdsCacheInMB)
public static RepositoryFixture getMongoWithDS(String uri, boolean dropDBAfterTest, long cacheSize, File base, int fdsCacheInMB)
public static RepositoryFixture getMongoNS(String host, int port, String database, boolean dropDBAfterTest, long cacheSize)
public static RepositoryFixture getMongoNS(String uri, boolean dropDBAfterTest, long cacheSize)
public static RepositoryFixture getRDB(String jdbcuri, String jdbcuser, String jdbcpasswd, String jdbctableprefix, boolean dropDBAfterTest, long cacheSize)
public static RepositoryFixture getRDBWithDS(String jdbcuri, String jdbcuser, String jdbcpasswd, String jdbctableprefix, boolean dropDBAfterTest, long cacheSize, File base, int fdsCacheInMB)
@Deprecated public static RepositoryFixture getTar(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping)
@Deprecated public static RepositoryFixture getTarWithBlobStore(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int dsCacheInMB)
public static RepositoryFixture getSegmentTar(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping)
public static RepositoryFixture getSegmentTarWithBlobStore(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int dsCacheInMB)
public static RepositoryFixture getMultiplexing(File base, int maxFileSizeMB, int cacheSizeMB, boolean memoryMapping, int mounts, int pathsPerMount)
public static RepositoryFixture getMultiplexingInMemory(int mounts, int pathsPerMount)
public boolean isAvailable(int n)
RepositoryFixtureisAvailable in interface RepositoryFixturen - size of the requested clustertrue iff the fixture is availablepublic final Repository[] setUpCluster(int n) throws Exception
RepositoryFixtureRepositoryFixture.tearDownCluster()
when the test cluster is no longer needed.setUpCluster in interface RepositoryFixturen - size of the requested clusterException - if the cluster could not be set uppublic Repository[] setUpCluster(int n, JcrCreator customizer) throws Exception
Exceptionpublic void syncRepositoryCluster(Repository... nodes)
RepositoryFixturesyncRepositoryCluster in interface RepositoryFixturenodes - cluster nodes to be synchronizedpublic void tearDownCluster()
RepositoryFixtureRepositoryFixture.setUpCluster(int) shall call this
method once the cluster is no longer needed.tearDownCluster in interface RepositoryFixturepublic OakFixture getOakFixture()
public void setStatisticsProvider(org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.