WorkerProcess
public WorkerProcess(ProcessExecutor executor,
ProcessExecutorParams processParams,
ProjectFilesystem filesystem,
Path stdErr,
Path tmpPath)
Worker process is a process that stays alive and receives commands which describe jobs. Worker
processes may be combined into pools so they can perform different jobs concurrently. It
communicates via JSON stream and via files. Submitted job blocks the calling thread until it
receives the result back. Worker process must understand the protocol that Buck will use to
communicate with it.
- Parameters:
executor
- Process executor that will start worker process.
processParams
- Arguments for process executor.
filesystem
- File system for the worker process.
stdErr
- path where stderr of a process is kept
tmpPath
- Temp folder.