Class ContentChecksumHelper


  • public class ContentChecksumHelper
    extends Object
    This class encapsulates retry logic for calculating content checksums.
    Author:
    Daniel Bernstein Date: Oct 14, 2014
    • Constructor Detail

      • 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 Detail

      • getContentChecksum

        public String getContentChecksum​(String correctChecksum)
                                  throws TaskExecutionFailedException
        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