Package org.apache.oozie.command.wf

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


                - System.currentTimeMillis());

                    }
                    else if (action.getStatus() == WorkflowActionBean.Status.OK
                            || action.getStatus() == WorkflowActionBean.Status.ERROR) {
            queueCallable(new SignalXCommand(action.getJobId(),
                action.getId()));
                    }
                    else if (action.getStatus() == WorkflowActionBean.Status.USER_RETRY) {
            queueCallable(new ActionStartXCommand(action.getId(),
                action.getType()));
View Full Code Here


                    }
                    else if (action.getStatus() == WorkflowActionBean.Status.OK
                            || action.getStatus() == WorkflowActionBean.Status.ERROR) {
                        if (useXCommand) {
                            queueCallable(new SignalXCommand(action.getJobId(), action.getId()));
                        } else {
                            queueCallable(new SignalCommand(action.getJobId(), action.getId()));
                        }

                    }
View Full Code Here

                                - System.currentTimeMillis());

                    }
                    else if (action.getStatus() == WorkflowActionBean.Status.OK
                            || action.getStatus() == WorkflowActionBean.Status.ERROR) {
                        queueCallable(new SignalXCommand(action.getJobId(), action.getId()));
                    }
                    else if (action.getStatus() == WorkflowActionBean.Status.USER_RETRY) {
                        queueCallable(new ActionStartXCommand(action.getId(), action.getType()));
                    }
                }
View Full Code Here

                                    - System.currentTimeMillis());

                        }
                        else if (action.getStatus() == WorkflowActionBean.Status.OK
                                || action.getStatus() == WorkflowActionBean.Status.ERROR) {
                            queueCallable(new SignalXCommand(action.getJobId(), action.getId()));
                        }
                        else if (action.getStatus() == WorkflowActionBean.Status.USER_RETRY) {
                            queueCallable(new ActionStartXCommand(action.getId(), action.getType()));
                        }
                    }
View Full Code Here

        LiteWorkflowInstance wfInstance = (LiteWorkflowInstance) job.getWorkflowInstance();
        wfInstance.start();
        job.setWorkflowInstance(wfInstance);
        WorkflowJobQueryExecutor.getInstance().executeUpdate(WorkflowJobQuery.UPDATE_WORKFLOW_STATUS_INSTANCE_MODIFIED, job);
        WorkflowActionBean wfAction = jpaService.execute(new WorkflowActionGetJPAExecutor(job.getId() + "@one"));
        new SignalXCommand(job.getId(), wfAction.getId()).call();
        job = jpaService.execute(new WorkflowJobGetJPAExecutor(job.getId()));
        assertEquals(WorkflowJob.Status.SUCCEEDED, job.getStatus());
        assertEquals(1, queue.size());
        event = (JobEvent) queue.poll();
        assertNotNull(event);
View Full Code Here

        LiteWorkflowInstance wfInstance = (LiteWorkflowInstance) job.getWorkflowInstance();
        wfInstance.start();
        job.setWfInstance(wfInstance);
        jpaService.execute(new WorkflowJobUpdateJPAExecutor(job));
        WorkflowActionBean wfAction = jpaService.execute(new WorkflowActionGetJPAExecutor(job.getId() + "@one"));
        new SignalXCommand(job.getId(), wfAction.getId()).call();
        job = jpaService.execute(new WorkflowJobGetJPAExecutor(job.getId()));
        assertEquals(WorkflowJob.Status.SUCCEEDED, job.getStatus());
        assertEquals(1, queue.size());
        event = (JobEvent) queue.poll();
        assertNotNull(event);
View Full Code Here

                                - System.currentTimeMillis());

                    }
                    else if (action.getStatus() == WorkflowActionBean.Status.OK
                            || action.getStatus() == WorkflowActionBean.Status.ERROR) {
                        queueCallable(new SignalXCommand(action.getJobId(), action.getId()));
                    }
                    else if (action.getStatus() == WorkflowActionBean.Status.USER_RETRY) {
                        queueCallable(new ActionStartXCommand(action.getId(), action.getType()));
                    }
                }
View Full Code Here

                    }
                    else if (action.getStatus() == WorkflowActionBean.Status.OK
                            || action.getStatus() == WorkflowActionBean.Status.ERROR) {
                        if (useXCommand) {
                            queueCallable(new SignalXCommand(action.getJobId(), action.getId()));
                        } else {
                            queueCallable(new SignalCommand(action.getJobId(), action.getId()));
                        }

                    }
View Full Code Here

TOP

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

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.