use of org.apache.oozie.executor.jpa.SLAEventsGetForFilterJPAExecutor in project oozie by apache.
the class SLAEventsXCommand method execute.
@Override
protected List<SLAEventBean> execute() throws CommandException {
try {
JPAService jpaService = Services.get().get(JPAService.class);
List<SLAEventBean> slaEventList = null;
long[] lastSeqId = new long[1];
if (jpaService != null) {
slaEventList = jpaService.execute(new SLAEventsGetForFilterJPAExecutor(seqId, maxNoEvents, filter, lastSeqId));
} else {
LOG.error(ErrorCode.E0610);
}
setLastSeqId(lastSeqId[0]);
return slaEventList;
} catch (XException ex) {
throw new CommandException(ex);
}
}
Aggregations