Examples of JPAExecutorException


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

            }
            q.setMaxResults(numMaxResults);
            ssBean = (List<SLASummaryBean>) q.getResultList();
        }
        catch (Exception e) {
            throw new JPAExecutorException(ErrorCode.E0603, e.getMessage(), e);
        }
        return ssBean;
    }
View Full Code Here

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

        boolean hasSla = false;
        if (slaCalc == null) {
            if (historySet.contains(jobId)) {
                slaInfo = SLASummaryQueryExecutor.getInstance().get(SLASummaryQuery.GET_SLA_SUMMARY, 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

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

                em.getTransaction().commit();
            }
            return t;
        }
        catch (PersistenceException e) {
            throw new JPAExecutorException(ErrorCode.E0603, e);
        }
        finally {
            cron.stop();
            if (instr != null) {
                instr.addCron(INSTRUMENTATION_GROUP_JPA, executor.getName(), cron);
View Full Code Here

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

                em.getTransaction().commit();
            }
            return ret;
        }
        catch (PersistenceException e) {
            throw new JPAExecutorException(ErrorCode.E0603, e);
        }
        finally {
            processFinally(em, cron, namedQueryName, true);
        }
    }
View Full Code Here

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

                }
                em.getTransaction().commit();
            }
        }
        catch (PersistenceException e) {
            throw new JPAExecutorException(ErrorCode.E0603, e);
        }
        finally {
            processFinally(em, cron, "batchqueryexecutor", true);
        }
    }
View Full Code Here

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

                em.getTransaction().commit();
            }
            return t;
        }
        catch (PersistenceException e) {
            throw new JPAExecutorException(ErrorCode.E0603, e);
        }
        finally {
            cron.stop();
            if (instr != null) {
                instr.addCron(INSTRUMENTATION_GROUP, executor.getName(), cron);
View Full Code Here

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

            }
            q.setMaxResults(numMaxResults);
            ssBean = (List<SLASummaryBean>) q.getResultList();
        }
        catch (Exception e) {
            throw new JPAExecutorException(ErrorCode.E0603, e.getMessage(), e);
        }
        return ssBean;
    }
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.