Package com.atlassian.confluence.search
Class ReIndexTask
java.lang.Object
com.atlassian.confluence.search.ReIndexTask
- All Implemented Interfaces:
- ReIndexTaskInfo,- Runnable
- 
Constructor SummaryConstructorsConstructorDescriptionReIndexTask(Reindexer reIndexer, SearchableDao searchableDao, EnumSet<ReIndexOption> options, int jobID) ReIndexTask(Reindexer reIndexer, SearchableDao searchableDao, EnumSet<ReIndexOption> options, Optional<SearchQuery> searchQuery, int jobID) ReIndexTask(Reindexer reIndexer, SearchableDao searchableDao, List<String> spaceKeys, EnumSet<ReIndexOption> options, int jobID) ReIndexTask(Reindexer reIndexer, SearchableDao searchableDao, List<String> spaceKeys, EnumSet<ReIndexOption> options, Optional<SearchQuery> searchQuery, int jobID) 
- 
Method Summary
- 
Constructor Details- 
ReIndexTaskpublic ReIndexTask(Reindexer reIndexer, SearchableDao searchableDao, EnumSet<ReIndexOption> options, int jobID) - Parameters:
- reIndexer- The re-indexer to use.
- searchableDao- The data access object for searchable entities.
- options- Optional. Allows a subset of all searchable content to be re-indexed.
- jobID- the identifier for this task.
 
- 
ReIndexTaskpublic ReIndexTask(Reindexer reIndexer, SearchableDao searchableDao, EnumSet<ReIndexOption> options, Optional<SearchQuery> searchQuery, int jobID) - Parameters:
- reIndexer- The re-indexer to use.
- searchableDao- The data access object for searchable entities.
- options- Optional. Allows a subset of all searchable content to be re-indexed.
- searchQuery- Optional. A query that may be used to load the entities to be re-indexed. Pass null to index all entities from the database.
- jobID- the identifier for this task.
- Since:
- 5.10
 
- 
ReIndexTaskpublic ReIndexTask(Reindexer reIndexer, SearchableDao searchableDao, List<String> spaceKeys, EnumSet<ReIndexOption> options, int jobID) - Since:
- 8.2.0
 
- 
ReIndexTaskpublic ReIndexTask(Reindexer reIndexer, SearchableDao searchableDao, List<String> spaceKeys, EnumSet<ReIndexOption> options, Optional<SearchQuery> searchQuery, int jobID) - Parameters:
- reIndexer- The re-indexer to use.
- searchableDao- The data access object for searchable entities.
- options- Optional. Allows a subset of all searchable content to be re-indexed.
- searchQuery- Optional. A query that may be used to load the entities to be re-indexed. Pass null to index all entities from the database.
- jobID- the identifier for this task.
- Since:
- 8.2.0
 
 
- 
- 
Method Details- 
runpublic void run()
- 
getName
- 
getCompactElapsedTime- Specified by:
- getCompactElapsedTimein interface- ReIndexTaskInfo
- Returns:
- a compact string representation of the elapsed time since the task started
 
- 
getProgress
- 
isFinishedReindexingpublic boolean isFinishedReindexing()- Specified by:
- isFinishedReindexingin interface- ReIndexTaskInfo
- Returns:
- true if the reindexing task has finished, false if it is still in progress
 
- 
getJobIDpublic int getJobID()- Specified by:
- getJobIDin interface- ReIndexTaskInfo
- Returns:
- the unique identifier for this reindexing job
 
- 
getStartTimepublic long getStartTime()
- 
getPercentCompletepublic int getPercentComplete()- Specified by:
- getPercentCompletein interface- ReIndexTaskInfo
- Returns:
- the percentage of completion as an integer from 0 to 100
 
 
-