|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.task.Task
oracle.ide.task.TaskGroup
public class TaskGroup
A TaskGroup is a specialized Task that is composed of one or more sub-tasks. Execution of TaskGroup results in execution of each individual Task The exact policy of handling failure of member Tasks is decided by the Task execution policy for a particular TaskGroup instance.
Field Summary | |
---|---|
protected int |
countDone |
Fields inherited from class oracle.ide.task.Task |
---|
state, taskID |
Constructor Summary | |
---|---|
TaskGroup(java.lang.String implementorID, TaskGroupExecutionPolicy policy) Constructor for a taskGroup. |
Method Summary | |
---|---|
void |
addTask(Task task) 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() Retrieve the total count done so far, -which will be the cumulative count done so far. |
int |
getCountLeft() Retrieve the total count that is left of this task. |
int |
getCurrentTaskCount() The currently running task index |
java.lang.Object |
getResult() A TaskGroup is Task. |
int |
getTimeLeftSeconds() An estimate in seconds of the time left. |
int |
getTotalCount() A task implementor must provide a quantitative measure of the Task. |
int |
getTotalTaskCount() The total number of tasks in this group. |
TaskExitCode |
performTask(TaskMonitor ignore) A TaskGroups is also a Task, -this method implements the performTask method of the Task. |
Methods inherited from class oracle.ide.task.Task |
---|
addTaskListener, getID, getListenerList, getNewTaskEvent, getShortName, getState, removeTaskListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int countDone
Constructor Detail |
---|
public TaskGroup(java.lang.String implementorID, TaskGroupExecutionPolicy policy) throws TaskException
TaskException
Method Detail |
---|
public java.lang.Object getResult()
getResult
in class Task
public int getCountLeft()
public int getCountDone()
public int getTotalCount()
Task
getTotalCount
in class Task
Task.getTotalCount()
public int getTimeLeftSeconds()
Task
getTimeLeftSeconds
in class Task
Task.getTimeLeftSeconds()
public int getTotalTaskCount()
public int getCurrentTaskCount()
public void addTask(Task task) throws TaskException
task
- the task to add to this task group.TaskException
public final TaskExitCode performTask(TaskMonitor ignore) throws java.lang.Exception
performTask
in class Task
ignore
- 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.Exception
oracle.ide.task.Task#performTask(oracle.ide.task.TaskClientServices)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |