TaskThread (Java Globus API)

org.globus.ftp.dc
Class TaskThread

java.lang.Object
  |
  +--org.globus.ftp.dc.TaskThread
All Implemented Interfaces:
java.lang.Runnable

public class TaskThread
extends java.lang.Object
implements java.lang.Runnable


Field Summary
protected  org.globus.ftp.dc.TaskThread.Buffer buffer
           
protected static org.apache.log4j.Logger logger
           
protected  boolean running
           
protected  boolean stop
           
protected  java.lang.Thread thread
           
 
Constructor Summary
TaskThread()
           
 
Method Summary
 Task getNextTask()
           
 boolean isRunning()
          unlike isAlive(), this method returns true only before the thread has notified of its death
 void run()
           
 void runTask(Task task)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger

buffer

protected org.globus.ftp.dc.TaskThread.Buffer buffer

stop

protected boolean stop

thread

protected java.lang.Thread thread

running

protected boolean running
Constructor Detail

TaskThread

public TaskThread()
Method Detail

start

public void start()

runTask

public void runTask(Task task)

getNextTask

public Task getNextTask()

run

public void run()
Specified by:
run in interface java.lang.Runnable

isRunning

public boolean isRunning()
unlike isAlive(), this method returns true only before the thread has notified of its death


stop

public void stop()