Package dev.roanh.gmark.cli
Class Main.ProgressReporter
java.lang.Object
dev.roanh.gmark.cli.Main.ProgressReporter
- All Implemented Interfaces:
QueryGenerator.ProgressListener
- Enclosing class:
- Main
private static final class Main.ProgressReporter
extends Object
implements QueryGenerator.ProgressListener
Progress listener that report progress to
standard out at 10% intervals.
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
The last completion count progress was reported. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
update
(int done, int total) Called when a a new query finished generating.
-
Field Details
-
last
private int lastThe last completion count progress was reported.
-
-
Constructor Details
-
ProgressReporter
private ProgressReporter()Constructs a new progress reporter.
-
-
Method Details
-
update
public void update(int done, int total) Description copied from interface:QueryGenerator.ProgressListener
Called when a a new query finished generating.- Specified by:
update
in interfaceQueryGenerator.ProgressListener
- Parameters:
done
- The total number of queries generated so far.total
- The total number of queries to generate.
-