Class SnapshotManifestReader

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

    public class SnapshotManifestReader
    extends StepExecutionSupport
    implements org.springframework.batch.item.ItemReader<ManifestEntry>
    This class reads a snapshot manifest
    Author:
    Daniel Bernstein Date: Jul 28, 2015
    • Constructor Detail

      • SnapshotManifestReader

        public SnapshotManifestReader​(File manifestFile)
        Parameters:
        manifestFile - an md5 manifest file.
    • Method Detail

      • read

        public ManifestEntry read()
                           throws Exception,
                                  org.springframework.batch.item.UnexpectedInputException,
                                  org.springframework.batch.item.ParseException,
                                  org.springframework.batch.item.NonTransientResourceException
        Specified by:
        read in interface org.springframework.batch.item.ItemReader<ManifestEntry>
        Throws:
        Exception
        org.springframework.batch.item.UnexpectedInputException
        org.springframework.batch.item.ParseException
        org.springframework.batch.item.NonTransientResourceException
      • 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