Class SpaceVerifier
java.lang.Object
org.duracloud.snapshot.service.impl.StepExecutionSupport
org.duracloud.snapshot.service.impl.SpaceVerifier
- All Implemented Interfaces:
org.springframework.batch.core.ItemWriteListener<ManifestEntry>,org.springframework.batch.core.StepExecutionListener,org.springframework.batch.core.StepListener,org.springframework.batch.item.ItemWriter<ManifestEntry>
public class SpaceVerifier
extends StepExecutionSupport
implements org.springframework.batch.item.ItemWriter<ManifestEntry>, org.springframework.batch.core.ItemWriteListener<ManifestEntry>
This class verifies that the manifest entry's checksum matches the checksum
of the item in the destination space.
- Author:
- Daniel Bernstein Date: Jul 29, 2015
-
Field Summary
Fields inherited from class org.duracloud.snapshot.service.impl.StepExecutionSupport
ERRORS_KEY, ITEMS_READ_KEY -
Constructor Summary
ConstructorsConstructorDescriptionSpaceVerifier(String restoreId, SpaceManifestSnapshotManifestVerifier verifier, String spaceId, RestoreManager restoreManager) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.batch.core.ExitStatusafterStep(org.springframework.batch.core.StepExecution stepExecution) voidafterWrite(List<? extends ManifestEntry> items) voidbeforeStep(org.springframework.batch.core.StepExecution stepExecution) voidbeforeWrite(List<? extends ManifestEntry> items) voidonWriteError(Exception ex, List<? extends ManifestEntry> items) voidwrite(List<? extends ManifestEntry> items) Methods inherited from class org.duracloud.snapshot.service.impl.StepExecutionSupport
addError, addToItemsRead, addToLong, clearErrors, failExecution, getErrors, getExecutionContext, getItemsRead, getLongValue, getStepExecution, resetContextState, setIsTest, skipLinesAlreadyRead, verifySpace
-
Constructor Details
-
SpaceVerifier
public SpaceVerifier(String restoreId, SpaceManifestSnapshotManifestVerifier verifier, String spaceId, RestoreManager restoreManager)
-
-
Method Details
-
beforeWrite
- Specified by:
beforeWritein interfaceorg.springframework.batch.core.ItemWriteListener<ManifestEntry>
-
afterWrite
- Specified by:
afterWritein interfaceorg.springframework.batch.core.ItemWriteListener<ManifestEntry>
-
onWriteError
- Specified by:
onWriteErrorin interfaceorg.springframework.batch.core.ItemWriteListener<ManifestEntry>
-
write
- Specified by:
writein interfaceorg.springframework.batch.item.ItemWriter<ManifestEntry>- Throws:
Exception
-
beforeStep
public void beforeStep(org.springframework.batch.core.StepExecution stepExecution) - Specified by:
beforeStepin interfaceorg.springframework.batch.core.StepExecutionListener- Overrides:
beforeStepin classStepExecutionSupport
-
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
-