Class ReindexManagerImpl
java.lang.Object
com.flowable.indexing.ReindexManagerImpl
- All Implemented Interfaces:
ReindexManager
Starts a resumable reindex batch within a single DB transaction. The index-page parts are deliberately not
created here; the status timer creates them only once the dual-write propagation window has elapsed, so no
entity is read for the backfill until every pod is guaranteed to be dual-writing to the new index.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ElasticsearchClientprotected final org.flowable.engine.impl.cfg.ProcessEngineConfigurationImplprotected final IndexManagerprotected final ReindexingProperties -
Constructor Summary
ConstructorsConstructorDescriptionReindexManagerImpl(org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration, ElasticsearchClient elasticsearchClient, IndexManager indexManager, ReindexingProperties reindexingProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected ReindexBatchDocumentbuildBatchDocument(Map<String, ReindexEntityPageHandler> handlers, int pageSize) voidreindex(String alias, Map<String, ReindexEntityPageHandler> handlerMap) protected voidrejectIfActiveBatchExists(String alias) protected StringserializeJson(tools.jackson.databind.ObjectMapper objectMapper, Object obj)
-
Field Details
-
engineConfiguration
protected final org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl engineConfiguration -
elasticsearchClient
-
indexManager
-
reindexingProperties
-
-
Constructor Details
-
ReindexManagerImpl
public ReindexManagerImpl(org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration, ElasticsearchClient elasticsearchClient, IndexManager indexManager, ReindexingProperties reindexingProperties)
-
-
Method Details
-
reindex
- Specified by:
reindexin interfaceReindexManager
-
rejectIfActiveBatchExists
-
buildBatchDocument
protected ReindexBatchDocument buildBatchDocument(Map<String, ReindexEntityPageHandler> handlers, int pageSize) -
serializeJson
-