public interface ProgressReporter
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Return an ID string for this monitor/reporter.
|
TaskState |
getState()
Return the state of the task.
|
void |
report(String message)
Log a progress message, this may be timestamped by the reporter implementation.
|
void |
report(String message,
int lineNumber)
Log a progress message with an associated line number, this may be timestamped by the reporter implementation.
|
void |
report(String message,
int lineNumber,
String type)
Log a progress message with an associated line number, this may be timestamped by the reporter implementation.
|
void |
report(String message,
String type)
Log a progress message, this may be timestamped by the reporter implementation.
|
void |
reportError(String message)
Report an error as a progress message of type "error" and set the status to failed
|
void |
reportError(String message,
int lineNumber)
Report an error as a progress message of type "error" and set the status to failed
|
void |
setFailed()
Record that a task has completed but with an error.
|
void |
setProgress(int progress)
Set the progress percentage.
|
void |
setState(TaskState state)
Change the state of the progress report.
|
void |
setSucceeded()
Record that a task has completed but successfully
|
void |
setSuccess(boolean wasSuccessful)
Record whether the task was successful or not.
|
String getId()
void setState(TaskState state)
void setProgress(int progress)
void setSuccess(boolean wasSuccessful)
void setSucceeded()
void setFailed()
void report(String message, String type)
message - the message texttype - the nature of the message e.g. "error", application dependent what types are supportedvoid report(String message, int lineNumber, String type)
message - the message texttype - the nature of the message e.g. "error", application dependent what types are supportedlineNumber - the number in some input file corresponding the the messagevoid report(String message)
void reportError(String message)
void reportError(String message, int lineNumber)
void report(String message, int lineNumber)
message - the message textlineNumber - the number in some input file corresponding the the messageTaskState getState()
Copyright © 2017. All rights reserved.