Package com.google.gerrit.server.git
Class MultiProgressMonitor.Task
java.lang.Object
com.google.gerrit.server.git.MultiProgressMonitor.Task
- All Implemented Interfaces:
- org.eclipse.jgit.lib.ProgressMonitor
- Direct Known Subclasses:
- MultiProgressMonitor.VolatileTask
- Enclosing class:
- MultiProgressMonitor
public class MultiProgressMonitor.Task
extends Object
implements org.eclipse.jgit.lib.ProgressMonitor
Handle for a sub-task.
- 
Field SummaryFields inherited from interface org.eclipse.jgit.lib.ProgressMonitorUNKNOWN
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidend()Indicate that this sub-task is finished.voidendTask()intgetCount()getName()intgetTotal()getTotalDisplay(int total) booleanvoidshowDuration(boolean enabled) voidstart(int totalTasks) voidupdate(int completed) Indicate that work has been completed on this sub-task.
- 
Method Details- 
updatepublic void update(int completed) Indicate that work has been completed on this sub-task.Must be called from a worker thread. - Specified by:
- updatein interface- org.eclipse.jgit.lib.ProgressMonitor
- Parameters:
- completed- number of work units completed.
 
- 
endpublic void end()Indicate that this sub-task is finished.Must be called from a worker thread. 
- 
startpublic void start(int totalTasks) - Specified by:
- startin interface- org.eclipse.jgit.lib.ProgressMonitor
 
- 
beginTask- Specified by:
- beginTaskin interface- org.eclipse.jgit.lib.ProgressMonitor
 
- 
endTaskpublic void endTask()- Specified by:
- endTaskin interface- org.eclipse.jgit.lib.ProgressMonitor
 
- 
isCancelledpublic boolean isCancelled()- Specified by:
- isCancelledin interface- org.eclipse.jgit.lib.ProgressMonitor
 
- 
getCountpublic int getCount()
- 
getTotalpublic int getTotal()
- 
getName
- 
getTotalDisplay
- 
showDurationpublic void showDuration(boolean enabled) - Specified by:
- showDurationin interface- org.eclipse.jgit.lib.ProgressMonitor
 
 
-