Class ProgressMonitor

java.lang.Object
org.apache.jena.atlas.lib.ProgressMonitor

@Deprecated public class ProgressMonitor extends Object
Deprecated.
Use RIOT's org.apache.system.progress.ProgressMonitor.
Progress monitor - output lines to show the progress of some long running operation. This is based on "ticks", not time. Once per item processed, call the tick() operation.
  • Constructor Details

    • ProgressMonitor

      public ProgressMonitor(String label, long tickPoint, int superTick, ProgressMonitor.Output output)
      Deprecated.
      Parameters:
      label - Label added to output strings. Usually related to the kind of things being monitored. e.g "tuples
      tickPoint - Frequent of output messages
      superTick - Frequent of "Elapsed" additional message
      output - Function called to deal with progress messages.
  • Method Details

    • create

      public static ProgressMonitor create(org.slf4j.Logger log, String label, long tickPoint, int superTick)
      Deprecated.
      ProgressMonitor that outputs to a Logger
    • startMessage

      public void startMessage()
      Deprecated.
      Print a start message using the label
    • startMessage

      public void startMessage(String msg)
      Deprecated.
      Print a start message using a different string.
    • finishMessage

      public void finishMessage()
      Deprecated.
    • start

      public void start()
      Deprecated.
    • finish

      public long finish()
      Deprecated.
    • getTicks

      public long getTicks()
      Deprecated.
    • tick

      public void tick()
      Deprecated.