com.waveset.task
Class TaskThread

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.waveset.task.TaskThread
All Implemented Interfaces:
java.lang.Runnable

public class TaskThread
extends java.lang.Thread

A wrapper thread we may put around a background task. The scheduler will decide whether it wants to execute the task synchronously (within the scheduler thread) or launch a separate thread for the task.


Field Summary
static java.lang.String code_id
           
protected static WSTrace trace
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TaskThread(Scheduler scheduler, TaskContext context, TaskInstance task, Executor executor)
          TODO: Add a monitor object?
 
Method Summary
 void run()
          Run the task thread.
 
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

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

trace

protected static final WSTrace trace
Constructor Detail

TaskThread

public TaskThread(Scheduler scheduler,
                  TaskContext context,
                  TaskInstance task,
                  Executor executor)
TODO: Add a monitor object?

Method Detail

run

public void run()
Run the task thread.