@Override public ExitStatus afterStep(StepExecution stepExecution) { logger.log("all writes to s3 are done"); logger.log(logger.getWrittenFiles() + " files were written"); logger.log( logger.getFailedWrites() > 0 ? logger.getFailedWrites() + " files failed to write" : "there were no write failures"); return stepExecution.getExitStatus(); }
@Override public void beforeStep(StepExecution stepExecution) { logger.logWithDate("starting write to s3"); }