com.adventnet.utilities.scheduler
Class WorkerThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.adventnet.utilities.scheduler.WorkerThread
All Implemented Interfaces:
java.lang.Runnable

 class WorkerThread
extends java.lang.Thread

A WorkerThread for running tasks in a Java VM


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
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
 
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, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread