Class ManifestVerifier

java.lang.Object
org.duracloud.snapshot.service.impl.StepExecutionSupport
org.duracloud.snapshot.service.impl.ManifestVerifier
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 ManifestVerifier extends StepExecutionSupport implements org.springframework.batch.item.ItemWriter<ManifestEntry>, org.springframework.batch.core.ItemWriteListener<ManifestEntry>
This class verifies the manifest entry against the local file system.
Author:
Daniel Bernstein Date: Jul 28, 2015
  • Constructor Details

    • ManifestVerifier

      public ManifestVerifier(String restorationId, File contentDir, RestoreManager restorationManager)
      Parameters:
      restorationId -
      contentDir -
      restorationManager -
  • Method Details

    • 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 exception, 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
    • write

      public void write(List<? extends ManifestEntry> items) throws Exception
      Specified by:
      write in interface org.springframework.batch.item.ItemWriter<ManifestEntry>
      Throws:
      Exception