Class ProgressReporter

java.lang.Object
nl.b3p.brmo.bgt.loader.ProgressReporter
All Implemented Interfaces:
Consumer<ObjectTableWriter.Progress>
Direct Known Subclasses:
ConsoleProgressReporter

public class ProgressReporter extends Object implements Consumer<ObjectTableWriter.Progress>
  • Constructor Details

    • ProgressReporter

      public ProgressReporter()
  • Method Details

    • getStart

      public Instant getStart()
    • getTotalBytes

      public Long getTotalBytes()
    • getTotalBytesReadFunction

      public Supplier<Long> getTotalBytesReadFunction()
    • getCurrentFileName

      public String getCurrentFileName()
    • getCurrentFileStart

      public Instant getCurrentFileStart()
    • getCurrentFileSize

      public Long getCurrentFileSize()
    • setTotalBytes

      public void setTotalBytes(long totalBytes)
    • setTotalBytesReadFunction

      public void setTotalBytesReadFunction(Supplier<Long> totalBytesReadFunction)
    • startNewFile

      public void startNewFile(String name, Long size)
    • log

      protected void log(String msg)
    • status

      protected void status(String msg)
    • accept

      public void accept(ObjectTableWriter.Progress genericProgress)
      Specified by:
      accept in interface Consumer<ObjectTableWriter.Progress>
    • reportTotalSummary

      public void reportTotalSummary()