java.lang.Object
org.eclipse.jgit.lib.BatchingProgressMonitor
org.eclipse.jgit.lib.TextProgressMonitor
- All Implemented Interfaces:
ProgressMonitor
A simple progress reporter printing on a stream.
-
Field Summary
Fields inherited from interface org.eclipse.jgit.lib.ProgressMonitor
UNKNOWN
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize a new progress monitor.Initialize a new progress monitor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Finish the progress monitor when the total is known in advance.protected void
Finish the progress monitor when the total wasn't known in advance.protected void
Update the progress monitor when the total is known in advance.protected void
Update the progress monitor if the total work isn't known,Methods inherited from class org.eclipse.jgit.lib.BatchingProgressMonitor
appendDuration, beginTask, endTask, isCancelled, setDelayStart, showDuration, start, update
-
Constructor Details
-
TextProgressMonitor
public TextProgressMonitor()Initialize a new progress monitor. -
TextProgressMonitor
Initialize a new progress monitor.- Parameters:
out
- the stream to receive messages on.
-
-
Method Details
-
onUpdate
Description copied from class:BatchingProgressMonitor
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.duration
- how long this task runs
-
onEndTask
Description copied from class:BatchingProgressMonitor
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.duration
- how long this task runs
-
onUpdate
Description copied from class:BatchingProgressMonitor
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
.duration
- how long this task runs
-
onEndTask
Description copied from class:BatchingProgressMonitor
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
.duration
- duration of the task
-