public class ProcessExecutionImpl extends Object implements ProcessExecution
| Constructor and Description |
|---|
ProcessExecutionImpl(Process process,
String processId)
Creates a process execution, add an id to the process
|
| Modifier and Type | Method and Description |
|---|---|
ProcessExecution |
appendOutput(Sentence line) |
boolean |
executionFailed() |
int |
getExitCode() |
List<String> |
getOutput() |
Process |
getProcess() |
String |
getProcessId() |
OutputStream |
getStdin() |
InputStream |
getStdoutAndStdErr() |
boolean |
isFinished() |
boolean |
isMarkedAsFinished() |
void |
markAsFinished() |
void |
terminate() |
public Process getProcess()
public String getProcessId()
getProcessId in interface ProcessExecutionpublic ProcessExecution appendOutput(Sentence line)
appendOutput in interface ProcessExecutionpublic List<String> getOutput()
getOutput in interface ProcessExecutionpublic boolean isFinished()
isFinished in interface ProcessExecutionpublic int getExitCode()
throws IllegalStateException
getExitCode in interface ProcessExecutionIllegalStateExceptionpublic void markAsFinished()
markAsFinished in interface ProcessExecutionpublic boolean isMarkedAsFinished()
isMarkedAsFinished in interface ProcessExecutionpublic boolean executionFailed()
executionFailed in interface ProcessExecutionpublic OutputStream getStdin()
getStdin in interface ProcessExecutionpublic InputStream getStdoutAndStdErr()
getStdoutAndStdErr in interface ProcessExecutionpublic void terminate()
terminate in interface ProcessExecutionCopyright © 2014 JBoss by Red Hat. All rights reserved.