|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
org.apache.excalibur.thread.impl.WorkerThread
org.apache.avalon.excalibur.thread.impl.SimpleWorkerThread
This class extends the Thread class to add recyclable functionalities.
| Field Summary | |
private Logger |
m_detailLoggerLog minor detail events like |
private Logger |
m_loggerLog major events like uncaught exceptions and worker creation and deletion. |
| Fields inherited from class org.apache.excalibur.thread.impl.WorkerThread |
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
protected |
SimpleWorkerThread(AbstractThreadPool pool, java.lang.ThreadGroup group, java.lang.String name)Allocates a new Worker object. |
| Method Summary | |
protected void |
debug(java.lang.String message)Used to log major events against the worker. |
protected void |
debug(java.lang.String message, java.lang.Throwable throwable)Used to log major events against the worker. |
protected void |
detailDebug(java.lang.String message)Used to log minor events against the worker. |
protected void |
detailDebug(java.lang.String message, java.lang.Throwable throwable)Used to log minor events against the worker. |
void |
enableLogging(Logger logger)Provide component with a logger. |
| Methods inherited from class org.apache.excalibur.thread.impl.WorkerThread |
clearInterruptFlag, dispose, execute, executeAndWait, postExecute, preExecute, recycleThread, run |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
private Logger m_logger
private Logger m_detailLogger
| Constructor Detail |
protected SimpleWorkerThread(AbstractThreadPool pool,
java.lang.ThreadGroup group,
java.lang.String name)
Worker object.
| Method Detail |
public void enableLogging(Logger logger)
LogEnabledenableLogging in interface LogEnabledlogger - the logger. Must not be null.protected void debug(java.lang.String message)
debug in class WorkerThreadmessage - Message to log.
protected void debug(java.lang.String message,
java.lang.Throwable throwable)
debug in class WorkerThreadmessage - Message to log.throwable - Throwable to log with the message.protected void detailDebug(java.lang.String message)
detailDebug in class WorkerThreadmessage - Message to log.
protected void detailDebug(java.lang.String message,
java.lang.Throwable throwable)
detailDebug in class WorkerThreadmessage - Message to log.throwable - Throwable to log with the message.
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||