@Override public void onRetryWriteException(List<Object> items, Exception ex) throws Exception { try { retryWriteListener.onRetryWriteException(items, ex); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public boolean isComplete(RepeatContext context) { try { isComplete = policy.isReadyToCheckpoint(); return isComplete; } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public RepeatContext start(RepeatContext parent) { try { policy.beginCheckpoint(); } catch (Exception e) { throw new BatchRuntimeException(e); } return parent; }
@SuppressWarnings("unchecked") @Override public void onWriteError(Exception exception, List<? extends S> items) { try { delegate.onWriteError((List<Object>) items, exception); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onReadError(Exception ex) { try { delegate.onReadError(ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void onRetryProcessException(Object item, Exception ex) throws Exception { try { retryProcessListener.onRetryProcessException(item, ex); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@SuppressWarnings("unchecked") @Override public void afterWrite(List<? extends S> items) { try { delegate.afterWrite((List<Object>) items); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void beforeJob(JobExecution jobExecution) { try { delegate.beforeJob(); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public boolean isComplete(RepeatContext context, RepeatStatus result) { try { isComplete = policy.isReadyToCheckpoint(); return isComplete; } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void stop() { try { batchlet.stop(); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void afterProcess(T item, @Nullable S result) { try { delegate.afterProcess(item, result); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void afterRead(T item) { try { delegate.afterRead(item); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void onRetryReadException(Exception ex) throws Exception { try { retryReadListener.onRetryReadException(ex); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void beforeStep(StepExecution stepExecution) { try { delegate.beforeStep(); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void onRetryReadException(Exception ex) throws Exception { try { retryReadListener.onRetryReadException(ex); } catch (Exception e) { throw new BatchRuntimeException(e); } } }
@Override public void beforeProcess(T item) { try { delegate.beforeProcess(item); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public void onProcessError(T item, Exception e) { try { delegate.onProcessError(item, e); } catch (Exception e1) { throw new BatchRuntimeException(e1); } } }
@Override public void beforeRead() { try { delegate.beforeRead(); } catch (Exception e) { throw new BatchRuntimeException(e); } }
@Override public ExitStatus afterStep(StepExecution stepExecution) { try { delegate.afterStep(); } catch (Exception e) { throw new BatchRuntimeException(e); } return stepExecution.getExitStatus(); } }
@Override public final BatchRuntimeException noBatchEnvironmentFound(final ClassLoader cl) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), noBatchEnvironmentFound$str(), cl)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String unauthorized = "WFLYBATCH000020: Permission denied. User %s does not have %s permissions.";