Class ReindexManager


  • public class ReindexManager
    extends Object
    Class to coordinate the index rebuilding tasks.
    Since:
    6.0.0
    Author:
    whikloj
    • Method Detail

      • stop

        public void stop()
        Stop all threads.
      • getIds

        public List<StringgetIds()
        Return a batch of OCFL ids to reindex.
        Returns:
        list of OCFL ids.
      • updateComplete

        public void updateComplete​(int batchSuccessful,
                                   int batchErrors)
        Update the master list of reindexing states.
        Parameters:
        batchSuccessful - how many items were completed successfully in the last batch.
        batchErrors - how many items had an error in the last batch.
      • getCompletedCount

        public int getCompletedCount()
        Returns:
        the count of items that completed successfully.
      • getErrorCount

        public int getErrorCount()
        Returns:
        the count of items that had errors.
      • shutdown

        public void shutdown()
        Close stream.