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.
|
javax.jcr.Repository[] |
setUpCluster(int n)
Creates a new repository cluster with the given number of nodes.
|
void |
syncRepositoryCluster(javax.jcr.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)
RepositoryFixture
isAvailable
in interface RepositoryFixture
n
- size of the requested clustertrue
iff the fixture is availablepublic javax.jcr.Repository[] setUpCluster(int n) throws Exception
RepositoryFixture
RepositoryFixture.tearDownCluster()
when the test cluster is no longer needed.setUpCluster
in interface RepositoryFixture
n
- size of the requested clusterException
- if the cluster could not be set uppublic void syncRepositoryCluster(javax.jcr.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
Copyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.