public class ProcessContext extends Object
| Constructor and Description |
|---|
ProcessContext(ProcessCommand command,
Drain stdOutput,
Drain stdError)
Creates a new
ProcessContext object. |
ProcessContext(String[] command,
String[] environment,
File directory,
Drain stdOutput,
Drain stdError)
Creates a new
ProcessContext object. |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCommand() |
ProcessCommand |
getContext() |
File |
getDirectory() |
String[] |
getEnvironment() |
Drain |
getStdError() |
Drain |
getStdOutput() |
public ProcessContext(String[] command, String[] environment, File directory, Drain stdOutput, Drain stdError)
ProcessContext object.command - the command line to execute.environment - the environment as array of name=value pairs or null to inherit the
environment of the executing JVM.directory - the directory in which to execute the command (or null to execute in the
current directory of the executing JMV).stdOutput - call back to handle std output of the executed processstdError - call back to handle std error output of the executed processProcessCommandpublic ProcessContext(ProcessCommand command, Drain stdOutput, Drain stdError)
ProcessContext object.command - the command and environment to executestdOutput - call back to handle std output of the executed processstdError - call back to handle std error output of the executed processCopyright © 2017 SAP SE. All Rights Reserved.