|
|||||||||
| 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
public class BaseThread
Base class for worker threads.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected Progress |
aProgress
|
protected boolean |
aRunning
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
BaseThread(Log log,
Progress progress)
Create thread and set log/progress object. |
|
| Method Summary | |
|---|---|
void |
addLog(int verbose,
java.lang.String message)
Add log message. |
void |
close()
isRunning is returning false after this call. |
Log |
getLog()
Get log object. |
int |
getTrackNum()
Get track number.. |
boolean |
hasFailed()
Has thread failed during running? |
void |
setFailed(boolean failed)
Set failed status. |
void |
setLog(Log log)
Set log object. |
void |
setTrackNum(int track)
Set track number.. |
void |
stopLogging()
Stop adding messages to the log. |
void |
stopRunning()
Tell thread that it should break the loop. |
| 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, run, 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 Progress aProgress
protected boolean aRunning
| Constructor Detail |
|---|
public BaseThread(Log log,
Progress progress)
log - progress - | Method Detail |
|---|
public void addLog(int verbose,
java.lang.String message)
message - public void close()
public Log getLog()
public int getTrackNum()
public boolean hasFailed()
public void setFailed(boolean failed)
failed - public void setLog(Log log)
log - public void setTrackNum(int track)
track - Track numberpublic void stopLogging()
public void stopRunning()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||