TaskProcess
A task that is run as an external process. This class communicates over
standard input / output with the process. The standard error stream of the
process is directly send to the standard error stream of this process.
| Methods |
|
TaskProcess(TaskDef taskDef)
Construct a new task process.
|
|
TaskProcess(TaskDef taskDef)
Construct a new task process. The process is not started yet.
Parameters:
taskDef - the task
|
| void |
destroy()
Kill the process if it still runs.
|
| void |
destroy()
Kill the process if it still runs.
|
| String |
receive()
Receive a message from the process over the standard output.
|
| String |
receive()
Receive a message from the process over the standard output.
Returns:
the message
|
| void |
send(String message)
Send a message to the process over the standard input.
|
| void |
send(String message)
Send a message to the process over the standard input.
Parameters:
message - the message
|
| void |
start(String... args)
Start the task with the given arguments.
|
| void |
start(String... args)
Start the task with the given arguments.
Parameters:
args - the arguments, or null
|