public interface TaskMonitor extends TaskEventSource
jDTAUS Core SPI TaskMonitor
specification to be used by
implementations to provide TaskEvent
s to applications.
Example: Monitoring a task
Task task = new ConcreteTask(); try { // Start monitoring. this.getTaskMonitor().monitor(task); // Perform operations updating task which is now polled for changes. ... } finally { this.getTaskMonitor().finish(task); }
Container
Modifier and Type | Method and Description |
---|---|
void |
finish(Task task)
Stops monitoring a
Task . |
void |
monitor(Task task)
Starts monitoring a
Task . |
addTaskListener, getTaskListeners, removeTaskListener
void monitor(Task task)
Task
.task
- the task to monitor.NullPointerException
- if task
is null
.void finish(Task task)
Task
.task
- the task to stop monitoring.NullPointerException
- if task
is null
.Copyright © 2005-2012 jDTAUS. All Rights Reserved.