Package org.duracloud.mill.bit
Class ContentChecksumHelper
java.lang.Object
org.duracloud.mill.bit.ContentChecksumHelper
This class encapsulates retry logic for calculating
content checksums.
- Author:
- Daniel Bernstein Date: Oct 14, 2014
-
Constructor Summary
ConstructorsConstructorDescriptionContentChecksumHelper(org.duracloud.storage.domain.StorageProviderType storageProviderType, BitIntegrityCheckTask bitTask, org.duracloud.storage.provider.StorageProvider store, org.duracloud.common.util.ChecksumUtil checksumUtil) -
Method Summary
-
Constructor Details
-
ContentChecksumHelper
public ContentChecksumHelper(org.duracloud.storage.domain.StorageProviderType storageProviderType, BitIntegrityCheckTask bitTask, org.duracloud.storage.provider.StorageProvider store, org.duracloud.common.util.ChecksumUtil checksumUtil) - Parameters:
storageProviderType-bitTask-store-
-
-
Method Details
-
getContentChecksum
- Parameters:
correctChecksum- The presumed correct checksum. If the calculated checksum of the content does not match this checksum, a rety is triggered to ensure that there was no- Returns:
- Throws:
TaskExecutionFailedException
-