Class LoggingProgressMonitor

java.lang.Object
org.variantsync.diffdetective.load.LoggingProgressMonitor
All Implemented Interfaces:
org.eclipse.jgit.lib.ProgressMonitor

public class LoggingProgressMonitor extends Object implements org.eclipse.jgit.lib.ProgressMonitor
Logs the start of all tasks as INFO to the tinylog API. This class will never cancel the monitored computation.
  • Constructor Details

    • LoggingProgressMonitor

      public LoggingProgressMonitor()
  • Method Details

    • start

      public void start(int totalTasks)
      Specified by:
      start in interface org.eclipse.jgit.lib.ProgressMonitor
    • beginTask

      public void beginTask(String title, int totalWork)
      Specified by:
      beginTask in interface org.eclipse.jgit.lib.ProgressMonitor
    • update

      public void update(int completed)
      Specified by:
      update in interface org.eclipse.jgit.lib.ProgressMonitor
    • endTask

      public void endTask()
      Specified by:
      endTask in interface org.eclipse.jgit.lib.ProgressMonitor
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.eclipse.jgit.lib.ProgressMonitor
    • showDuration

      public void showDuration(boolean enabled)
      Specified by:
      showDuration in interface org.eclipse.jgit.lib.ProgressMonitor