Package org.apache.oozie.executor.jpa

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


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


        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

        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

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

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

                    updateList.add(action);
                }
            }
            wfJob.setLastModifiedTime(new Date());
            updateList.add(wfJob);
            jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, insertList));
            queue(new NotificationXCommand(wfJob));
        }
        catch (JPAExecutorException e) {
            throw new CommandException(e);
        }
View Full Code Here

                    }
                }
            }
            wfJob.setLastModifiedTime(new Date());
            updateList.add(wfJob);
            jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, insertList));
            if (EventHandlerService.isEnabled()) {
                generateEvent(wfJob);
            }
            queue(new NotificationXCommand(wfJob));
        }
View Full Code Here

            wfJob.setLastModifiedTime(new Date());
            updateList.add(wfJob);
        }
        finally {
            try {
                jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, insertList));
                if (!(executor instanceof ControlNodeActionExecutor) && EventHandlerService.isEnabled()) {
                    generateEvent(wfAction, wfJob.getUser());
                }
            }
            catch (JPAExecutorException e) {
View Full Code Here

            wfJob.setLastModifiedTime(new Date());
            updateList.add(wfJob);
        }
        finally {
            try {
                jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, null));
                if (generateEvent && EventHandlerService.isEnabled()) {
                    generateEvent(wfAction, wfJob.getUser());
                }
            }
            catch (JPAExecutorException e) {
View Full Code Here

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

TOP

Related Classes of org.apache.oozie.executor.jpa.BulkUpdateInsertJPAExecutor

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.