public class Future extends Object
Constructor and Description |
---|
Future(Exception exception)
Constructor for exceptions.
|
Future(Process process)
Constructor for a process.
|
Modifier and Type | Method and Description |
---|---|
String |
getError()
Get the error text of the process as string.
|
int |
getExitCode()
Get exit code of external process.
|
String |
getOutput()
Get the output of the process as string.
|
boolean |
isFinished()
Query external process for finished state.
|
boolean |
join()
Wait for external process to finish
|
public Future(Process process)
process
- running processpublic Future(Exception exception)
exception
- exception to provide for userpublic boolean isFinished()
true
when finishedpublic boolean join()
true
when finishedpublic int getExitCode()
public String getOutput()
public String getError()