Package org.apache.oozie.executor.jpa

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


            CoordinatorJobBean coordJob = null;
            if (jpaService != null) {
                coordJob = jpaService.execute(new CoordJobGetJPAExecutor(id));
                if (getActionInfo) {
                    List<CoordinatorActionBean> coordActions = jpaService
                            .execute(new CoordJobGetActionsSubsetJPAExecutor(id, filterList, start, len));
                    coordJob.setActions(coordActions);
                }
            }
            else {
                LOG.error(ErrorCode.E0610);
View Full Code Here


                    List<CoordinatorActionBean> coordActions = null;
                    if (len == 0) {
                        coordActions = new ArrayList<CoordinatorActionBean>();
                    }
                    else {
                        coordActions = jpaService.execute(new CoordJobGetActionsSubsetJPAExecutor(id, filterMap, offset,
                                len, desc));
                    }
                    coordJob.setActions(coordActions);
                    coordJob.setNumActions(numAction);
                }
View Full Code Here

    }

    private void checkCoordActionsNominalTime(String jobId, int number, Date[] nominalTimes) {
        try {
            JPAService jpaService = Services.get().get(JPAService.class);
            List<CoordinatorActionBean> actions = jpaService.execute(new CoordJobGetActionsSubsetJPAExecutor(jobId,
                    null, 1, 1000, false));

            if (actions.size() != number) {
                fail("Should have " + number + " actions created for job " + jobId + ", but has " + actions.size() + " actions.");
            }
View Full Code Here

    }

    private void checkCoordActionsStatus(String jobId, CoordinatorActionBean.Status[] statuses) {
        try {
            JPAService jpaService = Services.get().get(JPAService.class);
            List<CoordinatorActionBean> actions = jpaService.execute(new CoordJobGetActionsSubsetJPAExecutor(jobId,
                    null, 1, 1000, false));

            if (actions.size() != statuses.length) {
                fail("Should have " + statuses.length + " actions created for job " + jobId + ", but has " + actions.size()
                        + " actions.");
View Full Code Here

                    List<CoordinatorActionBean> coordActions = null;
                    if (len == 0) {
                        coordActions = new ArrayList<CoordinatorActionBean>();
                    }
                    else {
                        coordActions = jpaService.execute(new CoordJobGetActionsSubsetJPAExecutor(id, filterList,
                                start, len, desc));
                    }
                    coordJob.setActions(coordActions);
                    coordJob.setNumActions(numAction);
                }
View Full Code Here

TOP

Related Classes of org.apache.oozie.executor.jpa.CoordJobGetActionsSubsetJPAExecutor

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.