Examples of BundleActionsGetJPAExecutor


Examples of org.apache.oozie.executor.jpa.BundleActionsGetJPAExecutor

        job = jpaService.execute(bundleJobGetExecutor);
        assertEquals(job.getStatus(), Job.Status.RUNNING);

        Thread.sleep(2000);

        BundleActionsGetJPAExecutor bundleActionsGetExecutor = new BundleActionsGetJPAExecutor(job.getId());
        List<BundleActionBean> actions = jpaService.execute(bundleActionsGetExecutor);

        assertEquals(2, actions.size());
        assertEquals(true, actions.get(0).isCritical());
        assertEquals(job.getId(), actions.get(0).getBundleId());
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BundleActionsGetJPAExecutor

        job = jpaService.execute(bundleJobGetExecutor);
        assertEquals(job.getStatus(), Job.Status.RUNNING);

        Thread.sleep(2000);

        final BundleActionsGetJPAExecutor bundleActionsGetExecutor = new BundleActionsGetJPAExecutor(job.getId());
        List<BundleActionBean> actions = jpaService.execute(bundleActionsGetExecutor);
        assertEquals(2, actions.size());

        waitFor(200000, new Predicate() {
            public boolean evaluate() throws Exception {
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BundleActionsGetJPAExecutor

        job = jpaService.execute(bundleJobGetExecutor);
        assertEquals(job.getStatus(), Job.Status.RUNNING);

        Thread.sleep(2000);

        BundleActionsGetJPAExecutor bundleActionsGetExecutor = new BundleActionsGetJPAExecutor(job.getId());
        List<BundleActionBean> actions = jpaService.execute(bundleActionsGetExecutor);

        assertEquals(2, actions.size());
        assertEquals(true, actions.get(0).isCritical());
        assertEquals(job.getId(), actions.get(0).getBundleId());
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BundleActionsGetJPAExecutor

        catch (Exception Ex) {
            throw new CommandException(ErrorCode.E0604, jobId);
        }

        try {
            bundleActions = jpaService.execute(new BundleActionsGetJPAExecutor(jobId));
        }
        catch (Exception Ex) {
            throw new CommandException(ErrorCode.E1311, jobId);
        }
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BundleActionsGetJPAExecutor

        job = jpaService.execute(bundleJobGetCmd);
        assertEquals(Job.Status.RUNNING, job.getStatus());

        Thread.sleep(2000);

        BundleActionsGetJPAExecutor bundleActionsGetCmd = new BundleActionsGetJPAExecutor(job.getId());
        List<BundleActionBean> actions = jpaService.execute(bundleActionsGetCmd);

        assertEquals(2, actions.size());
        assertNotNull(actions.get(0).getCoordId());
        assertNotNull(actions.get(1).getCoordId());
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BundleActionsGetJPAExecutor

        job = jpaService.execute(bundleJobGetCmd);
        assertEquals(Job.Status.RUNNING, job.getStatus());

        Thread.sleep(2000);

        BundleActionsGetJPAExecutor bundleActionsGetCmd = new BundleActionsGetJPAExecutor(job.getId());
        List<BundleActionBean> actions = jpaService.execute(bundleActionsGetCmd);

        assertEquals(2, actions.size());
        assertNotNull(actions.get(0).getCoordId());
        assertNotNull(actions.get(1).getCoordId());
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BundleActionsGetJPAExecutor

     */
    @Override
    protected void loadState() throws CommandException {
        try{
            eagerLoadState();
            this.bundleActions = jpaService.execute(new BundleActionsGetJPAExecutor(jobId));
        }
        catch(Exception Ex){
            throw new CommandException(ErrorCode.E1311,this.jobId);
        }
    }
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BundleActionsGetJPAExecutor

            throw new CommandException(ErrorCode.E0610);
        }

        try {
            bundleJob = jpaService.execute(new BundleJobGetJPAExecutor(bundleId));
            bundleActions = jpaService.execute(new BundleActionsGetJPAExecutor(bundleId));
        }
        catch (Exception Ex) {
            throw new CommandException(ErrorCode.E0604, bundleId);
        }
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BundleActionsGetJPAExecutor

                    for (BundleJobBean bundleJob : listBundleBean) {
                        try {
                            String jobId = bundleJob.getId();
                            Job.Status[] bundleStatus = new Job.Status[1];
                            bundleStatus[0] = bundleJob.getStatus();
                            List<BundleActionBean> bundleActions = jpaService.execute(new BundleActionsGetJPAExecutor(
                                    jobId));
                            HashMap<Job.Status, Integer> bundleActionStatus = new HashMap<Job.Status, Integer>();
                            boolean foundPending = false;
                            for (BundleActionBean bAction : bundleActions) {
                                if (!bAction.isPending()) {
View Full Code Here

Examples of org.apache.oozie.executor.jpa.BundleActionsGetJPAExecutor

        try {
            jpaService = Services.get().get(JPAService.class);

            if (jpaService != null) {
                this.bundleJob = jpaService.execute(new BundleJobGetJPAExecutor(jobId));
                this.bundleActions = jpaService.execute(new BundleActionsGetJPAExecutor(jobId));
                LogUtils.setLogInfo(bundleJob, logInfo);
                super.setJob(bundleJob);
                prevPending = bundleJob.isPending();
            }
            else {
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.