Package org.eclipse.jgit.transport
Class SideBandProgressMonitor
java.lang.Object
org.eclipse.jgit.lib.BatchingProgressMonitor
org.eclipse.jgit.transport.SideBandProgressMonitor
- All Implemented Interfaces:
ProgressMonitor
Write progress messages out to the sideband channel.
-
Field Summary
FieldsFields inherited from interface org.eclipse.jgit.lib.ProgressMonitor
UNKNOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
format
(StringBuilder s, String taskName, int workCurr) private void
format
(StringBuilder s, String taskName, int cmp, int totalWork, int pcnt) protected void
Finish the progress monitor when the total wasn't known in advance.protected void
Finish the progress monitor when the total is known in advance.protected void
Update the progress monitor if the total work isn't known,protected void
Update the progress monitor when the total is known in advance.private void
Methods inherited from class org.eclipse.jgit.lib.BatchingProgressMonitor
beginTask, endTask, isCancelled, setDelayStart, start, update
-
Field Details
-
out
-
write
private boolean write
-
-
Constructor Details
-
SideBandProgressMonitor
SideBandProgressMonitor(OutputStream os)
-
-
Method Details
-
onUpdate
Update the progress monitor if the total work isn't known,- Specified by:
onUpdate
in classBatchingProgressMonitor
- Parameters:
taskName
- name of the task.workCurr
- number of units already completed.
-
onEndTask
Finish the progress monitor when the total wasn't known in advance.- Specified by:
onEndTask
in classBatchingProgressMonitor
- Parameters:
taskName
- name of the task.workCurr
- total number of units processed.
-
format
-
onUpdate
Update the progress monitor when the total is known in advance.- Specified by:
onUpdate
in 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
Finish the progress monitor when the total is known in advance.- Specified by:
onEndTask
in 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
-
send
-