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
-
-
Field Summary
-
Fields inherited from class org.duracloud.snapshot.service.impl.StepExecutionSupport
ERRORS_KEY, ITEMS_READ_KEY
-
-
Constructor Summary
Constructors Constructor Description SnapshotContentItemVerifier(java.lang.String restoreId, java.io.File manifestFile, java.lang.String snapshotName, RestoreManager restoreManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.batch.core.ExitStatusafterStep(org.springframework.batch.core.StepExecution stepExecution)voidafterWrite(java.util.List<? extends SnapshotContentItem> items)voidbeforeStep(org.springframework.batch.core.StepExecution stepExecution)voidbeforeWrite(java.util.List<? extends SnapshotContentItem> items)voidonWriteError(java.lang.Exception exception, java.util.List<? extends SnapshotContentItem> items)voidwrite(java.util.List<? extends SnapshotContentItem> items)-
Methods inherited from class org.duracloud.snapshot.service.impl.StepExecutionSupport
addError, addToItemsRead, addToLong, clearErrors, failExecution, getErrors, getExecutionContext, getItemsRead, getLongValue, getStepExecution, resetContextState, setIsTest, skipLinesAlreadyRead, verifySpace
-
-
-
-
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:
beforeWritein interfaceorg.springframework.batch.core.ItemWriteListener<SnapshotContentItem>
-
afterWrite
public void afterWrite(java.util.List<? extends SnapshotContentItem> items)
- Specified by:
afterWritein interfaceorg.springframework.batch.core.ItemWriteListener<SnapshotContentItem>
-
onWriteError
public void onWriteError(java.lang.Exception exception, java.util.List<? extends SnapshotContentItem> items)- Specified by:
onWriteErrorin interfaceorg.springframework.batch.core.ItemWriteListener<SnapshotContentItem>
-
beforeStep
public void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
- Specified by:
beforeStepin interfaceorg.springframework.batch.core.StepExecutionListener- Overrides:
beforeStepin classStepExecutionSupport
-
afterStep
public org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
- Specified by:
afterStepin interfaceorg.springframework.batch.core.StepExecutionListener- Overrides:
afterStepin classStepExecutionSupport
-
write
public void write(java.util.List<? extends SnapshotContentItem> items) throws java.lang.Exception
- Specified by:
writein interfaceorg.springframework.batch.item.ItemWriter<SnapshotContentItem>- Throws:
java.lang.Exception
-
-