Class Task

java.lang.Object
java.lang.Thread
org.compiere.util.Task
All Implemented Interfaces:
Runnable

public class Task extends Thread
Background thread for execution of OS Task
Version:
$Id: Task.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
  • Constructor Details

    • Task

      public Task(String cmd)
      Create Process with OS cmd
      Parameters:
      cmd - o/s command
  • Method Details

    • run

      public void run()
      Execute command
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • getOut

      public StringBuffer getOut()
      Get Standard Output
      Returns:
      Standard Output Buffer
    • getErr

      public StringBuffer getErr()
      Get Error Output
      Returns:
      Error Output Buffer
    • getInStream

      public OutputStream getInStream()
      Get the process's input stream - i.e. we output to it
      Returns:
      OutputStream (connect to input stream of OS process)