public class SyncWriter extends Object implements org.springframework.batch.item.ItemWriter<File>, org.springframework.batch.core.StepExecutionListener, org.springframework.batch.core.ItemWriteListener<File>
| 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) |
public 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.StepExecutionListenerpublic void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
beforeStep in interface org.springframework.batch.core.StepExecutionListenerpublic 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.