|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.2) E22562-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.flex.runtime.ModelerTaskGroupListener
public class ModelerTaskGroupListener
A listener that listens to the action of a ModelerTaskGroup
.
Constructor Summary | |
---|---|
ModelerTaskGroupListener()
|
Method Summary | |
---|---|
void |
notifyActionPerformed(int index,
ModelerTask task,
ModelerEvent event)
Invoked when this class receives a notification from a task indicating that an action associated with the task has been performed. |
void |
notifyActionPerformed(ModelerEvent event)
Invoked when an action has been performed by the task group. |
void |
notifyOverallProgress(int progress)
Invoked when the overall progress is to be updated. |
void |
notifyTaskFinished(int index,
ModelerTask task)
Invoked when this class receives a notification from a task indicating that the task is finished. |
void |
notifyTaskInterrupted(int index,
ModelerTask task,
java.lang.Throwable cause)
Invoked when this class receives a notification from a task indicating that the task has been interrupted. |
void |
notifyTaskStarting(int index,
ModelerTask task)
Invoked when this class receives a notification from a task indicating that the task is starting. |
void |
performBegin(ModelerTaskGroup.ExecutionContext context)
Invoked by perform() in the beginning of the method. |
void |
performEnd(ModelerTaskGroup.ExecutionContext context)
Invoked by perform() in the end of the method. |
void |
taskBegin(int index,
ModelerTask task)
Invoked by perform() when a task is about to begin. |
void |
taskEnd(int index,
ModelerTask task)
Invoked by perform() after a task has been performed. |
void |
taskInterrupted(int index,
ModelerTask task,
java.lang.Throwable cause)
Invoked when a task is interrupted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelerTaskGroupListener()
Method Detail |
---|
public void notifyTaskStarting(int index, ModelerTask task)
Note that the invocation of this method is not synchronized with the execution of the task. In other words, the execution of the task is not blocked by the notification. Typically the notification is received later than the time when the event actually happens. The length of the delay depends on how quickly the notifications before this one are processed.
index
- the task indextask
- the tasktaskBegin(int, oracle.apps.fnd.applcore.flex.runtime.ModelerTask)
public void notifyTaskInterrupted(int index, ModelerTask task, java.lang.Throwable cause)
Note that the invocation of this method is not synchronized with the execution of the task. In other words, the execution of the task is not blocked by the notification. Typically the notification is received later than the time when the event actually happens. The length of the delay depends on how quickly the notifications before this one are processed.
index
- the task indextask
- the taskcause
- the cause of the interruptiontaskInterrupted(int, oracle.apps.fnd.applcore.flex.runtime.ModelerTask, java.lang.Throwable)
public void notifyTaskFinished(int index, ModelerTask task)
Note that the invocation of this method is not synchronized with the execution of the task. In other words, the execution of the task is not blocked by the notification. Typically the notification is received later than the time when the event actually happens. The length of the delay depends on how quickly the notifications before this one are processed.
index
- the task indextask
- the tasktaskEnd(int, oracle.apps.fnd.applcore.flex.runtime.ModelerTask)
public void notifyActionPerformed(int index, ModelerTask task, ModelerEvent event)
Note that the invocation of this method is not synchronized with the execution of the task. In other words, the execution of the task is not blocked by the notification. Typically the notification is received later than the time when the event actually happens. The length of the delay depends on how quickly the notifications before this one are processed.
index
- the task indextask
- the taskevent
- the action eventpublic void notifyOverallProgress(int progress)
progress
- the progress; an integer between zero (inclusive) and
100 (inclusive)public void notifyActionPerformed(ModelerEvent event)
event
- the action event associated with the task grouppublic void performBegin(ModelerTaskGroup.ExecutionContext context)
perform()
in the beginning of the method. If any
exception is thrown, perform()
will be interrupted.
context
- the execution contextModelerTaskGroup.perform()
public void performEnd(ModelerTaskGroup.ExecutionContext context)
perform()
in the end of the method.
context
- the execution contextModelerTaskGroup.perform()
public void taskBegin(int index, ModelerTask task)
perform()
when a task is about to begin. The
thread that performs the task will wait until this method returns or throws
an exception. If an exception is thrown by this method,
taskInterrupted
will be invoked and the task will not be
performed.
index
- the task indextask
- the taskpublic void taskEnd(int index, ModelerTask task)
perform()
after a task has been performed. If this
method throws a runtime exception, the exception may be logged but will not
stop other tasks from being executed. If all tasks are performed in a
single thread, the thread will not start another task until this method
returns or throws an exception.
index
- the task indextask
- the taskpublic void taskInterrupted(int index, ModelerTask task, java.lang.Throwable cause)
index
- the task indextask
- the taskcause
- the cause of the interruption
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.2) E22562-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |