use of org.apache.oozie.executor.jpa.CoordJobGetActionsNotCompletedJPAExecutor in project oozie by apache.
the class CoordKillXCommand method loadState.
@Override
protected void loadState() throws CommandException {
try {
jpaService = Services.get().get(JPAService.class);
if (jpaService != null) {
this.coordJob = CoordJobQueryExecutor.getInstance().get(CoordJobQuery.GET_COORD_JOB_SUSPEND_KILL, jobId);
// Get actions which are not succeeded, failed, timed out or killed
this.actionList = jpaService.execute(new CoordJobGetActionsNotCompletedJPAExecutor(jobId));
prevStatus = coordJob.getStatus();
LogUtils.setLogInfo(coordJob);
} else {
throw new CommandException(ErrorCode.E0610);
}
} catch (XException ex) {
throw new CommandException(ex);
}
}
Aggregations