Package com.flowable.indexing
Class ReindexManagerImpl
java.lang.Object
com.flowable.indexing.ReindexManagerImpl
- All Implemented Interfaces:
ReindexManager
public class ReindexManagerImpl extends java.lang.Object implements ReindexManager
-
Field Summary
Fields Modifier and Type Field Description protected ElasticsearchClientelasticsearchClientprotected IndexManagerindexManagerprotected org.flowable.engine.ProcessEngineConfigurationprocessEngineConfigurationprotected ReindexingPropertiesreindexingProperties -
Constructor Summary
Constructors Constructor Description ReindexManagerImpl(IndexManager indexManager, ElasticsearchClient elasticsearchClient, ReindexingProperties reindexingProperties) -
Method Summary
Modifier and Type Method Description org.flowable.engine.ProcessEngineConfigurationgetProcessEngineConfiguration()voidreindex(java.lang.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(java.lang.String alias, java.util.Collection<ReindexEntityPageHandler> reindexEntityPageHandlers)UsesReindexEntityPageHandler(s) to reindex data, page by page.voidsetProcessEngineConfiguration(org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration)protected booleanwaitForIndexJobsToBeProcessed()
-
Field Details
-
indexManager
-
reindexingProperties
-
elasticsearchClient
-
processEngineConfiguration
protected org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration
-
-
Constructor Details
-
ReindexManagerImpl
public ReindexManagerImpl(IndexManager indexManager, ElasticsearchClient elasticsearchClient, ReindexingProperties reindexingProperties)
-
-
Method Details
-
reindex
Description 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 interfaceReindexManager
-
reindex
public void reindex(java.lang.String alias, java.util.Collection<ReindexEntityPageHandler> reindexEntityPageHandlers)Description 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 interfaceReindexManager
-
waitForIndexJobsToBeProcessed
protected boolean waitForIndexJobsToBeProcessed() -
getProcessEngineConfiguration
public org.flowable.engine.ProcessEngineConfiguration getProcessEngineConfiguration() -
setProcessEngineConfiguration
public void setProcessEngineConfiguration(org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration)
-