Class SideBandProgressMonitor

java.lang.Object
org.eclipse.jgit.lib.BatchingProgressMonitor
org.eclipse.jgit.transport.SideBandProgressMonitor
All Implemented Interfaces:
ProgressMonitor

class SideBandProgressMonitor extends BatchingProgressMonitor
Write progress messages out to the sideband channel.
  • Field Details

    • out

      private final OutputStream out
    • write

      private boolean write
  • Constructor Details

    • SideBandProgressMonitor

      SideBandProgressMonitor(OutputStream os)
  • Method Details

    • onUpdate

      protected void onUpdate(String taskName, int workCurr)
      Update the progress monitor if the total work isn't known,
      Specified by:
      onUpdate in class BatchingProgressMonitor
      Parameters:
      taskName - name of the task.
      workCurr - number of units already completed.
    • onEndTask

      protected void onEndTask(String taskName, int workCurr)
      Finish the progress monitor when the total wasn't known in advance.
      Specified by:
      onEndTask in class BatchingProgressMonitor
      Parameters:
      taskName - name of the task.
      workCurr - total number of units processed.
    • format

      private void format(StringBuilder s, String taskName, int workCurr)
    • onUpdate

      protected void onUpdate(String taskName, int cmp, int totalWork, int pcnt)
      Update the progress monitor when the total is known in advance.
      Specified by:
      onUpdate in class BatchingProgressMonitor
      Parameters:
      taskName - name of the task.
      cmp - number of units already completed.
      totalWork - estimated number of units to process.
      pcnt - workCurr * 100 / workTotal.
    • onEndTask

      protected void onEndTask(String taskName, int cmp, int totalWork, int pcnt)
      Finish the progress monitor when the total is known in advance.
      Specified by:
      onEndTask in class BatchingProgressMonitor
      Parameters:
      taskName - name of the task.
      cmp - total number of units processed.
      totalWork - estimated number of units to process.
      pcnt - workCurr * 100 / workTotal.
    • format

      private void format(StringBuilder s, String taskName, int cmp, int totalWork, int pcnt)
    • send

      private void send(StringBuilder s)