public class SyncWriter extends StepExecutionSupport implements org.springframework.batch.item.ItemWriter<File>, org.springframework.batch.core.ItemWriteListener<File>
ERRORS_KEY, ITEMS_READ_KEY| Constructor and Description |
|---|
SyncWriter(String restorationId,
File watchDir,
org.duracloud.sync.endpoint.SyncEndpoint endpoint,
org.duracloud.client.ContentStore contentStore,
String destinationSpaceId,
RestoreManager restoreManager) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
afterWrite(List<? extends File> items) |
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
beforeWrite(List<? extends File> items) |
void |
onWriteError(Exception ex,
List<? extends File> items) |
void |
write(List<? extends File> items) |
addError, addToItemsRead, addToLong, clearErrors, failExecution, getErrors, getExecutionContext, getItemsRead, getLongValue, getStepExecution, resetContextState, setIsTest, skipLinesAlreadyRead, verifySpacepublic SyncWriter(String restorationId, File watchDir, org.duracloud.sync.endpoint.SyncEndpoint endpoint, org.duracloud.client.ContentStore contentStore, String destinationSpaceId, RestoreManager restoreManager)
restorationId - watchDir - endpoint - contentStore - destinationSpaceId - restoreManager - public org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
afterStep in interface org.springframework.batch.core.StepExecutionListenerafterStep in class StepExecutionSupportpublic void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
beforeStep in interface org.springframework.batch.core.StepExecutionListenerbeforeStep in class StepExecutionSupportpublic void beforeWrite(List<? extends File> items)
beforeWrite in interface org.springframework.batch.core.ItemWriteListener<File>public void afterWrite(List<? extends File> items)
afterWrite in interface org.springframework.batch.core.ItemWriteListener<File>Copyright © 2014–2015 DuraSpace. All rights reserved.