
public class ProcessExecution extends Object
| Constructor and Description |
|---|
ProcessExecution(Process process,
String processId)
Creates a process execution, add an id to the process
|
| Modifier and Type | Method and Description |
|---|---|
ProcessExecution |
appendOutput(String line)
Adds a line to output of this process
|
boolean |
executionFailed()
Checks whether
getExitCode() was 0 |
int |
getExitCode()
Returns exit code
|
List<String> |
getOutput() |
Process |
getProcess() |
String |
getProcessId() |
boolean |
isFinished()
Checks whether process has finished
|
ProcessExecution |
replyWith(String reply)
Writes
reply into process input stream |
public Process getProcess()
public String getProcessId()
public ProcessExecution appendOutput(String line)
line - public ProcessExecution replyWith(String reply) throws IOException
reply into process input streamreply - IOExceptionpublic boolean isFinished()
public int getExitCode()
throws IllegalStateException
IllegalStateException - thrown if process is not finishedpublic boolean executionFailed()
getExitCode() was 0Copyright © 2013 JBoss by Red Hat. All rights reserved.