Class TaskDef

java.lang.Object
org.h2.test.db.TaskDef

public abstract class TaskDef extends Object
A task that can be run as a separate process.
  • Constructor Details

    • TaskDef

      public TaskDef()
  • Method Details

    • main

      public static void main(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 String receive()
      Receive a message from the process over the standard output.
      Returns:
      the message
    • send

      protected void send(String message)
      Send a message to the process over the standard input.
      Parameters:
      message - the message