public class ProgressMonitor extends Object
tick() operation.| Modifier and Type | Class and Description |
|---|---|
static interface |
ProgressMonitor.Output |
| Constructor and Description |
|---|
ProgressMonitor(String label,
long tickPoint,
int superTick,
ProgressMonitor.Output output) |
| Modifier and Type | Method and Description |
|---|---|
static ProgressMonitor |
create(org.slf4j.Logger log,
String label,
long tickPoint,
int superTick)
ProgressMonitor that outputs to a
Logger |
long |
finish() |
void |
finishMessage() |
long |
getTicks() |
void |
start() |
void |
startMessage()
Print a start message using the label
|
void |
startMessage(String msg)
Print a start message using a different string.
|
void |
tick() |
public ProgressMonitor(String label, long tickPoint, int superTick, ProgressMonitor.Output output)
label - Label added to output strings.
Usually related to the kind of things being monitored.
e.g "tuplestickPoint - Frequent of output messagessuperTick - Frequent of "Elapsed" additional messageoutput - Function called to deal with progress messages.public static ProgressMonitor create(org.slf4j.Logger log, String label, long tickPoint, int superTick)
Loggerpublic void startMessage()
public void startMessage(String msg)
public void finishMessage()
public void start()
public long finish()
public long getTicks()
public void tick()
Licenced under the Apache License, Version 2.0