public class LaunchConfig
extends java.lang.Object
InProcessCluster
Constructor and Description |
---|
LaunchConfig(int numTasks,
int numThreads)
Create LaunchConfig.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumTasks() |
int |
getNumThreads() |
int |
getNumWorkers() |
LaunchConfig |
numWorkers(int numWorkers)
Override number of workers for module
|
public LaunchConfig(int numTasks, int numThreads)
numWorkers(int)
numTasks
- Number of tasks for the module. Must be power of two.numThreads
- Number of threads for the module. Must be less than or equal to number of tasks.public LaunchConfig numWorkers(int numWorkers)
numWorkers
- Number of workers. Must be less than or equal to number of threads.public int getNumTasks()
public int getNumThreads()
public int getNumWorkers()