Package org.apache.oozie.executor.jpa

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


        try {
            wfJob.setLastModifiedTime(new Date());
            updateList.add(wfJob);
            // call JPAExecutor to do the bulk writes
            jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, insertList));
            if (generateEvent && EventHandlerService.isEnabled()) {
                generateEvent(wfJob, wfJobErrorCode, wfJobErrorMsg);
            }
        }
        catch (JPAExecutorException je) {
View Full Code Here

            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

                    LOG.warn("Exception while executing kill(). Error Code [{0}], Message[{1}]",
                            ex.getErrorCode(), ex.getMessage(), ex);
                }
                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

     * @see org.apache.oozie.command.MaterializeTransitionXCommand#performWrites()
     */
    @Override
    public void performWrites() throws CommandException {
        try {
            jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, insertList));
            // register the partition related dependencies of actions
            for (JsonBean actionBean : insertList) {
                if (actionBean instanceof CoordinatorActionBean) {
                    CoordinatorActionBean coordAction = (CoordinatorActionBean) actionBean;
                    if (EventHandlerService.isEnabled()) {
View Full Code Here

                    }
                }

                workflow.setLastModifiedTime(new Date());
                updateList.add(workflow);
                jpaService.execute(new BulkUpdateInsertJPAExecutor(updateList, null));
                if (EventHandlerService.isEnabled()) {
                    generateEvent(workflow);
                }
                queue(new NotificationXCommand(workflow));
            }
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

     * @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

     * @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

                //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

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.