public class TaskProcess
extends java.lang.Object
| Constructor and Description |
|---|
TaskProcess(TaskDef taskDef)
Construct a new task process.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Kill the process if it still runs.
|
java.lang.String |
receive()
Receive a message from the process over the standard output.
|
void |
send(java.lang.String message)
Send a message to the process over the standard input.
|
void |
start(java.lang.String... args)
Start the task with the given arguments.
|
public TaskProcess(TaskDef taskDef)
taskDef - the taskpublic void start(java.lang.String... args)
args - the arguments, or nullpublic java.lang.String receive()
public void send(java.lang.String message)
message - the messagepublic void destroy()