Package org.compiere.util
Class Task
java.lang.Object
java.lang.Thread
org.compiere.util.Task
- All Implemented Interfaces:
Runnable
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
-
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
-
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
Task
Create Process with OS cmd- Parameters:
cmd
- o/s command
-
-
Method Details
-
run
public void run()Execute command -
getOut
Get Standard Output- Returns:
- Standard Output Buffer
-
getErr
Get Error Output- Returns:
- Error Output Buffer
-
getInStream
Get the process's input stream - i.e. we output to it- Returns:
- OutputStream (connect to input stream of OS process)
-