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 boolean
True when timer expires and output should occur on next update.private int
Percentage oftotalWork
that is done.private int
Number of work units already completed.private boolean
True if the task has displayed anything.private final String
Title of the current task.private Future
<?> Scheduled timer, supporting cancellation if task ends early.private final int
Number of work units, orProgressMonitor.UNKNOWN
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) void
private void
void
run()
(package private) void
update
(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 oftotalWork
that is done.
-
-
Constructor Details
-
Task
Task(String taskName, int totalWork)
-
-
Method Details