Class SpaceVerifier

  • All Implemented Interfaces:
    org.springframework.batch.core.ItemWriteListener<ManifestEntry>, org.springframework.batch.core.StepExecutionListener, org.springframework.batch.core.StepListener, org.springframework.batch.item.ItemWriter<ManifestEntry>

    public class SpaceVerifier
    extends StepExecutionSupport
    implements org.springframework.batch.item.ItemWriter<ManifestEntry>, org.springframework.batch.core.ItemWriteListener<ManifestEntry>
    This class verifies that the manifest entry's checksum matches the checksum of the item in the destination space.
    Author:
    Daniel Bernstein Date: Jul 29, 2015
    • Method Detail

      • beforeWrite

        public void beforeWrite​(List<? extends ManifestEntry> items)
        Specified by:
        beforeWrite in interface org.springframework.batch.core.ItemWriteListener<ManifestEntry>
      • afterWrite

        public void afterWrite​(List<? extends ManifestEntry> items)
        Specified by:
        afterWrite in interface org.springframework.batch.core.ItemWriteListener<ManifestEntry>
      • onWriteError

        public void onWriteError​(Exception ex,
                                 List<? extends ManifestEntry> items)
        Specified by:
        onWriteError in interface org.springframework.batch.core.ItemWriteListener<ManifestEntry>
      • beforeStep

        public void beforeStep​(org.springframework.batch.core.StepExecution stepExecution)
        Specified by:
        beforeStep in interface org.springframework.batch.core.StepExecutionListener
        Overrides:
        beforeStep in class StepExecutionSupport
      • afterStep

        public org.springframework.batch.core.ExitStatus afterStep​(org.springframework.batch.core.StepExecution stepExecution)
        Specified by:
        afterStep in interface org.springframework.batch.core.StepExecutionListener
        Overrides:
        afterStep in class StepExecutionSupport