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

    Fields
    Modifier and Type
    Field
    Description
    private int
    The last completion count progress was reported.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Constructs a new progress reporter.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(int done, int total)
    Called when a a new query finished generating.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • last

      private int last
      The 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 interface QueryGenerator.ProgressListener
      Parameters:
      done - The total number of queries generated so far.
      total - The total number of queries to generate.