Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

oracle.apps.fnd.applcore.flex.runtime
Class ModelerTaskGroupListener

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.ModelerTaskGroupListener
Direct Known Subclasses:
FlexfieldDeploymentController.FlexDeployModelerTaskGroupListener

public class ModelerTaskGroupListener
extends java.lang.Object

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

ModelerTaskGroupListener

public ModelerTaskGroupListener()
Method Detail

notifyTaskStarting

public void notifyTaskStarting(int index,
                               ModelerTask task)
Invoked when this class receives a notification from a task indicating that the task is starting. The implementation should not depend on the timing of the invocation. By the time this notification is received, the task probably have already started.

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.

Parameters:
index - the task index
task - the task
See Also:
taskBegin(int, oracle.apps.fnd.applcore.flex.runtime.ModelerTask)

notifyTaskInterrupted

public 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.

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.

Parameters:
index - the task index
task - the task
cause - the cause of the interruption
See Also:
taskInterrupted(int, oracle.apps.fnd.applcore.flex.runtime.ModelerTask, java.lang.Throwable)

notifyTaskFinished

public void notifyTaskFinished(int index,
                               ModelerTask task)
Invoked when this class receives a notification from a task indicating that the task is finished.

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.

Parameters:
index - the task index
task - the task
See Also:
taskEnd(int, oracle.apps.fnd.applcore.flex.runtime.ModelerTask)

notifyActionPerformed

public 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.

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.

Parameters:
index - the task index
task - the task
event - the action event

notifyOverallProgress

public void notifyOverallProgress(int progress)
Invoked when the overall progress is to be updated.

Parameters:
progress - the progress; an integer between zero (inclusive) and 100 (inclusive)

notifyActionPerformed

public void notifyActionPerformed(ModelerEvent event)
Invoked when an action has been performed by the task group. The event is not associated with any specific task.

Parameters:
event - the action event associated with the task group

performBegin

public void performBegin(ModelerTaskGroup.ExecutionContext context)
Invoked by perform()in the beginning of the method. If any exception is thrown, perform() will be interrupted.

Parameters:
context - the execution context
See Also:
ModelerTaskGroup.perform()

performEnd

public void performEnd(ModelerTaskGroup.ExecutionContext context)
Invoked by perform() in the end of the method.

Parameters:
context - the execution context
See Also:
ModelerTaskGroup.perform()

taskBegin

public void taskBegin(int index,
                      ModelerTask task)
Invoked by 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.

Parameters:
index - the task index
task - the task

taskEnd

public void taskEnd(int index,
                    ModelerTask task)
Invoked by 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.

Parameters:
index - the task index
task - the task

taskInterrupted

public void taskInterrupted(int index,
                            ModelerTask task,
                            java.lang.Throwable cause)
Invoked when a task is interrupted.

Parameters:
index - the task index
task - the task
cause - the cause of the interruption

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.