Class SnapshotManifestReader
java.lang.Object
org.duracloud.snapshot.service.impl.StepExecutionSupport
org.duracloud.snapshot.service.impl.SnapshotManifestReader
- All Implemented Interfaces:
org.springframework.batch.core.StepExecutionListener,org.springframework.batch.core.StepListener,org.springframework.batch.item.ItemReader<ManifestEntry>
public class SnapshotManifestReader
extends StepExecutionSupport
implements org.springframework.batch.item.ItemReader<ManifestEntry>
This class reads a snapshot manifest
- Author:
- Daniel Bernstein Date: Jul 28, 2015
-
Field Summary
Fields inherited from class org.duracloud.snapshot.service.impl.StepExecutionSupport
ERRORS_KEY, ITEMS_READ_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeStep(org.springframework.batch.core.StepExecution stepExecution) read()Methods inherited from class org.duracloud.snapshot.service.impl.StepExecutionSupport
addError, addToItemsRead, addToLong, afterStep, clearErrors, failExecution, getErrors, getExecutionContext, getItemsRead, getLongValue, getStepExecution, resetContextState, setIsTest, skipLinesAlreadyRead, verifySpace
-
Constructor Details
-
SnapshotManifestReader
- Parameters:
manifestFile- an md5 manifest file.
-
-
Method Details
-
read
public ManifestEntry read() throws Exception, org.springframework.batch.item.UnexpectedInputException, org.springframework.batch.item.ParseException, org.springframework.batch.item.NonTransientResourceException- Specified by:
readin interfaceorg.springframework.batch.item.ItemReader<ManifestEntry>- Throws:
Exceptionorg.springframework.batch.item.UnexpectedInputExceptionorg.springframework.batch.item.ParseExceptionorg.springframework.batch.item.NonTransientResourceException
-
beforeStep
public void beforeStep(org.springframework.batch.core.StepExecution stepExecution) - Specified by:
beforeStepin interfaceorg.springframework.batch.core.StepExecutionListener- Overrides:
beforeStepin classStepExecutionSupport
-