Package org.apache.oozie

Examples of org.apache.oozie.BundleJobInfo


        list.add("RUNNING");
        list.add("PREP");
        filter.put(OozieClient.FILTER_STATUS, list);

        BundleJobsXCommand bundlesGetCmd = new BundleJobsXCommand(filter, 1, 20);
        BundleJobInfo ret = bundlesGetCmd.call();
        assertNotNull(ret);
        assertEquals(4, ret.getBundleJobs().size());
    }
View Full Code Here


        List<String> list = new ArrayList<String>();
        list.add(getTestGroup());
        filter.put(OozieClient.FILTER_GROUP, list);

        BundleJobsXCommand bundlesGetCmd = new BundleJobsXCommand(filter, 1, 20);
        BundleJobInfo ret = bundlesGetCmd.call();
        assertNotNull(ret);
        assertEquals(4, ret.getBundleJobs().size());
    }
View Full Code Here

        List<String> list = new ArrayList<String>();
        list.add("BUNDLE-TEST");
        filter.put(OozieClient.FILTER_NAME, list);

        BundleJobsXCommand bundlesGetCmd = new BundleJobsXCommand(filter, 1, 20);
        BundleJobInfo ret = bundlesGetCmd.call();
        assertNotNull(ret);
        assertEquals(6, ret.getBundleJobs().size());
    }
View Full Code Here

        List<String> list = new ArrayList<String>();
        list.add(getTestUser());
        filter.put(OozieClient.FILTER_USER, list);

        BundleJobsXCommand bundlesGetCmd = new BundleJobsXCommand(filter, 1, 20);
        BundleJobInfo ret = bundlesGetCmd.call();
        assertNotNull(ret);
        assertEquals(6, ret.getBundleJobs().size());
    }
View Full Code Here

        List<String> list2 = new ArrayList<String>();
        list2.add("KILLED");
        filter.put(OozieClient.FILTER_STATUS, list2);

        BundleJobsXCommand bundlesGetCmd = new BundleJobsXCommand(filter, 1, 20);
        BundleJobInfo ret = bundlesGetCmd.call();
        assertNotNull(ret);
        assertEquals(1, ret.getBundleJobs().size());
    }
View Full Code Here

            int len = (lenStr != null) ? Integer.parseInt(lenStr) : 50;
            len = (len < 1) ? 50 : len;

            BundleEngine bundleEngine = Services.get().get(BundleEngineService.class).getBundleEngine(getUser(request),
                    getAuthToken(request));
            BundleJobInfo jobs = bundleEngine.getBundleJobs(filter, start, len);
            List<BundleJobBean> jsonJobs = jobs.getBundleJobs();

            json.put(JsonTags.BUNDLE_JOBS, BundleJobBean.toJSONArray(jsonJobs));
            json.put(JsonTags.BUNDLE_JOB_TOTAL, jobs.getTotal());
            json.put(JsonTags.BUNDLE_JOB_OFFSET, jobs.getStart());
            json.put(JsonTags.BUNDLE_JOB_LEN, jobs.getLen());

        }
        catch (BundleEngineException ex) {
            throw new XServletException(HttpServletResponse.SC_BAD_REQUEST, ex);
        }
View Full Code Here

            int len = (lenStr != null) ? Integer.parseInt(lenStr) : 50;
            len = (len < 1) ? 50 : len;

            BundleEngine bundleEngine = Services.get().get(BundleEngineService.class).getBundleEngine(getUser(request),
                    getAuthToken(request));
            BundleJobInfo jobs = bundleEngine.getBundleJobs(filter, start, len);
            List<BundleJobBean> jsonJobs = jobs.getBundleJobs();

            json.put(JsonTags.BUNDLE_JOBS, BundleJobBean.toJSONArray(jsonJobs, timeZoneId));
            json.put(JsonTags.BUNDLE_JOB_TOTAL, jobs.getTotal());
            json.put(JsonTags.BUNDLE_JOB_OFFSET, jobs.getStart());
            json.put(JsonTags.BUNDLE_JOB_LEN, jobs.getLen());

        }
        catch (BundleEngineException ex) {
            throw new XServletException(HttpServletResponse.SC_BAD_REQUEST, ex);
        }
View Full Code Here

            int len = (lenStr != null) ? Integer.parseInt(lenStr) : 50;
            len = (len < 1) ? 50 : len;

            BundleEngine bundleEngine = Services.get().get(BundleEngineService.class).getBundleEngine(getUser(request),
                    getAuthToken(request));
            BundleJobInfo jobs = bundleEngine.getBundleJobs(filter, start, len);
            List<BundleJobBean> jsonJobs = jobs.getBundleJobs();

            json.put(JsonTags.BUNDLE_JOBS, BundleJobBean.toJSONArray(jsonJobs));
            json.put(JsonTags.BUNDLE_JOB_TOTAL, jobs.getTotal());
            json.put(JsonTags.BUNDLE_JOB_OFFSET, jobs.getStart());
            json.put(JsonTags.BUNDLE_JOB_LEN, jobs.getLen());

        }
        catch (BundleEngineException ex) {
            throw new XServletException(HttpServletResponse.SC_BAD_REQUEST, ex);
        }
View Full Code Here

        list.add("RUNNING");
        list.add("PREP");
        filter.put(OozieClient.FILTER_STATUS, list);

        BundleJobInfoGetJPAExecutor bundleInfoGetCmd = new BundleJobInfoGetJPAExecutor(filter, 1, 20);
        BundleJobInfo ret = jpaService.execute(bundleInfoGetCmd);
        assertNotNull(ret);
        assertEquals(2, ret.getBundleJobs().size());
    }
View Full Code Here

        List<String> list = new ArrayList<String>();
        list.add(getTestGroup());
        filter.put(OozieClient.FILTER_GROUP, list);

        BundleJobInfoGetJPAExecutor bundleInfoGetCmd = new BundleJobInfoGetJPAExecutor(filter, 1, 20);
        BundleJobInfo ret = jpaService.execute(bundleInfoGetCmd);
        assertNotNull(ret);
        assertEquals(2, ret.getBundleJobs().size());
    }
View Full Code Here

TOP

Related Classes of org.apache.oozie.BundleJobInfo

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.