public interface IServerTaskMonitor
Modifier and Type | Method and Description |
---|---|
void |
begin(double totalWork,
java.lang.String log)
Notifies that the task is beginning.
|
void |
end(boolean success,
java.lang.String log,
java.lang.String result)
Notifies that the task has been completed.
|
void |
log(java.lang.String log) |
void |
progress(double doneWork,
java.lang.String log)
Notifies that a given number of work unit of the task has been completed.
|
IServerTaskMonitor |
subWork(double work) |
IServerTaskMonitor |
subWork(java.lang.String logPrefix,
double work)
Create a sub task monitor that uses a given amount of work unit from the task
|
IServerTaskMonitor subWork(double work)
subWork(String, double)
IServerTaskMonitor subWork(java.lang.String logPrefix, double work)
logPrefix
- work
- the total number of work units given to the sub task monitor
task.void begin(double totalWork, java.lang.String log)
totalWork
- the total number of work units into which the task is been
subdivided.void progress(double doneWork, java.lang.String log)
doneWork
- number of work units just completedlog
- void end(boolean success, java.lang.String log, java.lang.String result)
success
- log
- result
- void log(java.lang.String log)
Copyright © 2021. All Rights Reserved.