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

E22562-02

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

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.ModelerTask
      extended by oracle.apps.fnd.applcore.flex.runtime.MonitoredModelerTask
Direct Known Subclasses:
EffModelerTask

public abstract class MonitoredModelerTask
extends ModelerTask

A task that allows progress monitoring. An thread-local action event dispatcher is created and started when the perform method is invoked. The actual task is executed in performMonitoredTask. The task can invoke notifyProgress to inform the listener with the progress.


Nested Class Summary
 
Nested classes/interfaces inherited from class oracle.apps.fnd.applcore.flex.runtime.ModelerTask
ModelerTask.State
 
Constructor Summary
MonitoredModelerTask()
           
 
Method Summary
static void notifyProgress(java.lang.Object source, java.lang.String message)
          Notifies about the progress if a monitor is associated with the current thread.
 void perform(ModelerListener listener)
          Performs this task.
protected abstract  void performMonitoredTask(ModelerListener listener)
          Performs the task that needs to be monitored.
 
Methods inherited from class oracle.apps.fnd.applcore.flex.runtime.ModelerTask
newProgressTracker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoredModelerTask

public MonitoredModelerTask()
Method Detail

perform

public final void perform(ModelerListener listener)
Description copied from class: ModelerTask
Performs this task. If an error occurs, the exception should be sent to the listener, then rethrown to the caller of this method.

Specified by:
perform in class ModelerTask
Parameters:
listener - the listener

performMonitoredTask

protected abstract void performMonitoredTask(ModelerListener listener)
Performs the task that needs to be monitored.

Parameters:
listener - the listener

notifyProgress

public static final void notifyProgress(java.lang.Object source,
                                        java.lang.String message)
Notifies about the progress if a monitor is associated with the current thread. The progress will be sent to the monitor as an action event.

Parameters:
source - the source of the message
message - the message

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

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.