Java Globus API: Class TaskThread
org.globus.ftp.dc
Class TaskThread
java.lang.Object
|
+--org.globus.ftp.dc.TaskThread
- All Implemented Interfaces:
- Runnable
- public class TaskThread
- extends Object
- implements 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 Thread |
thread
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static org.apache.log4j.Logger logger
buffer
protected org.globus.ftp.dc.TaskThread.Buffer buffer
stop
protected boolean stop
thread
protected Thread thread
running
protected boolean running
TaskThread
public TaskThread()
start
public void start()
runTask
public void runTask(Task task)
getNextTask
public Task getNextTask()
run
public void run()
- Specified by:
run in interface Runnable
isRunning
public boolean isRunning()
- unlike isAlive(), this method returns true only before
the thread has notified of its death
stop
public void stop()