Class SnapshotContentItemVerifier

java.lang.Object
org.duracloud.snapshot.service.impl.StepExecutionSupport
org.duracloud.snapshot.service.impl.SnapshotContentItemVerifier
All Implemented Interfaces:
org.springframework.batch.core.ItemWriteListener<SnapshotContentItem>, org.springframework.batch.core.StepExecutionListener, org.springframework.batch.core.StepListener, org.springframework.batch.item.ItemWriter<SnapshotContentItem>

public class SnapshotContentItemVerifier extends StepExecutionSupport implements org.springframework.batch.item.ItemWriter<SnapshotContentItem>, org.springframework.batch.core.ItemWriteListener<SnapshotContentItem>
Author:
Daniel Bernstein Date: Jul 29, 2015
  • Constructor Details

    • SnapshotContentItemVerifier

      public SnapshotContentItemVerifier(String restoreId, File manifestFile, String snapshotName, RestoreManager restoreManager)
      Parameters:
      restoreId -
      manifestFile -
      snapshotName -
      restoreManager -
  • Method Details

    • beforeWrite

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

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

      public void onWriteError(Exception exception, List<? extends SnapshotContentItem> items)
      Specified by:
      onWriteError in interface org.springframework.batch.core.ItemWriteListener<SnapshotContentItem>
    • 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 SnapshotContentItem> items) throws Exception
      Specified by:
      write in interface org.springframework.batch.item.ItemWriter<SnapshotContentItem>
      Throws:
      Exception