Examples of CoordActionUpdateXCommand


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

        catch (URISyntaxException e) {
            throw new CommandException(ErrorCode.E0902, e);
        }
        finally {
            // update coordinator action
            new CoordActionUpdateXCommand(workflow).call();
        }
    }
View Full Code Here

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

        catch (JPAExecutorException je) {
            throw new CommandException(je);
        }
        finally {
            // update coordinator action
            new CoordActionUpdateXCommand(wfJobBean).call();
        }
        return null;
    }
View Full Code Here

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

        }
        LOG.debug(
                "Updated the workflow status to " + wfJob.getId() + "  status =" + wfJob.getStatusStr());
        if (wfJob.getStatus() != WorkflowJob.Status.RUNNING && wfJob.getStatus() != WorkflowJob.Status.SUSPENDED) {
            // update coordinator action
            new CoordActionUpdateXCommand(wfJob).call();    //Note: Called even if wf is not necessarily instantiated by coordinator
            new WfEndXCommand(wfJob).call(); //To delete the WF temp dir
        }
        LOG.debug("ENDED SignalCommand for jobid=" + jobId + ", actionId=" + actionId);
        return null;
    }
View Full Code Here

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

        finally {
            if(wfJob.getStatus() == WorkflowJob.Status.KILLED) {
                 new WfEndXCommand(wfJob).call(); //To delete the WF temp dir
            }
            // update coordinator action
            new CoordActionUpdateXCommand(wfJob).call();
        }

        LOG.info("ENDED WorkflowKillXCommand for jobId=" + wfId);
        return null;
    }
View Full Code Here

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

        catch (Exception e) {
            throw new CommandException(ErrorCode.E0727, e.getMessage());
        }
        finally {
            // update coordinator action
            new CoordActionUpdateXCommand(workflow, 3).call();
        }
    }
View Full Code Here

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

        WorkflowJobBean wf = new WorkflowJobBean();
        wf.setId(action.getExternalId());
        wf.setStatus(WorkflowJob.Status.KILLED);
        wf.setParentId(action.getId());
        jpa.execute(new WorkflowJobInsertJPAExecutor(wf));
        new CoordActionUpdateXCommand(wf).call();
        assertEquals(1, ehs.getEventQueue().size());

        jobEvent = (CoordinatorActionEvent) ehs.getEventQueue().peek();
        assertEquals(AppType.COORDINATOR_ACTION, jobEvent.getAppType());
        assertEquals(JobEvent.EventStatus.FAILURE, jobEvent.getEventStatus());
View Full Code Here

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

    }

    protected void updateParentIfNecessary(WorkflowJobBean wfjob, int maxRetries) throws CommandException {
        // update coordinator action if the wf was actually started by a coord
        if (wfjob.getParentId() != null && wfjob.getParentId().contains("-C@")) {
            new CoordActionUpdateXCommand(wfjob, maxRetries).call();
        }
    }
View Full Code Here

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

    }

    protected void updateParentIfNecessary(WorkflowJobBean wfjob) throws CommandException {
        // update coordinator action if the wf was actually started by a coord
        if (wfjob.getParentId() != null && wfjob.getParentId().contains("-C@")) {
            new CoordActionUpdateXCommand(wfjob).call();
        }
    }
View Full Code Here

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

        finally {
            if(wfJob.getStatus() == WorkflowJob.Status.KILLED) {
                 new WfEndXCommand(wfJob).call(); //To delete the WF temp dir
            }
            // update coordinator action
            new CoordActionUpdateXCommand(wfJob).call();
        }

        LOG.info("ENDED WorkflowKillXCommand for jobId=" + wfId);
        return null;
    }
View Full Code Here

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

        catch (JPAExecutorException je) {
            throw new CommandException(je);
        }
        finally {
            // update coordinator action
            new CoordActionUpdateXCommand(wfJobBean).call();
        }
        return null;
    }
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.