@ThreadSafe
public class ProcessManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ProcessManager |
create() |
org.apache.beam.runners.fnexecution.environment.ProcessManager.RunningProcess |
startProcess(java.lang.String id,
java.lang.String command,
java.util.List<java.lang.String> args,
java.util.Map<java.lang.String,java.lang.String> env)
Forks a process with the given command, arguments, and additional environment variables.
|
void |
stopProcess(java.lang.String id)
Stops a previously started process identified by its unique id.
|
public static ProcessManager create()
public org.apache.beam.runners.fnexecution.environment.ProcessManager.RunningProcess startProcess(java.lang.String id, java.lang.String command, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> env) throws java.io.IOException
id
- A unique id for the processcommand
- The name of the executable to runargs
- Arguments to provide to the executableenv
- Additional environment variables for the process to be forkedjava.io.IOException
public void stopProcess(java.lang.String id)