Package com.google.gerrit.server.git
Class MultiProgressMonitor.VolatileTask
java.lang.Object
com.google.gerrit.server.git.MultiProgressMonitor.Task
com.google.gerrit.server.git.MultiProgressMonitor.VolatileTask
- All Implemented Interfaces:
org.eclipse.jgit.lib.ProgressMonitor
- Enclosing class:
- MultiProgressMonitor
Handle for a sub-task whose total work can be updated while the task is in progress.
-
Field Summary
FieldsFields inherited from interface org.eclipse.jgit.lib.ProgressMonitor
UNKNOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Mark the total on this sub-task as unmodifiable.int
getTotal()
getTotalDisplay
(int total) void
updateTotal
(int workUnits) Update the total work for this sub-task.Methods inherited from class com.google.gerrit.server.git.MultiProgressMonitor.Task
beginTask, end, endTask, getCount, getName, isCancelled, showDuration, start, update
-
Field Details
-
volatileTotal
-
isTotalFinalized
-
-
Constructor Details
-
VolatileTask
-
-
Method Details
-
updateTotal
public void updateTotal(int workUnits) Update the total work for this sub-task.Intended to be called from a worker thread.
- Parameters:
workUnits
- number of work units to be added to existing total work.
-
finalizeTotal
public void finalizeTotal()Mark the total on this sub-task as unmodifiable.Intended to be called from a worker thread.
-
getTotal
public int getTotal()- Overrides:
getTotal
in classMultiProgressMonitor.Task
-
getTotalDisplay
- Overrides:
getTotalDisplay
in classMultiProgressMonitor.Task
-