public class DummyTaskMonitor extends java.lang.Object implements TaskMonitor
Constructor and Description |
---|
DummyTaskMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
allowCancellationRequests()
Notifies parties that the task will accept requests for cancellation
(though the task is not obligated to cancel immediately, or at all
for that matter).
|
boolean |
isCancelRequested()
Checks whether a party has requested that the task be cancelled.
|
void |
report(java.lang.Exception exception)
Reports an Exception that occurred.
|
void |
report(int subtasksDone,
int totalSubtasks,
java.lang.String subtaskDescription)
Reports the number of items processed.
|
void |
report(java.lang.String description)
Describes the status of the task.
|
public void report(java.lang.String description)
TaskMonitor
report
in interface TaskMonitor
description
- a description of the progress of the overall taskpublic void report(int subtasksDone, int totalSubtasks, java.lang.String subtaskDescription)
TaskMonitor
report
in interface TaskMonitor
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"public void allowCancellationRequests()
TaskMonitor
allowCancellationRequests
in interface TaskMonitor
public boolean isCancelRequested()
TaskMonitor
isCancelRequested
in interface TaskMonitor
public void report(java.lang.Exception exception)
TaskMonitor
report
in interface TaskMonitor
exception
- an Exception that occurred during the execution of the task.