public static class ProcessExecutor.LaunchedProcessImpl extends Object implements ProcessExecutor.LaunchedProcess
Process
and exposes only its I/O streams, so callers have to pass it back to
this class.Modifier and Type | Field and Description |
---|---|
com.google.common.collect.ImmutableList<String> |
command |
Process |
process |
Constructor and Description |
---|
LaunchedProcessImpl(Process process,
List<String> command) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<String> |
getCommand() |
InputStream |
getStderr()
Input stream that maps into stderr of the process.
|
OutputStream |
getStdin()
Output stream that maps into stdin of the process.
|
InputStream |
getStdout()
Input stream that maps into stdout of the process.
|
boolean |
isAlive() |
public final Process process
public final com.google.common.collect.ImmutableList<String> command
public boolean isAlive()
isAlive
in interface ProcessExecutor.LaunchedProcess
public com.google.common.collect.ImmutableList<String> getCommand()
getCommand
in interface ProcessExecutor.LaunchedProcess
public OutputStream getStdin()
ProcessExecutor.LaunchedProcess
getStdin
in interface ProcessExecutor.LaunchedProcess
public InputStream getStdout()
ProcessExecutor.LaunchedProcess
getStdout
in interface ProcessExecutor.LaunchedProcess
public InputStream getStderr()
ProcessExecutor.LaunchedProcess
getStderr
in interface ProcessExecutor.LaunchedProcess