Examples of SLARegistrationGetOnRestartJPAExecutor


Examples of org.apache.oozie.executor.jpa.sla.SLARegistrationGetOnRestartJPAExecutor

                    if (summaryBean.getEventProcessed() == 7) {
                        historySet.add(jobId);
                        statusPendingCount++;
                    }
                    else if (summaryBean.getEventProcessed() <= 7) {
                        SLARegistrationBean slaRegBean = jpaService.execute(new SLARegistrationGetOnRestartJPAExecutor(
                                jobId));
                        SLACalcStatus slaCalcStatus = new SLACalcStatus(summaryBean, slaRegBean);
                        slaMap.put(jobId, slaCalcStatus);
                        slaPendingCount++;
                    }
View Full Code Here

Examples of org.apache.oozie.executor.jpa.sla.SLARegistrationGetOnRestartJPAExecutor

    public SLACalcStatus get(String jobId) throws JPAExecutorException {
        SLACalcStatus memObj;
        memObj = slaMap.get(jobId);
        if (memObj == null && historySet.contains(jobId)) {
            memObj = new SLACalcStatus(jpaService.execute(new SLASummaryGetJPAExecutor(jobId)),
                    jpaService.execute(new SLARegistrationGetOnRestartJPAExecutor(jobId)));
        }
        return memObj;
    }
View Full Code Here

Examples of org.apache.oozie.executor.jpa.sla.SLARegistrationGetOnRestartJPAExecutor

        List<JsonBean> insert = new ArrayList<JsonBean>();
        insert.add(reg);
        SLACalculationInsertUpdateJPAExecutor slaInsertCmd = new SLACalculationInsertUpdateJPAExecutor(insert, null);
        jpaService.execute(slaInsertCmd);
        assertNotNull(jpaService);
        SLARegistrationGetOnRestartJPAExecutor readCmd = new SLARegistrationGetOnRestartJPAExecutor(jobId);
        SLARegistrationBean bean = jpaService.execute(readCmd);
        assertEquals("dummyMessage", bean.getNotificationMsg());
        assertEquals ("upApps", bean.getUpstreamApps());
        assertEquals ("miss", bean.getAlertEvents());
        assertEquals ("abc@y.com", bean.getAlertContact());
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.