Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.ide.task
Interface TaskMonitor

All Known Implementing Classes:
DefaultTaskMonitorImpl

public interface TaskMonitor

NOT COMPLETE This is the interface used by the task implementor to access services offered by the TaskManager during the execution of the task. Currently the only services offered are update and progress reporting.


Method Summary
 void fireProgress(ProgressEvent e)
          call this method to fire a progress update regarding the task.\
 void fireUpdate(UpdateEvent e)
          call this method to fire a general update regarding the task.
 Task getSource()
          Retrieve the Task that this TaskMonitor is initialized for.
 TaskMonitor getTaskMonitorForSegment(int lastProgressCount, int maxProgressCount)
          Creates a new instance of a TaskMonitor object with the maximum progress normalized to the given value that can then be passed on to a child process or method.

 

Method Detail

fireUpdate

void fireUpdate(UpdateEvent e)
call this method to fire a general update regarding the task.
Parameters:
e - TaskUpdate an update object containing information about the update

fireProgress

void fireProgress(ProgressEvent e)
call this method to fire a progress update regarding the task.\
Parameters:
e - TaskProgress the progress object containing details of the task progress.

getTaskMonitorForSegment

TaskMonitor getTaskMonitorForSegment(int lastProgressCount,
                                     int maxProgressCount)
Creates a new instance of a TaskMonitor object with the maximum progress normalized to the given value that can then be passed on to a child process or method. This allows the parent method to allocate a certain count that becomes the maximum count for the sub-process.
Parameters:
maxProgressCount - int maximum progress count of the child.
lastProgressCount - int last progress count of the parent.
Returns:
TaskMonitor the normalized TaskMonitor for the child sub-process. The sub-process should fire Progress Updates between 0 and 100, which will be normalized to the extent provided for this sub-process.

getSource

Task getSource()
Retrieve the Task that this TaskMonitor is initialized for.
Returns:
the Task for which this TaskMonitor object was created.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.