Class ChunkComputationHelper

java.lang.Object
noaa.coastwatch.util.chunk.ChunkComputationHelper

public class ChunkComputationHelper extends Object
The ChunkComputationHelper class assists in running a chunk computation using the greatest number of threads that can be used given the current memory constraints.
Since:
3.8.1
Author:
Peter Hollemans
  • Constructor Details

    • ChunkComputationHelper

      protected ChunkComputationHelper()
  • Method Details

    • getInstance

      public static ChunkComputationHelper getInstance()
    • run

      public void run(ChunkComputation op, ChunkingScheme scheme, boolean serial, int maxOps, Logger verbose)
      Runs a chunk computation either in serial or via a pool of threads.
      Parameters:
      op - the chunk computation to perform.
      scheme - the chunking scheme to use for the the operation.
      serial - the serial flag, true to run the operation in serial.
      maxOps - the maximum number of threads to run the operation if running in parallel mode.
      verbose - a verbose logger for printing informational messages.