Package org.eclipse.jgit.lib
Class BatchingProgressMonitor.Task
java.lang.Object
org.eclipse.jgit.lib.BatchingProgressMonitor.Task
- All Implemented Interfaces:
Runnable
- Enclosing class:
- BatchingProgressMonitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanTrue when timer expires and output should occur on next update.private intPercentage oftotalWorkthat is done.private intNumber of work units already completed.private booleanTrue if the task has displayed anything.private final StringTitle of the current task.private Future<?>Scheduled timer, supporting cancellation if task ends early.private final intNumber of work units, orProgressMonitor.UNKNOWN. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) voidprivate voidvoidrun()(package private) voidupdate(BatchingProgressMonitor pm, int completed)
-
Field Details
-
taskName
Title of the current task. -
totalWork
private final int totalWorkNumber of work units, orProgressMonitor.UNKNOWN. -
display
private volatile boolean displayTrue when timer expires and output should occur on next update. -
timerFuture
Scheduled timer, supporting cancellation if task ends early. -
output
private boolean outputTrue if the task has displayed anything. -
lastWork
private int lastWorkNumber of work units already completed. -
lastPercent
private int lastPercentPercentage oftotalWorkthat is done.
-
-
Constructor Details
-
Task
Task(String taskName, int totalWork)
-
-
Method Details