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.LaunchedProcesspublic com.google.common.collect.ImmutableList<String> getCommand()
getCommand in interface ProcessExecutor.LaunchedProcesspublic OutputStream getStdin()
ProcessExecutor.LaunchedProcessgetStdin in interface ProcessExecutor.LaunchedProcesspublic InputStream getStdout()
ProcessExecutor.LaunchedProcessgetStdout in interface ProcessExecutor.LaunchedProcesspublic InputStream getStderr()
ProcessExecutor.LaunchedProcessgetStderr in interface ProcessExecutor.LaunchedProcess