|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.apache.commons.jelly.tags.threads.JellyThread
public class JellyThread
Adds some functionality to the jdk thread class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
log
The Log to which logging calls will be made. |
private Mutex |
runningMutex
While this thread is still running it owns this mutex |
(package private) RunnableStatus |
status
Tracks the status of this thread |
private java.lang.Runnable |
target
The Runnable target |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
JellyThread()
|
Method Summary | |
---|---|
RunnableStatus |
getStatus()
Get the status of this thread |
void |
run()
Run the thread |
void |
setTarget(java.lang.Runnable target)
Set the Runnable target that will be run |
void |
waitUntilDone(long howLong)
Call this method from a different thread to wait until this thread is done. |
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 |
---|
private static final org.apache.commons.logging.Log log
private Mutex runningMutex
private java.lang.Runnable target
RunnableStatus status
Constructor Detail |
---|
public JellyThread()
Method Detail |
---|
public void setTarget(java.lang.Runnable target)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void waitUntilDone(long howLong) throws TimeoutException
WaitForTag
class.
TimeoutException
public RunnableStatus getStatus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |