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
Constructors Constructor Description ManifestVerifier(java.lang.String restorationId, java.io.File contentDir, RestoreManager restorationManager)
-
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 ManifestEntry> items)voidbeforeStep(org.springframework.batch.core.StepExecution stepExecution)voidbeforeWrite(java.util.List<? extends ManifestEntry> items)voidonWriteError(java.lang.Exception exception, java.util.List<? extends ManifestEntry> items)voidwrite(java.util.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 Detail
-
ManifestVerifier
public ManifestVerifier(java.lang.String restorationId, java.io.File contentDir, RestoreManager restorationManager)- Parameters:
restorationId-contentDir-restorationManager-
-
-
Method Detail
-
beforeWrite
public void beforeWrite(java.util.List<? extends ManifestEntry> items)
- Specified by:
beforeWritein interfaceorg.springframework.batch.core.ItemWriteListener<ManifestEntry>
-
afterWrite
public void afterWrite(java.util.List<? extends ManifestEntry> items)
- Specified by:
afterWritein interfaceorg.springframework.batch.core.ItemWriteListener<ManifestEntry>
-
onWriteError
public void onWriteError(java.lang.Exception exception, java.util.List<? extends ManifestEntry> items)- 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
public void write(java.util.List<? extends ManifestEntry> items) throws java.lang.Exception
- Specified by:
writein interfaceorg.springframework.batch.item.ItemWriter<ManifestEntry>- Throws:
java.lang.Exception
-
-