|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.task.PrintStreamTaskMonitor
public class PrintStreamTaskMonitor
A TaskMonitor that reports its output to a PrintStream. User can control the level of output reported, as well as whether timing information is logged as well.
| Constructor Summary | |
|---|---|
PrintStreamTaskMonitor()
|
|
PrintStreamTaskMonitor(java.io.PrintStream stream)
|
|
| Method Summary | |
|---|---|
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. |
void |
setLoggingSubtasks(boolean isLoggingSubtasks)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrintStreamTaskMonitor(java.io.PrintStream stream)
public PrintStreamTaskMonitor()
| Method Detail |
|---|
public void setLoggingSubtasks(boolean isLoggingSubtasks)
public void report(java.lang.String description)
TaskMonitor
report in interface TaskMonitordescription - a description of the progress of the overall taskpublic void report(java.lang.Exception exception)
TaskMonitor
report in interface TaskMonitorexception - an Exception that occurred during the execution of the task.
public void report(int subtasksDone,
int totalSubtasks,
java.lang.String subtaskDescription)
TaskMonitor
report in interface TaskMonitorsubtasksDone - 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 TaskMonitorpublic boolean isCancelRequested()
TaskMonitor
isCancelRequested in interface TaskMonitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||