Package com.flowable.indexing
Class ReindexManagerImpl
java.lang.Object
com.flowable.indexing.ReindexManagerImpl
- All Implemented Interfaces:
- ReindexManager
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected ElasticsearchClientprotected IndexManagerprotected ProcessEngineConfigurationprotected ReindexingProperties
- 
Constructor SummaryConstructorsConstructorDescriptionReindexManagerImpl(IndexManager indexManager, ElasticsearchClient elasticsearchClient, ReindexingProperties reindexingProperties) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidreindex(String alias, ReindexRunnable reindexRunnable) Executes the providedReindexRunnable(containing the actual reindex logic), while taking care before and after the execution to properly housekeep the indices: 1.voidreindex(String alias, Collection<ReindexEntityPageHandler> reindexEntityPageHandlers) UsesReindexEntityPageHandler(s) to reindex data, page by page.voidsetProcessEngineConfiguration(ProcessEngineConfiguration processEngineConfiguration) protected booleanMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.flowable.indexing.ReindexManagerreindex
- 
Field Details- 
indexManager
- 
reindexingProperties
- 
elasticsearchClient
- 
processEngineConfiguration
 
- 
- 
Constructor Details- 
ReindexManagerImplpublic ReindexManagerImpl(IndexManager indexManager, ElasticsearchClient elasticsearchClient, ReindexingProperties reindexingProperties) 
 
- 
- 
Method Details- 
reindexDescription copied from interface:ReindexManagerExecutes the providedReindexRunnable(containing the actual reindex logic), while taking care before and after the execution to properly housekeep the indices: 1. String originalIndexName = getTheRealIndexName 2. Delete the alias for the index 3. create a new index (with prefix) 4. Execute custom reindex logic 5. Delete the original index Uses a genericReindexRunnablethat can contain any logic.- Specified by:
- reindexin interface- ReindexManager
 
- 
reindexDescription copied from interface:ReindexManagerUsesReindexEntityPageHandler(s) to reindex data, page by page. Internally, a newReindexRunnablewill be created and theReindexManager.reindex(String, ReindexRunnable)will be called.- Specified by:
- reindexin interface- ReindexManager
 
- 
waitForIndexJobsToBeProcessedprotected boolean waitForIndexJobsToBeProcessed()
- 
getProcessEngineConfiguration
- 
setProcessEngineConfiguration
 
-