|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.test.db.TaskProcess
public class 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.
Constructor Summary | |
---|---|
TaskProcess(TaskDef taskDef)
Construct a new task process. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskProcess(TaskDef taskDef)
taskDef
- the taskMethod Detail |
---|
public 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()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |