com.adventnet.utilities.scheduler
Class WorkerThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.adventnet.utilities.scheduler.WorkerThread

class WorkerThread
extends java.lang.Thread

A WorkerThread for running tasks in a Java VM


Field Summary
 java.lang.StringBuffer m_current_indent_buffer
           
 int m_current_indent_count
           
(package private)  Scheduler scheduler
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, values
 
Constructor Summary
WorkerThread(Scheduler s, java.lang.String nam)
          The constructor may not be necessary
 
Method Summary
 void run()
          The run methos does the tasks as they come in
(package private)  void waitUntilAsked()
          Wait here until asked to to another task
(package private)  void wakeUp()
          Wake this one up, if waiting
 
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
 

Field Detail

scheduler

Scheduler scheduler

m_current_indent_count

public int m_current_indent_count

m_current_indent_buffer

public java.lang.StringBuffer m_current_indent_buffer
Constructor Detail

WorkerThread

public WorkerThread(Scheduler s,
                    java.lang.String nam)
The constructor may not be necessary
Method Detail

wakeUp

void wakeUp()
Wake this one up, if waiting

waitUntilAsked

void waitUntilAsked()
Wait here until asked to to another task

run

public void run()
The run methos does the tasks as they come in
Overrides:
run in class java.lang.Thread