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 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(HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, com.fasterxml.jackson.databind.node.ObjectNode objectNode, CommandContext commandContext)
protected void
addHistoricData(HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, String type, com.fasterxml.jackson.databind.node.ObjectNode data, String tenantId, CommandContext commandContext)
void
execute(CommandContext commandContext, HistoryJobEntity historyJob)
protected com.fasterxml.jackson.databind.JsonNode
getJobData(HistoryJobEntity job)
protected JobServiceConfiguration
getJobServiceConfiguration(String scopeType, CommandContext commandContext)
protected void
handleBulkResponse(CommandContext commandContext, BulkIndexingSession bulkIndexingSession, HistoryJobEntity historyJob, BulkRequest bulkRequest, ElasticsearchBulkResponse bulkResponse)
protected void
scheduleNewHistoryJobForFailedRequests(CommandContext commandContext, BulkIndexingSession bulkIndexingSession, HistoryJobEntity originalHistoryJobEntity, 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(CommandContext commandContext, HistoryJobEntity historyJob)
- Specified by:
execute
in interfaceBulkIndexRequestExecutor
-
handleBulkResponse
protected void handleBulkResponse(CommandContext commandContext, BulkIndexingSession bulkIndexingSession, HistoryJobEntity historyJob, BulkRequest bulkRequest, ElasticsearchBulkResponse bulkResponse)
-
scheduleNewHistoryJobForFailedRequests
protected void scheduleNewHistoryJobForFailedRequests(CommandContext commandContext, BulkIndexingSession bulkIndexingSession, HistoryJobEntity originalHistoryJobEntity, List<BulkRequestItem> failedRequests)
-
getJobData
protected com.fasterxml.jackson.databind.JsonNode getJobData(HistoryJobEntity job) throws IOException
- Throws:
IOException
-
addHistoricData
protected void addHistoricData(HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, com.fasterxml.jackson.databind.node.ObjectNode objectNode, CommandContext commandContext)
-
addHistoricData
protected void addHistoricData(HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, String type, com.fasterxml.jackson.databind.node.ObjectNode data, String tenantId, CommandContext commandContext)
-
getJobServiceConfiguration
protected JobServiceConfiguration getJobServiceConfiguration(String scopeType, CommandContext commandContext)
-
-