Examples of CoordChangeXCommand


Examples of org.apache.oozie.command.coord.CoordChangeXCommand

                    bundleJob.setStatus(Job.Status.RUNNING);
                }
                for (BundleActionBean action : this.bundleActions) {
                    // queue coord change commands;
                    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));
                    }
View Full Code Here

Examples of org.apache.oozie.command.coord.CoordChangeXCommand

     * @see org.apache.oozie.BaseEngine#change(java.lang.String, java.lang.String)
     */
    @Override
    public void change(String jobId, String changeValue) throws CoordinatorEngineException {
        try {
            new CoordChangeXCommand(jobId, changeValue).call();
            LOG.info("User " + user + " changed the Coordinator job " + jobId + " to " + changeValue);
        }
        catch (CommandException e) {
            throw new CoordinatorEngineException(e);
        }
View Full Code Here

Examples of org.apache.oozie.command.coord.CoordChangeXCommand

                    bundleJob.setStatus(Job.Status.RUNNING);
                }
                for (BundleActionBean action : this.bundleActions) {
                    // queue coord change commands;
                    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));
                    }
View Full Code Here

Examples of org.apache.oozie.command.coord.CoordChangeXCommand

     */
    @Override
    public void change(String jobId, String changeValue) throws CoordinatorEngineException {
        try {
            if (useXCommand) {
                new CoordChangeXCommand(jobId, changeValue).call();
            }
            else {
                new CoordChangeCommand(jobId, changeValue).call();
            }
            LOG.info("User " + user + " changed the Coordinator job " + jobId + " to " + changeValue);
View Full Code Here

Examples of org.apache.oozie.command.coord.CoordChangeXCommand

                    }
                }
                for (BundleActionBean action : this.bundleActions) {
                    // queue coord change commands;
                    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);
                        updateList.add(action);
                    }
View Full Code Here

Examples of org.apache.oozie.command.coord.CoordChangeXCommand

     * @see org.apache.oozie.BaseEngine#change(java.lang.String, java.lang.String)
     */
    @Override
    public void change(String jobId, String changeValue) throws CoordinatorEngineException {
        try {
            new CoordChangeXCommand(jobId, changeValue).call();
            LOG.info("User " + user + " changed the Coordinator job " + jobId + " to " + changeValue);
        }
        catch (CommandException e) {
            throw new CoordinatorEngineException(e);
        }
View Full Code Here

Examples of org.apache.oozie.command.coord.CoordChangeXCommand

     * @see org.apache.oozie.BaseEngine#change(java.lang.String, java.lang.String)
     */
    @Override
    public void change(String jobId, String changeValue) throws CoordinatorEngineException {
        try {
            new CoordChangeXCommand(jobId, changeValue).call();
            LOG.info("User " + user + " changed the Coordinator job [" + jobId + "] to " + changeValue);
        }
        catch (CommandException e) {
            throw new CoordinatorEngineException(e);
        }
View Full Code Here

Examples of org.apache.oozie.command.coord.CoordChangeXCommand

                }
                for (BundleActionBean action : this.bundleActions) {
                    // queue coord change commands;
                    if (action.getStatus() != Job.Status.KILLED && action.getCoordId() != null) {
                        try {
                            new CoordChangeXCommand(action.getCoordId(), changeValue).call();
                        }
                        catch (Exception e) {
                            String errorMsg = action.getCoordId() + " : " + e.getMessage();
                            LOG.info("Change command failed " + errorMsg);
                            changeReport.append("[ ").append(errorMsg).append(" ]");
View Full Code Here

Examples of org.apache.oozie.command.coord.CoordChangeXCommand

     * @see org.apache.oozie.BaseEngine#change(java.lang.String, java.lang.String)
     */
    @Override
    public void change(String jobId, String changeValue) throws CoordinatorEngineException {
        try {
            new CoordChangeXCommand(jobId, changeValue).call();
            LOG.info("User " + user + " changed the Coordinator job " + jobId + " to " + changeValue);
        }
        catch (CommandException e) {
            throw new CoordinatorEngineException(e);
        }
View Full Code Here

Examples of org.apache.oozie.command.coord.CoordChangeXCommand

                    bundleJob.setStatus(Job.Status.RUNNING);
                }
                for (BundleActionBean action : this.bundleActions) {
                    // queue coord change commands;
                    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));
                    }
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.