Package com.flowable.indexing.job.impl
Class BulkIndexRequestExecutorImpl
java.lang.Object
com.flowable.indexing.job.impl.BulkIndexRequestExecutorImpl
- All Implemented Interfaces:
BulkIndexRequestExecutor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected ElasticsearchCompatibility
protected com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
ConstructorsConstructorDescriptionBulkIndexRequestExecutorImpl
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchCompatibility elasticsearchCompatibility, int defaultNrOfRetries) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addHistoricData
(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, String type, com.fasterxml.jackson.databind.node.ObjectNode data, String tenantId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) void
execute
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJob) protected org.flowable.job.service.JobServiceConfiguration
getJobServiceConfiguration
(String scopeType, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected void
handleBulkResponse
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, BulkIndexingSession bulkIndexingSession, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJob, BulkRequest bulkRequest, ElasticsearchBulkResponse bulkResponse) protected void
scheduleNewHistoryJobForRequestsInError
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, BulkIndexingSession bulkIndexingSession, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, List<BulkRequestItem> failedRequests, List<BulkRequestItem> conflictingRequests) protected boolean
shouldScheduleNewHistoryJobForRequestsInError
(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJobEntity, List<BulkRequestItem> failedRequests, List<BulkRequestItem> conflictingRequests)
-
Field Details
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
elasticsearchCompatibility
-
defaultNrOfRetries
protected int defaultNrOfRetries
-
-
Constructor Details
-
BulkIndexRequestExecutorImpl
public BulkIndexRequestExecutorImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchCompatibility elasticsearchCompatibility, int defaultNrOfRetries)
-
-
Method Details
-
execute
public void execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJob) - Specified by:
execute
in interfaceBulkIndexRequestExecutor
-
handleBulkResponse
protected void handleBulkResponse(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, BulkIndexingSession bulkIndexingSession, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJob, BulkRequest bulkRequest, ElasticsearchBulkResponse bulkResponse) -
shouldScheduleNewHistoryJobForRequestsInError
protected boolean shouldScheduleNewHistoryJobForRequestsInError(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJobEntity, List<BulkRequestItem> failedRequests, List<BulkRequestItem> conflictingRequests) -
scheduleNewHistoryJobForRequestsInError
protected void scheduleNewHistoryJobForRequestsInError(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, BulkIndexingSession bulkIndexingSession, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, List<BulkRequestItem> failedRequests, List<BulkRequestItem> conflictingRequests) -
addHistoricData
protected void addHistoricData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, String type, com.fasterxml.jackson.databind.node.ObjectNode data, String tenantId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getJobServiceConfiguration
protected org.flowable.job.service.JobServiceConfiguration getJobServiceConfiguration(String scopeType, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
-