public class ProcessContext
extends java.lang.Object
| Constructor and Description |
|---|
ProcessContext(ProcessCommand command,
Drain stdOutput,
Drain stdError)
Creates a new
ProcessContext object. |
ProcessContext(java.lang.String[] command,
java.lang.String[] environment,
java.io.File directory,
Drain stdOutput,
Drain stdError)
Creates a new
ProcessContext object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getCommand() |
ProcessCommand |
getContext() |
java.io.File |
getDirectory() |
java.lang.String[] |
getEnvironment() |
Drain |
getStdError() |
Drain |
getStdOutput() |
public ProcessContext(java.lang.String[] command,
java.lang.String[] environment,
java.io.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 processpublic Drain getStdOutput()
public Drain getStdError()
public final ProcessCommand getContext()
public java.lang.String[] getCommand()
public java.lang.String[] getEnvironment()
public java.io.File getDirectory()
Copyright © 2018 SAP SE. All Rights Reserved.