Class BitIntegrityCheckTaskProcessor

java.lang.Object
org.duracloud.mill.workman.TaskProcessorBase
org.duracloud.mill.bit.BitIntegrityCheckTaskProcessor
All Implemented Interfaces:
TaskProcessor

public class BitIntegrityCheckTaskProcessor extends TaskProcessorBase
This class processes bit integrity check tasks. The logic for this block of code is specified here: https://wiki.duraspace.org/display/DSPINT/Bit+Integrity+Check+Logic+Version+2
Author:
Daniel Bernstein Date: 10/15/2014
  • Constructor Details

    • BitIntegrityCheckTaskProcessor

      public BitIntegrityCheckTaskProcessor(BitIntegrityCheckTask bitTask, org.duracloud.storage.provider.StorageProvider store, org.duracloud.mill.manifest.ManifestStore manifestStore, org.duracloud.storage.domain.StorageProviderType storageProviderType, BitLogStore bitLogStore, org.duracloud.common.queue.TaskQueue bitErrorQueue, org.duracloud.common.queue.TaskQueue auditTaskQueue, ContentChecksumHelper checksumHelper)
  • Method Details

    • sleep

      protected static void sleep()
    • executeImpl

      protected void executeImpl() throws TaskExecutionFailedException
      Specified by:
      executeImpl in class TaskProcessorBase
      Throws:
      TaskExecutionFailedException
    • setPenultimateWaitMS

      public static void setPenultimateWaitMS(long milliseconds)
      Sets the number of milliseconds that the processor should wait before abandoning the task. Default is 5 minutes.
      Parameters:
      milliseconds - to wait