|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--com.epicentric.task.Errand
TaskManager
Runs a task with or without a timeout. If task times out before completion, isInterrupted() will return true.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Errand(DirectTask task)
Deprecated. Constructor. |
|
Errand(DirectTask task,
int timeout)
Deprecated. Constructor. |
|
Errand(DirectTask task,
int timeout,
String errand_name)
Deprecated. Constructor. |
|
Errand(DirectTask task,
String errand_name)
Deprecated. Constructor. |
|
| Method Summary | |
boolean |
completedSuccessfully()
Deprecated. Return whether task completed successfully. |
void |
run()
Deprecated. Execute the task. |
boolean |
timedOut()
Deprecated. Answer whether task timed out. |
boolean |
waitForCompletion()
Deprecated. Wait until task finishes or times out. |
| 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 |
| Constructor Detail |
public Errand(DirectTask task)
public Errand(DirectTask task,
String errand_name)
public Errand(DirectTask task,
int timeout)
task - timeout - in seconds.
public Errand(DirectTask task,
int timeout,
String errand_name)
task - timeout - in seconds.errand_name - | Method Detail |
public void run()
run in class Threadpublic boolean waitForCompletion()
public boolean completedSuccessfully()
public boolean timedOut()
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||