Package org.apache.jackrabbit.core.integration.random.operation

Examples of org.apache.jackrabbit.core.integration.random.operation.OperationFactory


        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();
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.integration.random.operation.OperationFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.