Skip navigation links

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

E17493-04


oracle.ide.task
Class DefaultTaskMonitorImpl

java.lang.Object
  extended by oracle.ide.task.DefaultTaskMonitorImpl

All Implemented Interfaces:
TaskMonitor

public class DefaultTaskMonitorImpl
extends java.lang.Object
implements TaskMonitor

Constructor Summary
DefaultTaskMonitorImpl(Task task)
           

 

Method Summary
 void fireProgress(ProgressEvent p)
          fire a progress update to any listeners for the task.
 void fireUpdate(UpdateEvent tu)
          fire an Update to any listeners for the task.
 Task getSource()
          Retrieve the Task that this TaskMonitor is initialized for.
 TaskMonitor getTaskMonitorForSegment(int minProgressCount, 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.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DefaultTaskMonitorImpl

public DefaultTaskMonitorImpl(Task task)

Method Detail

fireUpdate

public void fireUpdate(UpdateEvent tu)
fire an Update to any listeners for the task.
Specified by:
fireUpdate in interface TaskMonitor
Parameters:
e - TaskUpdate object containing the necessary update information

fireProgress

public void fireProgress(ProgressEvent p)
fire a progress update to any listeners for the task.
Specified by:
fireProgress in interface TaskMonitor
Parameters:
e - TaskProgress object containing the necessary progress information

getTaskMonitorForSegment

public TaskMonitor getTaskMonitorForSegment(int minProgressCount,
                                            int maxProgressCount)
Description copied from interface: TaskMonitor
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.
Specified by:
getTaskMonitorForSegment in interface TaskMonitor
Parameters:
minProgressCount - int last progress count of the parent.
maxProgressCount - int maximum progress count of the child.
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

public Task getSource()
Description copied from interface: TaskMonitor
Retrieve the Task that this TaskMonitor is initialized for.
Specified by:
getSource in interface TaskMonitor
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.3.0)

E17493-04


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