Class ManifestVerifier
java.lang.Object
org.duracloud.snapshot.service.impl.StepExecutionSupport
org.duracloud.snapshot.service.impl.ManifestVerifier
- All Implemented Interfaces:
org.springframework.batch.core.ItemWriteListener<ManifestEntry>,org.springframework.batch.core.StepExecutionListener,org.springframework.batch.core.StepListener,org.springframework.batch.item.ItemWriter<ManifestEntry>
public class ManifestVerifier
extends StepExecutionSupport
implements org.springframework.batch.item.ItemWriter<ManifestEntry>, org.springframework.batch.core.ItemWriteListener<ManifestEntry>
This class verifies the manifest entry against the local file system.
- Author:
- Daniel Bernstein Date: Jul 28, 2015
-
Field Summary
Fields inherited from class org.duracloud.snapshot.service.impl.StepExecutionSupport
ERRORS_KEY, ITEMS_READ_KEY -
Constructor Summary
ConstructorsConstructorDescriptionManifestVerifier(String restorationId, File contentDir, RestoreManager restorationManager) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.batch.core.ExitStatusafterStep(org.springframework.batch.core.StepExecution stepExecution) voidafterWrite(List<? extends ManifestEntry> items) voidbeforeStep(org.springframework.batch.core.StepExecution stepExecution) voidbeforeWrite(List<? extends ManifestEntry> items) voidonWriteError(Exception exception, List<? extends ManifestEntry> items) voidwrite(List<? extends ManifestEntry> 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
-
ManifestVerifier
- Parameters:
restorationId-contentDir-restorationManager-
-
-
Method Details
-
beforeWrite
- Specified by:
beforeWritein interfaceorg.springframework.batch.core.ItemWriteListener<ManifestEntry>
-
afterWrite
- Specified by:
afterWritein interfaceorg.springframework.batch.core.ItemWriteListener<ManifestEntry>
-
onWriteError
- Specified by:
onWriteErrorin interfaceorg.springframework.batch.core.ItemWriteListener<ManifestEntry>
-
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<ManifestEntry>- Throws:
Exception
-