Package org.jboss.dna.graph.request

Examples of org.jboss.dna.graph.request.BatchRequestBuilder


     * @return the batch object used to build and accumulate multiple requests and to submit them all for processing at once.
     * @see Batch#execute()
     * @see Results
     */
    public Batch batch() {
        return new Batch(new BatchRequestBuilder());
    }
View Full Code Here


        }

        // Create a new batch for future operations ...
        // LinkedList<Request> oldRequests = this.requests;
        this.requests = new LinkedList<Request>();
        this.requestBuilder = new BatchRequestBuilder(this.requests);
        this.operations = store.batch(this.requestBuilder);

        // Remove all the cached items ...
        this.root.clearChanges();
        this.root.unload();
View Full Code Here

            }
        }
        if (branchRequests.isEmpty()) return;

        // Now execute the branch ...
        Graph.Batch branchBatch = store.batch(new BatchRequestBuilder(branchRequests));
        try {
            branchBatch.execute();
        } catch (org.jboss.dna.graph.property.PathNotFoundException e) {
            throw new InvalidStateException(e.getLocalizedMessage(), e);
        } catch (RuntimeException e) {
            throw new RepositorySourceException(e.getLocalizedMessage(), e);
        }

        // Still have non-branch related requests that we haven't executed ...
        this.requests = nonBranchRequests;
        this.requestBuilder = new BatchRequestBuilder(this.requests);
        this.operations = store.batch(this.requestBuilder);

        // Remove all the cached, changed or deleted items that were just saved ...
        node.clearChanges();
        node.unload();
View Full Code Here

        this.root = createNode(null, rootId, rootLocation);
        this.nodes.put(rootId, root);

        // Create the batch operations ...
        this.requests = new LinkedList<Request>();
        this.requestBuilder = new BatchRequestBuilder(this.requests);
        this.operations = this.store.batch(this.requestBuilder);
    }
View Full Code Here

        this.root = createNode(null, rootId, rootLocation);
        this.nodes.put(rootId, root);

        // Create the batch operations ...
        this.requests = new LinkedList<Request>();
        this.requestBuilder = new BatchRequestBuilder(this.requests);
        this.operations = this.store.batch(this.requestBuilder);
    }
View Full Code Here

        }

        // Create a new batch for future operations ...
        // LinkedList<Request> oldRequests = this.requests;
        this.requests = new LinkedList<Request>();
        this.requestBuilder = new BatchRequestBuilder(this.requests);
        this.operations = store.batch(this.requestBuilder);

        // Remove all the cached items ...
        this.root.clearChanges();
        this.root.unload();
View Full Code Here

            }
        }
        if (branchRequests.isEmpty()) return;

        // Now execute the branch ...
        Graph.Batch branchBatch = store.batch(new BatchRequestBuilder(branchRequests));
        try {
            branchBatch.execute();
        } catch (org.jboss.dna.graph.property.PathNotFoundException e) {
            throw new InvalidStateException(e.getLocalizedMessage(), e);
        } catch (RuntimeException e) {
            throw new RepositorySourceException(e.getLocalizedMessage(), e);
        }

        // Still have non-branch related requests that we haven't executed ...
        this.requests = nonBranchRequests;
        this.requestBuilder = new BatchRequestBuilder(this.requests);
        this.operations = store.batch(this.requestBuilder);

        // Remove all the cached, changed or deleted items that were just saved ...
        node.clearChanges();
        node.unload();
View Full Code Here

     * @return the batch object used to build and accumulate multiple requests and to submit them all for processing at once.
     * @see Batch#execute()
     * @see Results
     */
    public Batch batch() {
        return new Batch(new BatchRequestBuilder());
    }
View Full Code Here

TOP

Related Classes of org.jboss.dna.graph.request.BatchRequestBuilder

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.