|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
nl.toolforge.karma.core.vc.threads.RunnerThread
| Field Summary | |
protected java.lang.Throwable |
exception
|
protected RunnerResult |
result
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
RunnerThread(Module module)
|
|
| Method Summary | |
java.lang.Throwable |
getException()
|
Module |
getModule()
Returns the module status, irrespective of whether this thread has finished executing or not. |
RunnerResult |
getResult()
|
boolean |
isRunning()
Should be checked to ensure that run() is finished. |
abstract void |
run()
Must be implemented by subclasses. |
protected void |
startRunning()
Should be called to demarkate the start of the 'transaction'. |
protected void |
stopRunning()
Should be called to demarkate the end of the 'transaction'. |
| 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 |
protected java.lang.Throwable exception
protected RunnerResult result
| Constructor Detail |
public RunnerThread(Module module)
| Method Detail |
public abstract void run()
protected void startRunning()
protected void stopRunning()
public final boolean isRunning()
run() is finished.
public final RunnerResult getResult()
public Module getModule()
isRunning().
run() has done when executed properly.public java.lang.Throwable getException()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||