Package org.h2.test.db
Class TaskDef
- java.lang.Object
-
- org.h2.test.db.TaskDef
-
public abstract class TaskDef extends java.lang.ObjectA task that can be run as a separate process.
-
-
Constructor Summary
Constructors Constructor Description TaskDef()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String... args)Run the class.protected java.lang.Stringreceive()Receive a message from the process over the standard output.protected voidsend(java.lang.String message)Send a message to the process over the standard input.
-
-
-
Method Detail
-
main
public static void main(java.lang.String... args)
Run the class. This method is called by the task framework, and should not be called directly from the application.- Parameters:
args- the command line arguments
-
receive
protected java.lang.String receive()
Receive a message from the process over the standard output.- Returns:
- the message
-
send
protected void send(java.lang.String message)
Send a message to the process over the standard input.- Parameters:
message- the message
-
-