@ThreadSafe public class ProcessManager extends Object
Modifier and Type | Method and Description |
---|---|
static ProcessManager |
create() |
org.apache.beam.runners.fnexecution.environment.ProcessManager.RunningProcess |
startProcess(String id,
String command,
List<String> args,
Map<String,String> env)
Forks a process with the given command, arguments, and additional environment variables.
|
void |
stopProcess(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(String id, String command, List<String> args, Map<String,String> env) throws 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 forkedIOException
public void stopProcess(String id)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.