Package noaa.coastwatch.util.chunk
Class ChunkComputationHelper
java.lang.Object
noaa.coastwatch.util.chunk.ChunkComputationHelper
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChunkComputationHelper
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.
-
Constructor Details
-
ChunkComputationHelper
protected ChunkComputationHelper()
-
-
Method Details
-
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.
-