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(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,
org.elasticsearch.action.bulk.BulkResponse bulkResponse) |
protected void |
scheduleNewHistoryJobForFailedRequests(CommandContext commandContext,
BulkIndexingSession bulkIndexingSession,
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(CommandContext commandContext, HistoryJobEntity historyJob)
execute
in interface BulkIndexRequestExecutor
protected void handleBulkResponse(CommandContext commandContext, BulkIndexingSession bulkIndexingSession, HistoryJobEntity historyJob, BulkRequest bulkRequest, org.elasticsearch.action.bulk.BulkResponse bulkResponse) throws IOException
IOException
protected void scheduleNewHistoryJobForFailedRequests(CommandContext commandContext, BulkIndexingSession bulkIndexingSession, HistoryJobEntity originalHistoryJobEntity, List<BulkRequestItem> failedRequests) throws IOException
IOException
protected com.fasterxml.jackson.databind.JsonNode getJobData(HistoryJobEntity job) throws IOException
IOException
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)
protected JobServiceConfiguration getJobServiceConfiguration(String scopeType, CommandContext commandContext)