|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.googlepages.dronten.jripper.util.BaseThread
com.googlepages.dronten.jripper.util.ProcessRunner
public class ProcessRunner
Process thread that uses other threads for reading from child thread outputs. One of the reader can also write to another child process.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected int |
aExitReadCode
|
protected int |
aExitWriteCode
|
protected java.lang.String |
aReadFileName
|
protected ProcessParam |
aReadParam
|
protected java.lang.Process |
aReadProcess
|
protected StreamThread |
aThread1
|
protected StreamThread |
aThread2
|
protected java.lang.String |
aWriteFileName
|
protected ProcessParam |
aWriteParam
|
protected java.lang.Process |
aWriteProcess
|
| Fields inherited from class com.googlepages.dronten.jripper.util.BaseThread |
|---|
aProgress, aRunning |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ProcessRunner(Log log,
Progress progress)
|
|
| Method Summary | |
|---|---|
void |
close()
Close reader threads and wait for processes to end. |
int |
getExitReadCode()
Return exit code of the reading process. |
int |
getExitWriteCode()
Get the exit code of the writing process. |
StreamThread |
getThread1()
|
boolean |
hasFailed()
Return status of exit codes. |
void |
run()
Run all processes until they are done. |
void |
stopLogging()
Tell this thread and all child threads to stop logging. |
| Methods inherited from class com.googlepages.dronten.jripper.util.BaseThread |
|---|
addLog, getLog, getTrackNum, setFailed, setLog, setTrackNum, stopRunning |
| 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 |
| Field Detail |
|---|
protected int aExitReadCode
protected int aExitWriteCode
protected StreamThread aThread1
protected StreamThread aThread2
protected java.lang.Process aReadProcess
protected java.lang.Process aWriteProcess
protected ProcessParam aReadParam
protected java.lang.String aReadFileName
protected ProcessParam aWriteParam
protected java.lang.String aWriteFileName
| Constructor Detail |
|---|
public ProcessRunner(Log log,
Progress progress)
log - progress - | Method Detail |
|---|
public void close()
close in class BaseThreadpublic int getExitReadCode()
public int getExitWriteCode()
public StreamThread getThread1()
public boolean hasFailed()
hasFailed in class BaseThreadpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void stopLogging()
stopLogging in class BaseThread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||