Package org.apache.oozie.command.wf

Examples of org.apache.oozie.command.wf.SuspendXCommand


            List<CoordinatorActionBean> actionList = jpaService.execute(new CoordJobGetActionsJPAExecutor(jobId));
            for (CoordinatorActionBean action : actionList) {
                if (action.getStatus() == CoordinatorActionBean.Status.RUNNING) {
                    // queue a SuspendXCommand
                    if (action.getExternalId() != null) {
                        queue(new SuspendXCommand(action.getExternalId()));
                        updateCoordAction(action);
                        LOG.debug("Suspend coord action = [{0}], new status = [{1}], pending = [{2}] and queue SuspendXCommand for [{3}]",
                                        action.getId(), action.getStatus(), action.getPending(), action.getExternalId());
                    } else {
                        updateCoordAction(action);
View Full Code Here


                        log.info("Recover a SUBMITTED coord action and resubmit CoordActionStartCommand :" + caction.getId());
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.SUSPENDED) {
                        if (caction.getExternalId() != null) {
                            queueCallable(new SuspendXCommand(caction.getExternalId()));
                            log.debug("Recover a SUSPENDED coord action and resubmit SuspendXCommand :" + caction.getId());
                        }
                    }
                    else if (caction.getStatus() == CoordinatorActionBean.Status.KILLED) {
                        if (caction.getExternalId() != null) {
View Full Code Here

TOP

Related Classes of org.apache.oozie.command.wf.SuspendXCommand

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.