Class 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 Detail

      • SnapshotContentItemVerifier

        public SnapshotContentItemVerifier​(java.lang.String restoreId,
                                           java.io.File manifestFile,
                                           java.lang.String snapshotName,
                                           RestoreManager restoreManager)
        Parameters:
        restoreId -
        manifestFile -
        snapshotName -
        restoreManager -
    • Method Detail

      • beforeWrite

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

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

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