public class JkProcHandler
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOutput()
Returns the output generated by the process.
|
java.util.List<java.lang.String> |
getOutputMultiline()
Returns the output generated by the executed process as a list of strings.
|
java.lang.Process |
getProcess()
Returns the process associated with this handler.
|
boolean |
hasCollectedOutput()
Returns true if the executed process has collected output.
|
int |
waitFor() |
boolean |
waitFor(long timeout,
java.util.concurrent.TimeUnit timeUnit) |
public java.lang.Process getProcess()
public boolean hasCollectedOutput()
To collect output, process has to be configured explicitly by invoking JkAbstractProcess.setCollectStdout(boolean)
.
public java.lang.String getOutput()
java.lang.IllegalStateException
- if the process has not collected outputpublic java.util.List<java.lang.String> getOutputMultiline()
public int waitFor()
public boolean waitFor(long timeout, java.util.concurrent.TimeUnit timeUnit)