Examples of CoordResumeXCommand


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

                            || baction.getStatus() == Job.Status.SUSPENDEDWITHERROR) {
                        queueCallable(new CoordSuspendXCommand(baction.getCoordId()));
                    }
                    else if (baction.getStatus() == Job.Status.RUNNING
                            || baction.getStatus() == Job.Status.RUNNINGWITHERROR) {
                        queueCallable(new CoordResumeXCommand(baction.getCoordId()));
                    }
                }
                catch (Exception ex) {
                    log.error("Exception, {0}", ex.getMessage(), ex);
                }
View Full Code Here

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

        assertEquals(Job.Status.SUSPENDED, coordJob.getStatus());

        sleep(3000);

        new CoordResumeXCommand(coordJobId).call();

        coordJob = jpaService.execute(coordJobGetCmd);

        Runnable runnable = new StatusTransitRunnable();
        runnable.run();
View Full Code Here

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

    public void resumeChildren() {
        for (BundleActionBean action : bundleActions) {
            if (action.getStatus() == Job.Status.SUSPENDED || action.getStatus() == Job.Status.SUSPENDEDWITHERROR || action.getStatus() == Job.Status.PREPSUSPENDED) {
                // queue a CoordResumeXCommand
                if (action.getCoordId() != null) {
                    queue(new CoordResumeXCommand(action.getCoordId()));
                    updateBundleAction(action);
                    LOG.debug("Resume bundle action = [{0}], new status = [{1}], pending = [{2}] and queue CoordResumeXCommand for [{3}]",
                                    action.getBundleActionId(), action.getStatus(), action.getPending(), action
                                            .getCoordId());
                }
View Full Code Here

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

     * @see org.apache.oozie.BaseEngine#resume(java.lang.String)
     */
    @Override
    public void resume(String jobId) throws CoordinatorEngineException {
        try {
      new CoordResumeXCommand(jobId).call();
        }
        catch (CommandException e) {
            throw new CoordinatorEngineException(e);
        }
    }
View Full Code Here

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

        assertEquals(Job.Status.SUSPENDED, coordJob.getStatus());

        sleep(3000);

        new CoordResumeXCommand(coordJobId).call();

        coordJob = jpaService.execute(coordJobGetCmd);

        Runnable runnable = new StatusTransitRunnable();
        runnable.run();
View Full Code Here

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

        new StatusTransitRunnable().run();

        CoordinatorJobBean coordJob1 = jpaService.execute(new CoordJobGetJPAExecutor(coordJobId));
        assertEquals(Job.Status.PREPSUSPENDED, coordJob1.getStatus());

        new CoordResumeXCommand(coordJobId).call();

        coordJob = jpaService.execute(coordJobGetCmd);

        assertEquals(Job.Status.PREP, coordJob.getStatus());
View Full Code Here

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

     * @see org.apache.oozie.BaseEngine#resume(java.lang.String)
     */
    @Override
    public void resume(String jobId) throws CoordinatorEngineException {
        try {
            new CoordResumeXCommand(jobId).call();
        }
        catch (CommandException e) {
            throw new CoordinatorEngineException(e);
        }
    }
View Full Code Here

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

                                || baction.getStatus() == Job.Status.SUSPENDEDWITHERROR) {
                            queueCallable(new CoordSuspendXCommand(baction.getCoordId()));
                        }
                        else if (baction.getStatus() == Job.Status.RUNNING
                                || baction.getStatus() == Job.Status.RUNNINGWITHERROR) {
                            queueCallable(new CoordResumeXCommand(baction.getCoordId()));
                        }
                    }
                }
                catch (Exception ex) {
                    log.error("Exception, {0}", ex.getMessage(), ex);
View Full Code Here

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

    public void resumeChildren() {
        for (BundleActionBean action : bundleActions) {
            if (action.getStatus() == Job.Status.SUSPENDED || action.getStatus() == Job.Status.SUSPENDEDWITHERROR || action.getStatus() == Job.Status.PREPSUSPENDED) {
                // queue a CoordResumeXCommand
                if (action.getCoordId() != null) {
                    queue(new CoordResumeXCommand(action.getCoordId()));
                    updateBundleAction(action);
                    LOG.debug("Resume bundle action = [{0}], new status = [{1}], pending = [{2}] and queue CoordResumeXCommand for [{3}]",
                                    action.getBundleActionId(), action.getStatus(), action.getPending(), action
                                            .getCoordId());
                }
View Full Code Here

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

        WorkflowInstance wfInstance = wfJob.getWorkflowInstance();
        ((LiteWorkflowInstance) wfInstance).setStatus(WorkflowInstance.Status.SUSPENDED);
        wfJob.setWorkflowInstance(wfInstance);
        WorkflowJobQueryExecutor.getInstance().executeUpdate(WorkflowJobQuery.UPDATE_WORKFLOW_STATUS_INSTANCE_MODIFIED, wfJob);
        queue.clear();
        new CoordResumeXCommand(coord.getId()).call();
        waitForEventGeneration(1000);
        CoordinatorActionEvent cevent = (CoordinatorActionEvent) queue.poll();
        assertEquals(EventStatus.STARTED, cevent.getEventStatus());
        assertEquals(AppType.COORDINATOR_ACTION, cevent.getAppType());
        assertEquals(action.getId(), cevent.getId());
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.