public class TaskMonitor extends AbstractTaskMonitor
Constructor and Description |
---|
TaskMonitor(org.vertx.java.core.eventbus.EventBus eventBus,
java.lang.String address) |
Modifier and Type | Method and Description |
---|---|
void |
begin(double work,
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.
|
boolean |
ended() |
void |
endHandler(org.vertx.java.core.Handler<java.lang.Void> endHandler) |
void |
log(java.lang.String log) |
void |
progress(double step,
java.lang.String log)
Notifies that a given number of work unit of the task has been completed.
|
childEnded, subWork, subWork
public TaskMonitor(org.vertx.java.core.eventbus.EventBus eventBus, java.lang.String address)
public void begin(double work, java.lang.String log)
IServerTaskMonitor
work
- the total number of work units into which the task is been
subdivided.public void progress(double step, java.lang.String log)
IServerTaskMonitor
step
- number of work units just completedpublic void log(java.lang.String log)
public void end(boolean success, java.lang.String log, java.lang.String result)
IServerTaskMonitor
public void endHandler(org.vertx.java.core.Handler<java.lang.Void> endHandler)
public boolean ended()
Copyright © 2021. All Rights Reserved.