Class ContentPropertiesWriter

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

public class ContentPropertiesWriter extends StepExecutionSupport implements org.springframework.batch.item.ItemWriter<ContentProperties>, org.springframework.batch.core.ItemWriteListener<ContentProperties>
Author:
Daniel Bernstein Date: Aug 22, 2014
  • Constructor Details

    • ContentPropertiesWriter

      public ContentPropertiesWriter(org.duracloud.client.ContentStore contentStore, String destinationSpaceId)
      Parameters:
      contentStore -
      destinationSpaceId -
  • Method Details

    • 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
    • afterWrite

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

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

      public void onWriteError(Exception exception, List<? extends ContentProperties> items)
      Specified by:
      onWriteError in interface org.springframework.batch.core.ItemWriteListener<ContentProperties>
    • write

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