public class DefaultTaskMonitorImpl extends java.lang.Object implements TaskMonitor
| Constructor and Description |
|---|
DefaultTaskMonitorImpl(Task task) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public DefaultTaskMonitorImpl(Task task)
public void fireUpdate(UpdateEvent tu)
fireUpdate in interface TaskMonitore - TaskUpdate object containing the necessary update
informationpublic void fireProgress(ProgressEvent p)
fireProgress in interface TaskMonitore - TaskProgress object containing the necessary progress
informationpublic TaskMonitor getTaskMonitorForSegment(int minProgressCount, int maxProgressCount)
TaskMonitorgetTaskMonitorForSegment in interface TaskMonitorminProgressCount - int last progress count of the parent.maxProgressCount - int maximum progress count of the child.public Task getSource()
TaskMonitorgetSource in interface TaskMonitor