Class ProgressMonitor

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

@Deprecated(forRemoval=true) public class ProgressMonitor extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
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.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProgressMonitor(String label, long tickPoint, int superTick, ProgressMonitor.Output output)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(org.slf4j.Logger log, String label, long tickPoint, int superTick)
    Deprecated, for removal: This API element is subject to removal in a future version.
    ProgressMonitor that outputs to a Logger
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Print a start message using the label
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Print a start message using a different string.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProgressMonitor

      public ProgressMonitor(String label, long tickPoint, int superTick, ProgressMonitor.Output output)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future version.
      ProgressMonitor that outputs to a Logger
    • startMessage

      public void startMessage()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Print a start message using the label
    • startMessage

      public void startMessage(String msg)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Print a start message using a different string.
    • finishMessage

      public void finishMessage()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • start

      public void start()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • finish

      public long finish()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getTicks

      public long getTicks()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • tick

      public void tick()
      Deprecated, for removal: This API element is subject to removal in a future version.