Examples of BulkUpdateInsertJPAExecutor


Examples of org.apache.oozie.executor.jpa.BulkUpdateInsertJPAExecutor

     * @see org.apache.oozie.command.RerunTransitionXCommand#performWrites()
     */
    @Override
    public void performWrites() throws CommandException {
        try {
            jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, insertList));
        }
        catch (JPAExecutorException e) {
            throw new CommandException(e);
        }
    }
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BulkUpdateInsertJPAExecutor

        try {
            wfJob.setLastModifiedTime(new Date());
            updateList.add(wfJob);
            // call JPAExecutor to do the bulk writes
            jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, insertList));
        }
        catch (JPAExecutorException je) {
            throw new CommandException(je);
        }
        LOG.debug(
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BulkUpdateInsertJPAExecutor

     * @see org.apache.oozie.command.MaterializeTransitionXCommand#performWrites()
     */
    @Override
    public void performWrites() throws CommandException {
        try {
            jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, insertList));
        }
        catch (JPAExecutorException jex) {
            throw new CommandException(jex);
        }
    }
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BulkUpdateInsertJPAExecutor

            if (lock(jobId)) {
                call(store);
                JPAService jpaService = Services.get().get(JPAService.class);
                if (jpaService != null) {
                    try {
                        jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, insertList));
                    }
                    catch (JPAExecutorException je) {
                        throw new CommandException(je);
                    }
                }
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BulkUpdateInsertJPAExecutor

     * @see org.apache.oozie.command.RerunTransitionXCommand#performWrites()
     */
    @Override
    public void performWrites() throws CommandException {
        try {
            jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, insertList));
        }
        catch (JPAExecutorException e) {
            throw new CommandException(e);
        }
    }
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BulkUpdateInsertJPAExecutor

                //store.insertWorkflow(workflow);
                insertList.add(workflow);
                JPAService jpaService = Services.get().get(JPAService.class);
                if (jpaService != null) {
                    try {
                        jpaService.execute(new BulkUpdateInsertJPAExecutor(null, insertList));
                    }
                    catch (JPAExecutorException je) {
                        throw new CommandException(je);
                    }
                }
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BulkUpdateInsertJPAExecutor

                    }
                }

                workflow.setLastModifiedTime(new Date());
                updateList.add(workflow);
                jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, null));
                queue(new NotificationXCommand(workflow));
            }
            return null;
        }
        catch (WorkflowException ex) {
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BulkUpdateInsertJPAExecutor

            wfJob.setLastModifiedTime(new Date());
            updateList.add(wfJob);
        }
        finally {
            try {
                jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, null));
            }
            catch (JPAExecutorException e) {
                throw new CommandException(e);
            }
        }
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BulkUpdateInsertJPAExecutor

        InstrumentUtils.incrJobCounter(getName(), 1, getInstrumentation());
        try {
            suspendJob(this.jpaService, this.wfJobBean, this.wfid, null, updateList);
            this.wfJobBean.setLastModifiedTime(new Date());
            updateList.add(this.wfJobBean);
            jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, null));
            queue(new NotificationXCommand(this.wfJobBean));
        }
        catch (WorkflowException e) {
            throw new CommandException(e);
        }
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BulkUpdateInsertJPAExecutor

     * @see org.apache.oozie.command.StartTransitionXCommand#performWrites()
     */
    @Override
    public void performWrites() throws CommandException {
        try {
            jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, insertList));
        }
        catch (JPAExecutorException e) {
            throw new CommandException(e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.