public interface ProcessTask extends Callable<ProcessTask>
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(Observer... observer)
Adds the process task observer(s).
|
ProcessTask |
call()
Executes the command.
|
void |
destroy()
Kills the process.
|
CommandLine |
getCommandLine()
Returns the command line of the process.
|
String |
getErr()
Returns the standard error output of the process after the process
finished.
|
int |
getExitValue()
Returns the exit value of the process after the process finished.
|
String |
getOut()
Returns the standard output of the process after the process finished.
|
Process |
getProcess()
Returns the process of the executed command.
|
void |
removeObserver(Observer... observer)
Removes the process task observer(s).
|
ProcessTask call() throws CommandExecException
call in interface Callable<ProcessTask>CommandExecExceptionCommandLine getCommandLine()
CommandLine.void destroy()
String getOut()
String standard output.String getErr()
String standard error output.int getExitValue()
void addObserver(Observer... observer)
observer - the Observer.Copyright © 2014. All rights reserved.