public interface ProcessExecution
| Modifier and Type | Method and Description |
|---|---|
ProcessExecution |
appendOutput(Sentence line)
Adds a line to output of this process
|
boolean |
executionFailed()
Checks whether
getExitCode() was 0 |
int |
getExitCode()
Returns exit code
|
List<String> |
getOutput()
Returns stdout and stderr of the process in the form of array
|
String |
getProcessId()
Returns identification of the process
|
OutputStream |
getStdin()
Returns stdin of the process
|
InputStream |
getStdoutAndStdErr()
Returns stdout combined with stderr of the process
|
boolean |
isFinished()
Checks whether process has finished
|
boolean |
isMarkedAsFinished()
Checks whether process is marked as finished
|
void |
markAsFinished()
Marks process execution as finished.
|
void |
terminate()
Forcefully terminates the process execution
|
String getProcessId()
ProcessExecution appendOutput(Sentence line)
line - List<String> getOutput()
OutputStream getStdin()
InputStream getStdoutAndStdErr()
void markAsFinished()
boolean isMarkedAsFinished()
boolean isFinished()
int getExitCode()
throws IllegalStateException
IllegalStateException - thrown if process is not finishedboolean executionFailed()
getExitCode() was 0void terminate()
Copyright © 2014 JBoss by Red Hat. All rights reserved.