#1281: IndexProgressMonitor.kt

projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/database/IndexProgressMonitor.kt Hibernate Search Monitor, projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/database/IndexProgressMonitor.kt 100 lines · 62 code · 26 comments · 12 blank
Implements Hibernate Search's MassIndexingMonitor to provide progress logging during mass reindexing. Logs at configurable percentage steps (50% by default, auto-adjusts based on entity count and indexing speed), reports elapsed time and entities/second rate, and tracks total/indexed entity counts with thread-safety.

Key Methods

MethodDescription
documentsAdded(increment)Called as entities are indexed; triggers progress logging
addToTotalCount(count)Sets total entity count; adjusts reporting step size

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
f570f0e53 Migration stuff in progress... (all tests of all packages: OK).
61f05ce90 Migration stuff in progress...
7798dac85 Migration stuff in progress... (all tests of all packages: OK).