Package org.apache.oozie.executor.jpa

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


    private void updateCoordAction(CoordinatorActionBean action) throws CommandException {
        action.setStatus(CoordinatorActionBean.Status.RUNNING);
        action.incrementAndGetPending();
        action.setLastModifiedTime(new Date());
        try {
            jpaService.execute(new CoordActionUpdateStatusJPAExecutor(action));
        }
        catch (JPAExecutorException e) {
            throw new CommandException(e);
        }
    }
View Full Code Here


            }
            else {
                LOG.warn("Unexpected workflow " + workflow.getId() + " STATUS " + workflow.getStatus());
                // update lastModifiedTime
                coordAction.setLastModifiedTime(new Date());
                jpaService.execute(new CoordActionUpdateStatusJPAExecutor(coordAction));

                return null;
            }

            LOG.info("Updating Coordintaor action id :" + coordAction.getId() + " status from " + preCoordStatus
                    + " to " + coordAction.getStatus() + ", pending = " + coordAction.getPending());

            coordAction.setLastModifiedTime(new Date());
            jpaService.execute(new CoordActionUpdateStatusJPAExecutor(coordAction));
            if (slaStatus != null) {
                SLADbOperations.writeStausEvent(coordAction.getSlaXml(), coordAction.getId(), slaStatus,
                        SlaAppType.COORDINATOR_ACTION, LOG);
            }
            if (workflow.getStatus() != WorkflowJob.Status.SUSPENDED
View Full Code Here

    private void updateCoordAction(CoordinatorActionBean action) throws CommandException {
        action.setStatus(CoordinatorActionBean.Status.SUSPENDED);
        action.incrementAndGetPending();
        action.setLastModifiedTime(new Date());
        try {
            jpaService.execute(new CoordActionUpdateStatusJPAExecutor(action));
        }
        catch (JPAExecutorException e) {
            throw new CommandException(e);
        }
    }
View Full Code Here

            // set pending to false
            action.setPending(0);
        }
        action.setLastModifiedTime(new Date());
        try {
            jpaService.execute(new CoordActionUpdateStatusJPAExecutor(action));
        } catch (JPAExecutorException e) {
            throw new CommandException(e);
        }
    }
View Full Code Here

TOP

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

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.