public class JackrabbitRepositoryFixture extends Object implements RepositoryFixture
| Constructor and Description |
|---|
JackrabbitRepositoryFixture(File base,
int bundleCacheSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAvailable(int n)
Checks whether this fixture is currently available.
|
Repository[] |
setUpCluster(int n)
Creates a new repository cluster with the given number of nodes.
|
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() |
public JackrabbitRepositoryFixture(File base, int bundleCacheSize)
public boolean isAvailable(int n)
RepositoryFixtureisAvailable in interface RepositoryFixturen - size of the requested clustertrue iff the fixture is availablepublic 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 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 RepositoryFixtureCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.