public interface RepositoryFixture
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.
|
boolean isAvailable(int n)
n
- size of the requested clustertrue
iff the fixture is availablejavax.jcr.Repository[] setUpCluster(int n) throws Exception
tearDownCluster()
when the test cluster is no longer needed.n
- size of the requested clusterException
- if the cluster could not be set upvoid syncRepositoryCluster(javax.jcr.Repository... nodes)
nodes
- cluster nodes to be synchronizedvoid tearDownCluster()
setUpCluster(int)
shall call this
method once the cluster is no longer needed.Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.