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
ConstructorsConstructorDescriptionSnapshotContentItemVerifier(String restoreId, File manifestFile, String snapshotName, RestoreManager restoreManager) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.batch.core.ExitStatusafterStep(org.springframework.batch.core.StepExecution stepExecution) voidafterWrite(List<? extends SnapshotContentItem> items) voidbeforeStep(org.springframework.batch.core.StepExecution stepExecution) voidbeforeWrite(List<? extends SnapshotContentItem> items) voidonWriteError(Exception exception, List<? extends SnapshotContentItem> items) voidwrite(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 Details
-
SnapshotContentItemVerifier
public SnapshotContentItemVerifier(String restoreId, File manifestFile, String snapshotName, RestoreManager restoreManager) - Parameters:
restoreId-manifestFile-snapshotName-restoreManager-
-
-
Method Details
-
beforeWrite
- Specified by:
beforeWritein interfaceorg.springframework.batch.core.ItemWriteListener<SnapshotContentItem>
-
afterWrite
- Specified by:
afterWritein interfaceorg.springframework.batch.core.ItemWriteListener<SnapshotContentItem>
-
onWriteError
- 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
- Specified by:
writein interfaceorg.springframework.batch.item.ItemWriter<SnapshotContentItem>- Throws:
Exception
-