use of org.apache.jackrabbit.oak.spi.mount.Mounts in project jackrabbit-oak by apache.
the class CompositeStoreFixture method getOak.
@Override
public Oak getOak(int clusterId) throws Exception {
NodeStore nodeStore = getNodeStore();
Mounts.Builder mip = Mounts.newBuilder();
for (int i = 0; i < mounts; i++) {
String[] paths = new String[pathsPerMount];
for (int j = 0; j < pathsPerMount; j++) {
paths[j] = String.format("/mount-%d-path-%d", i, j);
}
mip.readOnlyMount("custom-mount-" + i, paths);
}
CompositeNodeStore.Builder builder = new CompositeNodeStore.Builder(mip.build(), nodeStore);
for (int i = 0; i < mounts; i++) {
builder.addMount("custom-mount-" + i, nodeStore);
}
return new Oak(builder.build());
}
Aggregations