public class SnapshotContentItemVerifier extends StepExecutionSupport implements org.springframework.batch.item.ItemWriter<SnapshotContentItem>, org.springframework.batch.core.ItemWriteListener<SnapshotContentItem>
ERRORS_KEY, ITEMS_READ_KEY| Constructor and Description |
|---|
SnapshotContentItemVerifier(String restoreId,
File manifestFile,
String snapshotName,
RestoreManager restoreManager) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
afterWrite(List<? extends SnapshotContentItem> items) |
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
beforeWrite(List<? extends SnapshotContentItem> items) |
void |
onWriteError(Exception exception,
List<? extends SnapshotContentItem> items) |
void |
write(List<? extends SnapshotContentItem> items) |
addError, addToItemsRead, addToLong, clearErrors, failExecution, getErrors, getExecutionContext, getItemsRead, getLongValue, getStepExecution, resetContextState, setIsTest, skipLinesAlreadyRead, verifySpacepublic SnapshotContentItemVerifier(String restoreId, File manifestFile, String snapshotName, RestoreManager restoreManager)
restoreId - manifestFile - snapshotName - restoreManager - public void beforeWrite(List<? extends SnapshotContentItem> items)
beforeWrite in interface org.springframework.batch.core.ItemWriteListener<SnapshotContentItem>public void afterWrite(List<? extends SnapshotContentItem> items)
afterWrite in interface org.springframework.batch.core.ItemWriteListener<SnapshotContentItem>public void onWriteError(Exception exception, List<? extends SnapshotContentItem> items)
onWriteError in interface org.springframework.batch.core.ItemWriteListener<SnapshotContentItem>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 SnapshotContentItem> items) throws Exception
write in interface org.springframework.batch.item.ItemWriter<SnapshotContentItem>ExceptionCopyright © 2014–2017 DuraSpace. All rights reserved.