Class PlatformReindexServiceImpl
java.lang.Object
com.flowable.platform.service.index.PlatformReindexServiceImpl
- All Implemented Interfaces:
PlatformReindexService,SynchronousPlatformReindexService
public class PlatformReindexServiceImpl
extends Object
implements PlatformReindexService, SynchronousPlatformReindexService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActivityIndexingSchedulerprotected CaseInstanceIndexingSchedulerprotected CmmnEngineprotected ContentItemIndexingSchedulerprotected CoreContentServiceprotected Collection<String>protected PlanItemInstanceIndexingSchedulerprotected ProcessEngineprotected ProcessInstanceIndexingSchedulerprotected ReindexManagerprotected TaskIndexingSchedulerprotected WorkIndexingScheduler -
Constructor Summary
ConstructorsConstructorDescriptionPlatformReindexServiceImpl(ProcessEngine processEngine, CmmnEngine cmmnEngine, CoreContentService contentService, ReindexManager reindexManager, ProcessInstanceIndexingScheduler processInstanceIndexingScheduler, CaseInstanceIndexingScheduler caseInstanceIndexingScheduler, TaskIndexingScheduler taskIndexingScheduler, PlanItemInstanceIndexingScheduler planItemInstanceIndexingScheduler, WorkIndexingScheduler workIndexingScheduler, ActivityIndexingScheduler activityIndexingScheduler, ContentItemIndexingScheduler contentItemIndexingScheduler, Collection<String> enabledIndices) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisIndexingDisabled(String index) Checks if indexing is disabled for the provided index.voidReindex all process activity instances in the database.voidreindexActivity(String activityInstanceId) Reindex one activity instance.voidreindexCaseInstance(String caseInstanceId) Reindex one case instance.voidReindex all case instances in the database.voidreindexContentItem(String contentItemId) Reindex one content item.voidReindex all content items in the database.voidreindexPlanItemInstance(String planItemInstanceId) Reindex one plan item instance.voidReindex all plan item instances in the database.voidreindexProcessInstance(String processInstanceId) Reindex one process instance.voidReindex all process instances in the database.voidreindexTask(String taskId) Reindex one task.voidReindex all tasks in the database.voidReindex all work instances (i.e.voidvoidsynchronousReindexActivity(String activityInstanceId) voidsynchronousReindexCaseInstance(String caseInstanceId) voidvoidsynchronousReindexContentItem(String contentItemId) voidvoidsynchronousReindexPlanItemInstance(String planItemInstanceId) voidvoidsynchronousReindexProcessInstance(String processInstanceId) voidvoidsynchronousReindexTask(String taskId) voidvoidvoidsynchronousReindexWorkCaseInstance(String caseInstanceId) voidsynchronousReindexWorkProcessInstance(String processInstanceId)
-
Field Details
-
processEngine
-
cmmnEngine
-
contentService
-
reindexManager
-
processInstanceIndexingScheduler
-
caseInstanceIndexingScheduler
-
planItemInstanceIndexingScheduler
-
taskIndexingScheduler
-
workIndexingScheduler
-
activityIndexingScheduler
-
contentItemIndexingScheduler
-
enabledIndices
-
-
Constructor Details
-
PlatformReindexServiceImpl
public PlatformReindexServiceImpl(ProcessEngine processEngine, CmmnEngine cmmnEngine, CoreContentService contentService, ReindexManager reindexManager, ProcessInstanceIndexingScheduler processInstanceIndexingScheduler, CaseInstanceIndexingScheduler caseInstanceIndexingScheduler, TaskIndexingScheduler taskIndexingScheduler, PlanItemInstanceIndexingScheduler planItemInstanceIndexingScheduler, WorkIndexingScheduler workIndexingScheduler, ActivityIndexingScheduler activityIndexingScheduler, ContentItemIndexingScheduler contentItemIndexingScheduler, Collection<String> enabledIndices)
-
-
Method Details
-
reindexProcessInstances
Description copied from interface:PlatformReindexServiceReindex all process instances in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread.- Specified by:
reindexProcessInstancesin interfacePlatformReindexService
-
synchronousReindexProcessInstances
public void synchronousReindexProcessInstances()- Specified by:
synchronousReindexProcessInstancesin interfaceSynchronousPlatformReindexService
-
reindexProcessInstance
Description copied from interface:PlatformReindexServiceReindex one process instance. This method, contrary toPlatformReindexService.reindexProcessInstance(String)runs synchronously. If the process instance is a root process instance, data changes will be propagated to all children.- Specified by:
reindexProcessInstancein interfacePlatformReindexService
-
synchronousReindexProcessInstance
- Specified by:
synchronousReindexProcessInstancein interfaceSynchronousPlatformReindexService
-
reindexCaseInstances
Description copied from interface:PlatformReindexServiceReindex all case instances in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread.- Specified by:
reindexCaseInstancesin interfacePlatformReindexService
-
synchronousReindexCaseInstances
public void synchronousReindexCaseInstances()- Specified by:
synchronousReindexCaseInstancesin interfaceSynchronousPlatformReindexService
-
reindexCaseInstance
Description copied from interface:PlatformReindexServiceReindex one case instance. This method, contrary toPlatformReindexService.reindexCaseInstance(String)runs synchronously. If the process instance is a root process instance, data changes will be propagated to all children.- Specified by:
reindexCaseInstancein interfacePlatformReindexService
-
synchronousReindexCaseInstance
- Specified by:
synchronousReindexCaseInstancein interfaceSynchronousPlatformReindexService
-
reindexPlanItemInstances
Description copied from interface:PlatformReindexServiceReindex all plan item instances in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread.- Specified by:
reindexPlanItemInstancesin interfacePlatformReindexService
-
synchronousReindexPlanItemInstances
public void synchronousReindexPlanItemInstances()- Specified by:
synchronousReindexPlanItemInstancesin interfaceSynchronousPlatformReindexService
-
reindexPlanItemInstance
Description copied from interface:PlatformReindexServiceReindex one plan item instance. This method, contrary toPlatformReindexService.reindexCaseInstance(String)runs synchronously.- Specified by:
reindexPlanItemInstancein interfacePlatformReindexService
-
synchronousReindexPlanItemInstance
- Specified by:
synchronousReindexPlanItemInstancein interfaceSynchronousPlatformReindexService
-
reindexTasks
Description copied from interface:PlatformReindexServiceReindex all tasks in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread.- Specified by:
reindexTasksin interfacePlatformReindexService
-
synchronousReindexTasks
public void synchronousReindexTasks()- Specified by:
synchronousReindexTasksin interfaceSynchronousPlatformReindexService
-
reindexTask
Description copied from interface:PlatformReindexServiceReindex one task. This method, contrary toPlatformReindexService.reindexCaseInstance(String)runs synchronously.- Specified by:
reindexTaskin interfacePlatformReindexService
-
synchronousReindexTask
- Specified by:
synchronousReindexTaskin interfaceSynchronousPlatformReindexService
-
reindexWork
Description copied from interface:PlatformReindexServiceReindex all work instances (i.e. root process and case instances) in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread. There is no 'single work instance' reindex method. This is done by callingPlatformReindexService.reindexProcessInstance(String)orPlatformReindexService.reindexCaseInstance(String), which will update the work index if the instance is a root instance.- Specified by:
reindexWorkin interfacePlatformReindexService
-
isIndexingDisabled
Description copied from interface:PlatformReindexServiceChecks if indexing is disabled for the provided index. This method runs synchronously.- Specified by:
isIndexingDisabledin interfacePlatformReindexService- Returns:
- true if the indexing is disabled.
-
synchronousReindexWork
public void synchronousReindexWork()- Specified by:
synchronousReindexWorkin interfaceSynchronousPlatformReindexService
-
synchronousReindexWorkProcessInstance
- Specified by:
synchronousReindexWorkProcessInstancein interfaceSynchronousPlatformReindexService
-
synchronousReindexWorkCaseInstance
- Specified by:
synchronousReindexWorkCaseInstancein interfaceSynchronousPlatformReindexService
-
reindexActivities
Description copied from interface:PlatformReindexServiceReindex all process activity instances in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread.- Specified by:
reindexActivitiesin interfacePlatformReindexService
-
synchronousReindexActivities
public void synchronousReindexActivities()- Specified by:
synchronousReindexActivitiesin interfaceSynchronousPlatformReindexService
-
reindexActivity
Description copied from interface:PlatformReindexServiceReindex one activity instance. This method, contrary toPlatformReindexService.reindexCaseInstance(String)runs synchronously.- Specified by:
reindexActivityin interfacePlatformReindexService
-
synchronousReindexActivity
- Specified by:
synchronousReindexActivityin interfaceSynchronousPlatformReindexService
-
reindexContentItems
Description copied from interface:PlatformReindexServiceReindex all content items in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread.- Specified by:
reindexContentItemsin interfacePlatformReindexService
-
synchronousReindexContentItems
public void synchronousReindexContentItems()- Specified by:
synchronousReindexContentItemsin interfaceSynchronousPlatformReindexService
-
reindexContentItem
Description copied from interface:PlatformReindexServiceReindex one content item. This method, contrary toPlatformReindexService.reindexCaseInstance(String)runs synchronously.- Specified by:
reindexContentItemin interfacePlatformReindexService
-
synchronousReindexContentItem
- Specified by:
synchronousReindexContentItemin interfaceSynchronousPlatformReindexService
-