throw new JobExecutionNotMostRecentException("The requested JobExecution to restart was not the most recently run");
@Override public final JobExecutionNotMostRecentException jobExecutionNotMostRecentException(final long jobExecutionId, final long jobInstanceId) { final JobExecutionNotMostRecentException result = new JobExecutionNotMostRecentException(String.format(getLoggingLocale(), jobExecutionNotMostRecentException$str(), jobExecutionId, jobInstanceId)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String jobExecutionNotRunningException = "JBERET000612: Job execution %s has batch status %s, and is not running.";
private static void validateJobExecutionIsMostRecent(final PersistenceManagerService persistenceManagerService, final long jobInstanceId, final long executionId) throws JobExecutionNotMostRecentException { final long mostRecentExecutionId = persistenceManagerService.getMostRecentExecutionId(jobInstanceId); if (mostRecentExecutionId != executionId) { throw new JobExecutionNotMostRecentException("ExecutionId: " + executionId + " is not the most recent execution."); } }
private static void validateJobExecutionIsMostRecent(long jobInstanceId, long executionId) throws JobExecutionNotMostRecentException { long mostRecentExecutionId = _persistenceManagementService.getMostRecentExecutionId(jobInstanceId); if ( mostRecentExecutionId != executionId ) { String message = "ExecutionId: " + executionId + " is not the most recent execution."; logger.warning(message); throw new JobExecutionNotMostRecentException(message); } }
private static void validateJobExecutionIsMostRecent(long jobInstanceId, long executionId) throws JobExecutionNotMostRecentException { long mostRecentExecutionId = _persistenceManagementService.getMostRecentExecutionId(jobInstanceId); if ( mostRecentExecutionId != executionId ) { String message = "ExecutionId: " + executionId + " is not the most recent execution."; logger.warning(message); throw new JobExecutionNotMostRecentException(message); } }
private void validateJobExecutionIsMostRecent() throws JobExecutionNotMostRecentException { long mostRecentExecutionId = getPersistenceManagerService().getJobExecutionIdMostRecent(jobInstance.getInstanceId()); if (mostRecentExecutionId != previousExecutionId) { String message = "ExecutionId: " + previousExecutionId + " is not the most recent execution."; throw new JobExecutionNotMostRecentException(message); } }
throw new JobExecutionNotMostRecentException("The requested JobExecution to restart was not the most recently run");
throw new JobExecutionNotMostRecentException("The requested JobExecution to restart was not the most recently run");
throw new JobExecutionNotMostRecentException("The requested JobExecution to restart was not the most recently run");