Examples of BundleActionUpdateJPAExecutor


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

            action.setStatus(Job.Status.SUSPENDED);
        }
        action.incrementAndGetPending();
        action.setLastModifiedTime(new Date());
        try {
            jpaService.execute(new BundleActionUpdateJPAExecutor(action));
        }
        catch (JPAExecutorException e) {
            throw new CommandException(e);
        }
    }
View Full Code Here

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

    private void updateBundleAction(String coordName) throws JPAExecutorException {
        BundleActionBean action = jpaService.execute(new BundleActionGetJPAExecutor(jobId, coordName));
        action.incrementAndGetPending();
        action.setLastModifiedTime(new Date());
        jpaService.execute(new BundleActionUpdateJPAExecutor(action));
    }
View Full Code Here

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

                    if (action.getStatus() != Job.Status.KILLED && action.getCoordId() != null) {
                        queue(new CoordChangeXCommand(action.getCoordId(), changeValue));
                        LOG.info("Queuing CoordChangeXCommand coord job = " + action.getCoordId() + " to change "
                                + changeValue);
                        action.setPending(action.getPending() + 1);
                        jpaService.execute(new BundleActionUpdateJPAExecutor(action));
                    }
                }
                jpaService.execute(new BundleJobUpdateJPAExecutor(bundleJob));
            }
            return null;
View Full Code Here

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

            action.setStatus(Job.Status.RUNNING);
        }
        action.incrementAndGetPending();
        action.setLastModifiedTime(new Date());
        try {
            jpaService.execute(new BundleActionUpdateJPAExecutor(action));
        }
        catch (JPAExecutorException e) {
            throw new CommandException(e);
        }
    }
View Full Code Here

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

     */
    private void updateBundleAction(BundleActionBean action) throws CommandException {
        action.incrementAndGetPending();
        action.setLastModifiedTime(new Date());
        try {
            jpaService.execute(new BundleActionUpdateJPAExecutor(action));
        }
        catch (JPAExecutorException je) {
            throw new CommandException(je);
        }
    }
View Full Code Here

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

    private void updateBundleAction(BundleActionBean action) throws CommandException {
        action.incrementAndGetPending();
        action.setLastModifiedTime(new Date());
        action.setStatus(Job.Status.KILLED);
        try {
            jpaService.execute(new BundleActionUpdateJPAExecutor(action));
        }
        catch (JPAExecutorException e) {
            throw new CommandException(e);
        }
    }
View Full Code Here

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

            if (bundleaction.isPending()) {
                bundleaction.decrementAndGetPending();
            }
            bundleaction.setLastModifiedTime(new Date());
            bundleaction.setCoordId(coordjob.getId());
            jpaService.execute(new BundleActionUpdateJPAExecutor(bundleaction));
            LOG.info("Updated bundle action [{0}] from prev status [{1}] to current coord status [{2}], and new bundle action pending [{3}]", bundleaction
                    .getBundleActionId(), bundleActionStatus, coordCurrentStatus, bundleaction.getPending());

            LOG.debug("ENDED BundleStatusUpdateXCommand with bubdle id : " + coordjob.getBundleId() + " coord job ID: "
                    + coordjob.getId() + " coord Status " + coordjob.getStatus());
View Full Code Here

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

            if (bundleaction.isPending()) {
                bundleaction.decrementAndGetPending();
            }
            bundleaction.setLastModifiedTime(new Date());
            try {
                jpaService.execute(new BundleActionUpdateJPAExecutor(bundleaction));
            }
            catch (JPAExecutorException je) {
                throw new CommandException(je);
            }
            LOG.info("Bundle action [{0}] status [{1}] is different from prev coord status [{2}], decrement pending so new pending = [{3}]",
View Full Code Here

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

                LOG.info("Updated bundle job [{0}] pending to true", bundleaction.getBundleId());
            }*/

            bundleaction.setLastModifiedTime(new Date());
            bundleaction.setCoordId(coordjob.getId());
            jpaService.execute(new BundleActionUpdateJPAExecutor(bundleaction));
            if (bundleaction.getCoordId() != null) {
                LOG.info("Updated bundle action [{0}] from prev status [{1}] to current coord status [{2}], and new bundle action pending [{3}]", bundleaction
                    .getBundleActionId(), bundleaction.getStatus(), coordCurrentStatus, bundleaction.getPending());
            }
            else {
View Full Code Here

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

            if (bundleaction.isPending() && coordjob.getStatus().equals(bundleaction.getStatus())) {
                bundleaction.decrementAndGetPending();
            }
            bundleaction.setLastModifiedTime(new Date());
            try {
                jpaService.execute(new BundleActionUpdateJPAExecutor(bundleaction));
            }
            catch (JPAExecutorException je) {
                throw new CommandException(je);
            }
            LOG.info("Bundle action [{0}] status [{1}] is different from prev coord status [{2}], decrement pending so new pending = [{3}]",
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.