public interface WorkerProcessParams
Modifier and Type | Method and Description |
---|---|
int |
getMaxWorkers()
Maximum number of tools that pool can have.
|
com.google.common.collect.ImmutableList<String> |
getStartupCommand()
Command that is used to start the worker job, e.g.
|
com.google.common.collect.ImmutableMap<String,String> |
getStartupEnvironment()
Environment that will be used to start the worker tool.
|
Path |
getTempDir()
Temp folder location.
|
Optional<WorkerProcessIdentity> |
getWorkerProcessIdentity()
Identifies the instance of the persisted worker process pool.
|
boolean |
isAsync()
Whether we use synchronous 1-command-at-a-time processes, or one process with a max number of
tasks
|
static WorkerProcessParams |
of(Path tempDir,
com.google.common.collect.ImmutableList<String> startupCommand,
com.google.common.collect.ImmutableMap<String,String> startupEnvironment,
int maxWorkers,
boolean isAsync,
Optional<WorkerProcessIdentity> workerProcessIdentity) |
Path getTempDir()
com.google.common.collect.ImmutableList<String> getStartupCommand()
com.google.common.collect.ImmutableMap<String,String> getStartupEnvironment()
int getMaxWorkers()
boolean isAsync()
Optional<WorkerProcessIdentity> getWorkerProcessIdentity()
If this value is absent, then key will be automatically computed based on the startup command and startup arguments.
static WorkerProcessParams of(Path tempDir, com.google.common.collect.ImmutableList<String> startupCommand, com.google.common.collect.ImmutableMap<String,String> startupEnvironment, int maxWorkers, boolean isAsync, Optional<WorkerProcessIdentity> workerProcessIdentity)