Class DummyTaskMonitor
java.lang.Object
com.vividsolutions.jump.task.DummyTaskMonitor
- All Implemented Interfaces:
TaskMonitor
- Direct Known Subclasses:
TaskMonitorFilter
Implementation of TaskMonitor that does nothing.
Can be used for Tasks that do not need to report on their status
(for instance, tasks run only in batch mode).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies parties that the task will accept requests for cancellation (though the task is not obligated to cancel immediately, or at all for that matter).booleanChecks whether a party has requested that the task be cancelled.voidReports the number of items processed.voidReports an Exception that occurred.voidDescribes the status of the task.
-
Constructor Details
-
DummyTaskMonitor
public DummyTaskMonitor()
-
-
Method Details
-
report
Description copied from interface:TaskMonitorDescribes the status of the task.- Specified by:
reportin interfaceTaskMonitor- Parameters:
description- a description of the progress of the overall task
-
report
Description copied from interface:TaskMonitorReports the number of items processed.- Specified by:
reportin interfaceTaskMonitor- Parameters:
subtasksDone- the number of items that have been processedtotalSubtasks- the total number of items being processed, or -1 if the total number is not knownsubtaskDescription- a one-word description of the items, such as "features"
-
allowCancellationRequests
public void allowCancellationRequests()Description copied from interface:TaskMonitorNotifies parties that the task will accept requests for cancellation (though the task is not obligated to cancel immediately, or at all for that matter).- Specified by:
allowCancellationRequestsin interfaceTaskMonitor
-
isCancelRequested
public boolean isCancelRequested()Description copied from interface:TaskMonitorChecks whether a party has requested that the task be cancelled. However, the task is not obligated to cancel immediately (or at all).- Specified by:
isCancelRequestedin interfaceTaskMonitor- Returns:
- whether a party has requested that the task be cancelled
-
report
Description copied from interface:TaskMonitorReports an Exception that occurred. The task may choose to carry on.- Specified by:
reportin interfaceTaskMonitor- Parameters:
exception- an Exception that occurred during the execution of the task.
-