Class ContentPropertiesWriter
java.lang.Object
org.duracloud.snapshot.service.impl.StepExecutionSupport
org.duracloud.snapshot.service.impl.ContentPropertiesWriter
- All Implemented Interfaces:
org.springframework.batch.core.ItemWriteListener<ContentProperties>,org.springframework.batch.core.StepExecutionListener,org.springframework.batch.core.StepListener,org.springframework.batch.item.ItemWriter<ContentProperties>
public class ContentPropertiesWriter
extends StepExecutionSupport
implements org.springframework.batch.item.ItemWriter<ContentProperties>, org.springframework.batch.core.ItemWriteListener<ContentProperties>
- Author:
- Daniel Bernstein Date: Aug 22, 2014
-
Field Summary
Fields inherited from class org.duracloud.snapshot.service.impl.StepExecutionSupport
ERRORS_KEY, ITEMS_READ_KEY -
Constructor Summary
ConstructorsConstructorDescriptionContentPropertiesWriter(org.duracloud.client.ContentStore contentStore, String destinationSpaceId) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.batch.core.ExitStatusafterStep(org.springframework.batch.core.StepExecution stepExecution) voidafterWrite(List<? extends ContentProperties> items) voidbeforeWrite(List<? extends ContentProperties> items) voidonWriteError(Exception exception, List<? extends ContentProperties> items) voidwrite(List<? extends ContentProperties> items) Methods inherited from class org.duracloud.snapshot.service.impl.StepExecutionSupport
addError, addToItemsRead, addToLong, beforeStep, clearErrors, failExecution, getErrors, getExecutionContext, getItemsRead, getLongValue, getStepExecution, resetContextState, setIsTest, skipLinesAlreadyRead, verifySpace
-
Constructor Details
-
ContentPropertiesWriter
public ContentPropertiesWriter(org.duracloud.client.ContentStore contentStore, String destinationSpaceId) - Parameters:
contentStore-destinationSpaceId-
-
-
Method Details
-
afterStep
public org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution) - Specified by:
afterStepin interfaceorg.springframework.batch.core.StepExecutionListener- Overrides:
afterStepin classStepExecutionSupport
-
afterWrite
- Specified by:
afterWritein interfaceorg.springframework.batch.core.ItemWriteListener<ContentProperties>
-
beforeWrite
- Specified by:
beforeWritein interfaceorg.springframework.batch.core.ItemWriteListener<ContentProperties>
-
onWriteError
- Specified by:
onWriteErrorin interfaceorg.springframework.batch.core.ItemWriteListener<ContentProperties>
-
write
- Specified by:
writein interfaceorg.springframework.batch.item.ItemWriter<ContentProperties>- Throws:
Exception
-