Package org.apache.oozie.command.coord

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


        }
        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

                    break;
                case FAILED:
                    try {
                        failJob(context);
                        // update coordinator action
                        new CoordActionUpdateXCommand(wfJob, 3).call();
                        new WfEndXCommand(wfJob).call(); // To delete the WF temp dir
                        SLADbXOperations.writeStausEvent(wfAction.getSlaXml(), wfAction.getId(), Status.FAILED,
                                SlaAppType.WORKFLOW_ACTION);
                        SLADbXOperations.writeStausEvent(wfJob.getSlaXml(), wfJob.getId(), Status.FAILED,
                                SlaAppType.WORKFLOW_JOB);
View Full Code Here

            throw new CommandException(je);
        }
        SLADbXOperations.writeStausEvent(action.getSlaXml(), action.getId(), Status.FAILED, SlaAppType.WORKFLOW_ACTION);
        SLADbXOperations.writeStausEvent(workflow.getSlaXml(), workflow.getId(), Status.FAILED, SlaAppType.WORKFLOW_JOB);
        // update coordinator action
        new CoordActionUpdateXCommand(workflow, 3).call();
        new WfEndXCommand(wfJob).call(); //To delete the WF temp dir
        return;
    }
View Full Code Here

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

        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

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

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

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

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

TOP

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

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.