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 Summary
Fields inherited from interface org.eclipse.jgit.lib.ProgressMonitor
UNKNOWN
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
end()
Indicate that this sub-task is finished.void
endTask()
int
getCount()
getName()
int
getTotal()
getTotalDisplay
(int total) boolean
void
showDuration
(boolean enabled) void
start
(int totalTasks) void
update
(int completed) Indicate that work has been completed on this sub-task.
-
Method Details
-
update
public void update(int completed) Indicate that work has been completed on this sub-task.Must be called from a worker thread.
- Specified by:
update
in interfaceorg.eclipse.jgit.lib.ProgressMonitor
- Parameters:
completed
- number of work units completed.
-
end
public void end()Indicate that this sub-task is finished.Must be called from a worker thread.
-
start
public void start(int totalTasks) - Specified by:
start
in interfaceorg.eclipse.jgit.lib.ProgressMonitor
-
beginTask
- Specified by:
beginTask
in interfaceorg.eclipse.jgit.lib.ProgressMonitor
-
endTask
public void endTask()- Specified by:
endTask
in interfaceorg.eclipse.jgit.lib.ProgressMonitor
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.eclipse.jgit.lib.ProgressMonitor
-
getCount
public int getCount() -
getTotal
public int getTotal() -
getName
-
getTotalDisplay
-
showDuration
public void showDuration(boolean enabled) - Specified by:
showDuration
in interfaceorg.eclipse.jgit.lib.ProgressMonitor
-