Package org.apache.oozie.command.coord

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


        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

        wfJob.setStatus(WorkflowJob.Status.SUSPENDED);
        WorkflowInstance wfInstance = wfJob.getWorkflowInstance();
        ((LiteWorkflowInstance) wfInstance).setStatus(WorkflowInstance.Status.SUSPENDED);
        wfJob.setWorkflowInstance(wfInstance);
        jpaService.execute(new WorkflowJobUpdateJPAExecutor(wfJob));
        new CoordResumeXCommand(coord.getId()).call();
        Thread.sleep(5000);
        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

                            || 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

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

        try {
            for (BundleActionBean action : bundleActions) {
                if (action.getStatus() == Job.Status.SUSPENDED || 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

     */
    @Override
    public void resume(String jobId) throws CoordinatorEngineException {
        try {
            if (useXCommand) {
                new CoordResumeXCommand(jobId).call();
            }
            else {
                new CoordResumeCommand(jobId).call();
            }
        }
View Full Code Here

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

        Thread.sleep(3000);

        new CoordResumeXCommand(coordJobId).call();

        coordJob = jpaService.execute(coordJobGetCmd);

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

TOP

Related Classes of org.apache.oozie.command.coord.CoordResumeXCommand

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.