edu.mssm.crover.ims.tasks.groups
Class ParallelTask

java.lang.Object
  |
  +--edu.mssm.crover.ims.tasks.Task
        |
        +--edu.mssm.crover.ims.tasks.groups.GroupOfTasks
              |
              +--edu.mssm.crover.ims.tasks.groups.ParallelTask
All Implemented Interfaces:
TaskControl, TaskListener

public class ParallelTask
extends GroupOfTasks

A group of parallel tasks.


Field Summary
 
Fields inherited from class edu.mssm.crover.ims.tasks.Task
data, priorTasks, status, taskID, taskType, tm
 
Constructor Summary
ParallelTask(TaskManager tm, long timeout)
           
 
Method Summary
 void add(Task new_task)
          Add a task to the parallel group.
 void allFinished()
          Does nothing.
 void statusChanged(java.lang.String taskid, TaskStatus newstatus)
          The status of a task has just changed.
 
Methods inherited from class edu.mssm.crover.ims.tasks.Task
abnormalTermination, addListener, addPriorTask, getData, getPriorTasks, getStatus, getTaskID, getTaskType, getTimeout, installEngine, isReadyToStart, normalTermination, notifyListeners, priorTasksDone, process, removeListener, removePriorTask, setData, setTaskID, setTaskType, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParallelTask

public ParallelTask(TaskManager tm,
                    long timeout)
Method Detail

add

public void add(Task new_task)
Add a task to the parallel group.

Specified by:
add in class GroupOfTasks

statusChanged

public void statusChanged(java.lang.String taskid,
                          TaskStatus newstatus)
The status of a task has just changed. We are notified of the new status and the identity of the task that experienced the change.

Specified by:
statusChanged in interface TaskListener
Overrides:
statusChanged in class Task
See Also:
TaskListener#statusChanged(String, TaskStatus)

allFinished

public void allFinished()
Does nothing.

Specified by:
allFinished in class GroupOfTasks


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.