Package com.flowable.indexing.job.impl
Class BulkIndexRequestExecutorImpl
java.lang.Object
com.flowable.indexing.job.impl.BulkIndexRequestExecutorImpl
- All Implemented Interfaces:
BulkIndexRequestExecutor
public class BulkIndexRequestExecutorImpl extends java.lang.Object implements BulkIndexRequestExecutor
-
Field Summary
Fields Modifier and Type Field Description protected ElasticsearchCompatibilityelasticsearchCompatibilityprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapper -
Constructor Summary
Constructors Constructor Description BulkIndexRequestExecutorImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchCompatibility elasticsearchCompatibility) -
Method Summary
Modifier and Type Method Description protected voidaddHistoricData(AsyncIndexingHistorySession asyncIndexingHistorySession, java.lang.String type, com.fasterxml.jackson.databind.node.ObjectNode data, java.lang.String tenantId)protected voidaddHistoricData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, com.fasterxml.jackson.databind.node.ObjectNode objectNode)voidexecute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJob)protected com.fasterxml.jackson.databind.JsonNodegetJobData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity job)protected voidhandleBulkResponse(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, BulkIndexingSession bulkIndexingSession, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJob, BulkRequest bulkRequest, org.elasticsearch.action.bulk.BulkResponse bulkResponse)protected voidrescheduleFailedHistoryJob(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJobEntity)protected voidscheduleNewHistoryJobForFailedRequests(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, BulkIndexingSession bulkIndexingSession, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, java.util.List<BulkRequestItem> failedRequests)
-
Field Details
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
elasticsearchCompatibility
-
-
Constructor Details
-
BulkIndexRequestExecutorImpl
public BulkIndexRequestExecutorImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchCompatibility elasticsearchCompatibility)
-
-
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:
executein 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, org.elasticsearch.action.bulk.BulkResponse bulkResponse) throws java.io.IOException- Throws:
java.io.IOException
-
rescheduleFailedHistoryJob
protected void rescheduleFailedHistoryJob(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJobEntity) throws java.io.IOException- Throws:
java.io.IOException
-
scheduleNewHistoryJobForFailedRequests
protected void scheduleNewHistoryJobForFailedRequests(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, BulkIndexingSession bulkIndexingSession, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, java.util.List<BulkRequestItem> failedRequests) throws java.io.IOException- Throws:
java.io.IOException
-
getJobData
protected com.fasterxml.jackson.databind.JsonNode getJobData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity job) throws java.io.IOException- Throws:
java.io.IOException
-
addHistoricData
protected void addHistoricData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, com.fasterxml.jackson.databind.node.ObjectNode objectNode) -
addHistoricData
protected void addHistoricData(AsyncIndexingHistorySession asyncIndexingHistorySession, java.lang.String type, com.fasterxml.jackson.databind.node.ObjectNode data, java.lang.String tenantId)
-