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