Examples of JPAExecutorException


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

            q.setParameter("lastModifiedTime", ts);
            ssBean = q.getResultList();
            return ssBean;
        }
        catch (Exception e) {
            throw new JPAExecutorException(ErrorCode.E0603, e.getMessage(), e);
        }
    }
View Full Code Here

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

            Query q = em.createNamedQuery("GET_SLA_REG_ALL");
            q.setParameter("id", id);
            regBeans = q.getResultList();
        }
        catch (Exception e) {
            throw new JPAExecutorException(ErrorCode.E0603, e.getMessage(), e);
        }
        SLARegistrationBean slaRegBean = null;
        if (regBeans != null && regBeans.size() > 0) {
            slaRegBean = regBeans.get(0);
            slaRegBean.setSlaConfig(slaRegBean.getSlaConfig());
View Full Code Here

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

            q.setParameter("id", id);
            Object[] obj = (Object[]) q.getSingleResult();
            return getBeanFromObj(obj);
        }
        catch (Exception e) {
            throw new JPAExecutorException(ErrorCode.E0603, e.getMessage(), e);
        }
    }
View Full Code Here

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

            q.setParameter("actualDuration", slaSummaryBean.getActualDuration());
            q.executeUpdate();
            return null;
        }
        catch (Exception e) {
            throw new JPAExecutorException(ErrorCode.E0603, e.getMessage(), e);
        }
    }
View Full Code Here

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

            q = em.createNamedQuery("GET_SLA_SUMMARY");
            q.setParameter("id", id);
            ssBeans = q.getResultList();
        }
        catch (Exception e) {
            throw new JPAExecutorException(ErrorCode.E0603, e.getMessage(), e);
        }
        SLASummaryBean slaSummaryBean = null;
        if (ssBeans != null && ssBeans.size() > 0) {
            slaSummaryBean = ssBeans.get(0);
        }
View Full Code Here

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

                }
            }
            return null;
        }
        catch (Exception e) {
            throw new JPAExecutorException(ErrorCode.E0603, e.getMessage(), e);
        }
    }
View Full Code Here

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

                        }
                        catch (IllegalStateException e) {
                            throw new StoreException(ErrorCode.E0601, e.getMessage(), e);
                        }
                        catch (JPAExecutorException e) {
                            throw new JPAExecutorException(ErrorCode.E0610, e.getMessage(), e);
                        }
                        return seBeans;
                    }
                });
        List<SLAEventBean> eventList = new ArrayList<SLAEventBean>();
View Full Code Here

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

            LOG.trace("SLA Status Event - Job:" + jobId + " Status:" + slaCalc.getSLAStatus());
        }
        else if (historySet.contains(jobId)) {
            slaInfo = jpaService.execute(new SLASummaryGetJPAExecutor(jobId));
            if (slaInfo == null) {
                throw new JPAExecutorException(ErrorCode.E0604, jobId);
            }
            slaInfo.setJobStatus(jobStatus);
            slaInfo.setActualStart(startTime);
            slaInfo.setActualEnd(endTime);
            if (endTime != null) {
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.