Class IndexerTask

  • All Implemented Interfaces:
    Runnable

    public class IndexerTask
    extends Task
    This task enlists all non-indexed documents and performs the indexing
    Since:
    4.0
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • IndexerTask

        public IndexerTask()
    • Method Detail

      • setDocumentManager

        public void setDocumentManager​(DocumentManager documentManager)
      • setDocumentDao

        public void setDocumentDao​(DocumentDAO documentDao)
      • isIndeterminate

        public boolean isIndeterminate()
        Description copied from class: Task
        Concrete implementations must override this method declaring if the task is indeterminate. An indeterminate task is not able to compute it's time length
        Specified by:
        isIndeterminate in class Task
        Returns:
        true if the task is indeterminate
      • isConcurrent

        public boolean isConcurrent()
        Description copied from class: Task
        Concrete implementations must override this method declaring if the task supports multiple instances running concurrently.
        Specified by:
        isConcurrent in class Task
        Returns:
        true if the task is concurrent
      • prepareQuery

        public static String[] prepareQuery()
      • setIndexer

        public void setIndexer​(SearchEngine indexer)
      • setTenantDao

        public void setTenantDao​(TenantDAO tenantDao)
      • killIndexerThreads

        public static void killIndexerThreads()
        Stops all the Indexer threads