Package org.eclipse.jgit.transport
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 Summary
Fields Modifier and Type Field Description private java.io.OutputStreamoutprivate booleanwrite-
Fields inherited from interface org.eclipse.jgit.lib.ProgressMonitor
UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description SideBandProgressMonitor(java.io.OutputStream os)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidformat(java.lang.StringBuilder s, java.lang.String taskName, int workCurr)private voidformat(java.lang.StringBuilder s, java.lang.String taskName, int cmp, int totalWork, int pcnt)protected voidonEndTask(java.lang.String taskName, int workCurr)Finish the progress monitor when the total wasn't known in advance.protected voidonEndTask(java.lang.String taskName, int cmp, int totalWork, int pcnt)Finish the progress monitor when the total is known in advance.protected voidonUpdate(java.lang.String taskName, int workCurr)Update the progress monitor if the total work isn't known,protected voidonUpdate(java.lang.String taskName, int cmp, int totalWork, int pcnt)Update the progress monitor when the total is known in advance.private voidsend(java.lang.StringBuilder s)-
Methods inherited from class org.eclipse.jgit.lib.BatchingProgressMonitor
beginTask, endTask, isCancelled, setDelayStart, start, update
-
-
-
-
Method Detail
-
onUpdate
protected void onUpdate(java.lang.String taskName, int workCurr)Update the progress monitor if the total work isn't known,- Specified by:
onUpdatein classBatchingProgressMonitor- Parameters:
taskName- name of the task.workCurr- number of units already completed.
-
onEndTask
protected void onEndTask(java.lang.String taskName, int workCurr)Finish the progress monitor when the total wasn't known in advance.- Specified by:
onEndTaskin classBatchingProgressMonitor- Parameters:
taskName- name of the task.workCurr- total number of units processed.
-
format
private void format(java.lang.StringBuilder s, java.lang.String taskName, int workCurr)
-
onUpdate
protected void onUpdate(java.lang.String taskName, int cmp, int totalWork, int pcnt)Update the progress monitor when the total is known in advance.- Specified by:
onUpdatein classBatchingProgressMonitor- 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(java.lang.String taskName, int cmp, int totalWork, int pcnt)Finish the progress monitor when the total is known in advance.- Specified by:
onEndTaskin classBatchingProgressMonitor- 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(java.lang.StringBuilder s, java.lang.String taskName, int cmp, int totalWork, int pcnt)
-
send
private void send(java.lang.StringBuilder s)
-
-