RequestProcessor
executor service. For task tracking purposes, use the
Progress API.
See usage examples to start working
with the new APIs.@Deprecated public class TaskGroup extends Task
| Modifier and Type | Field and Description |
|---|---|
protected int |
countDone
Deprecated.
|
| Constructor and Description |
|---|
TaskGroup(java.lang.String implementorID,
TaskGroupExecutionPolicy policy)
Deprecated.
Constructor for a taskGroup.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(Task task)
Deprecated.
Adds a Task to the group, and throws exceptions if the TaskGroup is not in
the appropriate state for addition to the group.
|
int |
getCountDone()
Deprecated.
Retrieve the total count done so far, -which will be the cumulative count
done so far.
|
int |
getCountLeft()
Deprecated.
Retrieve the total count that is left of this task.
|
int |
getCurrentTaskCount()
Deprecated.
The currently running task index
|
java.lang.Object |
getResult()
Deprecated.
A TaskGroup is Task.
|
int |
getTimeLeftSeconds()
Deprecated.
An estimate in seconds of the time left.
|
int |
getTotalCount()
Deprecated.
A task implementor must provide a quantitative measure of the Task.
|
int |
getTotalTaskCount()
Deprecated.
The total number of tasks in this group.
|
TaskExitCode |
performTask(TaskMonitor ignore)
Deprecated.
A TaskGroups is also a Task, -this method implements the performTask method
of the Task.
|
addTaskListener, getID, getListenerList, getNewTaskEvent, getShortName, getState, removeTaskListenerpublic TaskGroup(java.lang.String implementorID,
TaskGroupExecutionPolicy policy)
throws TaskException
TaskExceptionpublic java.lang.Object getResult()
public int getCountLeft()
public int getCountDone()
public int getTotalCount()
TaskgetTotalCount in class TaskTask.getTotalCount()public int getTimeLeftSeconds()
TaskgetTimeLeftSeconds in class TaskTask.getTimeLeftSeconds()public int getTotalTaskCount()
public int getCurrentTaskCount()
public void addTask(Task task) throws TaskException
task - the task to add to this task group.TaskExceptionpublic final TaskExitCode performTask(TaskMonitor ignore) throws java.lang.Exception
performTask in class Taskignore - TaskMonitor this is the access point for the Task itself to
access the services which are offered, for example providing
progress update or acquaring locks etc.java.lang.Exceptionoracle.ide.task.Task#performTask(oracle.ide.task.TaskClientServices)