Adempiere 3.5.2a

org.compiere.util
Class Task

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

public class Task
extends Thread

Execute OS Task

Version:
$Id: Task.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Task(String cmd)
          Create Process with cmd
 
Method Summary
 StringBuffer getErr()
          Get Err Info
 OutputStream getInStream()
          Get The process input stream - i.e. we output to it
 StringBuffer getOut()
          Get Out Info
 void run()
          Execute it
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Task

public Task(String cmd)
Create Process with cmd

Parameters:
cmd - o/s command
Method Detail

run

public void run()
Execute it

Specified by:
run in interface Runnable
Overrides:
run in class Thread

getOut

public StringBuffer getOut()
Get Out Info

Returns:
StringBuffer

getErr

public StringBuffer getErr()
Get Err Info

Returns:
StringBuffer

getInStream

public OutputStream getInStream()
Get The process input stream - i.e. we output to it

Returns:
OutputStream

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.