public class ManifestVerifier extends StepExecutionSupport implements org.springframework.batch.item.ItemWriter<ManifestEntry>, org.springframework.batch.core.ItemWriteListener<ManifestEntry>
ERRORS_KEY, ITEMS_READ_KEY| Constructor and Description |
|---|
ManifestVerifier(String restorationId,
File contentDir,
RestoreManager restorationManager) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
afterWrite(List<? extends ManifestEntry> items) |
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
beforeWrite(List<? extends ManifestEntry> items) |
void |
onWriteError(Exception exception,
List<? extends ManifestEntry> items) |
void |
write(List<? extends ManifestEntry> items) |
addError, addToItemsRead, addToLong, clearErrors, failExecution, getErrors, getExecutionContext, getItemsRead, getLongValue, getStepExecution, resetContextState, setIsTest, skipLinesAlreadyRead, verifySpacepublic ManifestVerifier(String restorationId, File contentDir, RestoreManager restorationManager)
restorationId - contentDir - restorationManager - public void beforeWrite(List<? extends ManifestEntry> items)
beforeWrite in interface org.springframework.batch.core.ItemWriteListener<ManifestEntry>public void afterWrite(List<? extends ManifestEntry> items)
afterWrite in interface org.springframework.batch.core.ItemWriteListener<ManifestEntry>public void onWriteError(Exception exception, List<? extends ManifestEntry> items)
onWriteError in interface org.springframework.batch.core.ItemWriteListener<ManifestEntry>public void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
beforeStep in interface org.springframework.batch.core.StepExecutionListenerbeforeStep in class StepExecutionSupportpublic org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
afterStep in interface org.springframework.batch.core.StepExecutionListenerafterStep in class StepExecutionSupportpublic void write(List<? extends ManifestEntry> items) throws Exception
write in interface org.springframework.batch.item.ItemWriter<ManifestEntry>ExceptionCopyright © 2014–2015 DuraSpace. All rights reserved.