this.end = end;
}
public void execute(Session session, Node test) throws RepositoryException {
try {
OperationFactory f = new OperationFactory(session);
// create nodes
f.createNodes(test.getPath(), numLevels, nodesPerLevel,
mixins, saveInterval).execute();
// save nodes
f.save(test.getPath()).execute();
NodeIterator nodes = f.getRandomNodes(f.traverseNodes(test.getPath()));
while (end > System.currentTimeMillis()) {
Operation op = f.runInSequence(new Operation[]{
getRandomOperations(f, nodes),
f.save("/")
});
if (isUseXA()) {
op = f.runInTransaction(op);
}
op.execute();
}
test.remove();
session.save();