public class WorkerProcessPoolFactory extends Object
Constructor and Description |
---|
WorkerProcessPoolFactory(ProjectFilesystem filesystem) |
Modifier and Type | Method and Description |
---|---|
WorkerProcess |
createWorkerProcess(ProcessExecutorParams processParams,
ExecutionContext context,
Path tmpDir) |
com.google.common.collect.ImmutableList<String> |
getCommand(Platform platform,
WorkerProcessParams paramsToUse) |
com.google.common.collect.ImmutableMap<String,String> |
getEnvironmentForProcess(ExecutionContext context,
WorkerProcessParams workerJobParams) |
WorkerProcessPool |
getWorkerProcessPool(ExecutionContext context,
WorkerProcessParams paramsToUse)
Returns an existing WorkerProcessPool for the given job params if one exists, otherwise creates
a new one.
|
public WorkerProcessPoolFactory(ProjectFilesystem filesystem)
public WorkerProcessPool getWorkerProcessPool(ExecutionContext context, WorkerProcessParams paramsToUse)
public com.google.common.collect.ImmutableList<String> getCommand(Platform platform, WorkerProcessParams paramsToUse)
public com.google.common.collect.ImmutableMap<String,String> getEnvironmentForProcess(ExecutionContext context, WorkerProcessParams workerJobParams)
public WorkerProcess createWorkerProcess(ProcessExecutorParams processParams, ExecutionContext context, Path tmpDir) throws IOException
IOException