|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.exolab.jmscts.core.ThreadedAction | +--org.exolab.jmscts.core.ThreadedActions
Helper class to run and wait for completion of a set of
ThreadedAction
instances.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ThreadedActions()
Construct a new ThreadedActions |
Method Summary | |
void |
addAction(ThreadedAction action)
Add an action to be started and monitored by this |
java.lang.Exception |
getException()
Returns any exception thrown by runProtected() . |
void |
runProtected()
Run the actions in separate threads |
Methods inherited from class org.exolab.jmscts.core.ThreadedAction |
getElapsedTime, run, setException, waitForCompletion, waitForCompletion |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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 |
Constructor Detail |
public ThreadedActions()
ThreadedActions
Method Detail |
public void addAction(ThreadedAction action)
action
- the action to addpublic void runProtected() throws java.lang.Exception
runProtected
in class ThreadedAction
java.lang.Exception
- for any errorpublic java.lang.Exception getException()
runProtected()
. If
null
returns any exception thrown by a child action,
otherwise null
, if no exception was throwngetException
in class ThreadedAction
null
, if none was
thrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |