public class BulkIndexRequestExecutorImpl extends Object implements BulkIndexRequestExecutor
Modifier and Type | Field and Description |
---|---|
protected ElasticsearchCompatibility |
elasticsearchCompatibility |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
Constructor and Description |
---|
BulkIndexRequestExecutorImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
ElasticsearchCompatibility elasticsearchCompatibility) |
Modifier and Type | Method and Description |
---|---|
protected void |
addHistoricData(AsyncIndexingHistorySession asyncIndexingHistorySession,
String type,
com.fasterxml.jackson.databind.node.ObjectNode data,
String tenantId) |
protected void |
addHistoricData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity,
AsyncIndexingHistorySession asyncIndexingHistorySession,
com.fasterxml.jackson.databind.node.ObjectNode objectNode) |
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 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 |
rescheduleFailedHistoryJob(org.flowable.common.engine.impl.interceptor.CommandContext commandContext,
org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJobEntity) |
protected void |
scheduleNewHistoryJobForFailedRequests(org.flowable.common.engine.impl.interceptor.CommandContext commandContext,
BulkIndexingSession bulkIndexingSession,
org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity,
List<BulkRequestItem> failedRequests) |
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected ElasticsearchCompatibility elasticsearchCompatibility
public BulkIndexRequestExecutorImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchCompatibility elasticsearchCompatibility)
public void execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJob)
execute
in interface BulkIndexRequestExecutor
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 IOException
IOException
protected void rescheduleFailedHistoryJob(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity historyJobEntity) throws IOException
IOException
protected void scheduleNewHistoryJobForFailedRequests(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, BulkIndexingSession bulkIndexingSession, org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, List<BulkRequestItem> failedRequests) throws IOException
IOException
protected com.fasterxml.jackson.databind.JsonNode getJobData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity job) throws IOException
IOException
protected void addHistoricData(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
protected void addHistoricData(AsyncIndexingHistorySession asyncIndexingHistorySession, String type, com.fasterxml.jackson.databind.node.ObjectNode data, String tenantId)
Copyright © 2019. All rights reserved.