Class TaskCompletionMonitor
java.lang.Object
org.variantsync.diffdetective.analysis.monitoring.TaskCompletionMonitor
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private final int
private final Consumer<TaskCompletionMonitor.TimeInfo>
private long
private int
-
Constructor Summary
ConstructorDescriptionTaskCompletionMonitor
(int seconds, Consumer<TaskCompletionMonitor.TimeInfo> progressReporter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFinishedTasks
(int numberOfFinishedTasks) LogProgress
(String tasksName) void
void
start()
-
Field Details
-
progressReporter
-
msToWait
private final int msToWait -
lastMeasurement
private long lastMeasurement -
startTime
private long startTime -
tasksDone
private int tasksDone
-
-
Constructor Details
-
TaskCompletionMonitor
public TaskCompletionMonitor(int seconds, Consumer<TaskCompletionMonitor.TimeInfo> progressReporter)
-
-
Method Details
-
start
public void start() -
addFinishedTasks
public void addFinishedTasks(int numberOfFinishedTasks) -
reportProgress
public void reportProgress() -
LogProgress
-