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 ElasticsearchCompatibility
elasticsearchCompatibility
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
-
Constructor Summary
Constructors Constructor Description BulkIndexRequestExecutorImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchCompatibility elasticsearchCompatibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addHistoricData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, com.fasterxml.jackson.databind.node.ObjectNode objectNode, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
protected void
addHistoricData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, java.lang.String type, com.fasterxml.jackson.databind.node.ObjectNode data, java.lang.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 com.fasterxml.jackson.databind.JsonNode
getJobData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity job)
protected org.flowable.job.service.JobServiceConfiguration
getJobServiceConfiguration(java.lang.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, org.elasticsearch.action.bulk.BulkResponse bulkResponse)
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)
-
-
-
Field Detail
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
elasticsearchCompatibility
protected ElasticsearchCompatibility elasticsearchCompatibility
-
-
Constructor Detail
-
BulkIndexRequestExecutorImpl
public BulkIndexRequestExecutorImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchCompatibility elasticsearchCompatibility)
-
-
Method Detail
-
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, org.elasticsearch.action.bulk.BulkResponse bulkResponse) 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, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
-
addHistoricData
protected void addHistoricData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, java.lang.String type, com.fasterxml.jackson.databind.node.ObjectNode data, java.lang.String tenantId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
-
getJobServiceConfiguration
protected org.flowable.job.service.JobServiceConfiguration getJobServiceConfiguration(java.lang.String scopeType, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
-
-