Package com.flowable.indexing.job.impl
Class BulkIndexRequestExecutorImpl
java.lang.Object
com.flowable.indexing.job.impl.BulkIndexRequestExecutorImpl
- All Implemented Interfaces:
BulkIndexRequestExecutor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected ElasticsearchCompatibilityprotected com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
ConstructorsConstructorDescriptionBulkIndexRequestExecutorImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchCompatibility elasticsearchCompatibility, int defaultNrOfRetries) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddHistoricData(HistoryJobEntity originalHistoryJobEntity, AsyncIndexingHistorySession asyncIndexingHistorySession, String type, com.fasterxml.jackson.databind.node.ObjectNode data, String tenantId, CommandContext commandContext) voidexecute(CommandContext commandContext, HistoryJobEntity historyJob) protected JobServiceConfigurationgetJobServiceConfiguration(String scopeType, CommandContext commandContext) protected voidhandleBulkResponse(CommandContext commandContext, BulkIndexingSession bulkIndexingSession, HistoryJobEntity historyJob, BulkRequest bulkRequest, ElasticsearchBulkResponse bulkResponse) protected voidscheduleNewHistoryJobForRequestsInError(CommandContext commandContext, BulkIndexingSession bulkIndexingSession, HistoryJobEntity originalHistoryJobEntity, List<BulkRequestItem> failedRequests, List<BulkRequestItem> conflictingRequests) protected booleanshouldScheduleNewHistoryJobForRequestsInError(HistoryJobEntity historyJobEntity, List<BulkRequestItem> failedRequests, List<BulkRequestItem> conflictingRequests)
-
Field Details
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
elasticsearchCompatibility
-
defaultNrOfRetries
protected int defaultNrOfRetries
-
-
Constructor Details
-
BulkIndexRequestExecutorImpl
public BulkIndexRequestExecutorImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ElasticsearchCompatibility elasticsearchCompatibility, int defaultNrOfRetries)
-
-
Method Details
-
execute
- Specified by:
executein interfaceBulkIndexRequestExecutor
-
handleBulkResponse
protected void handleBulkResponse(CommandContext commandContext, BulkIndexingSession bulkIndexingSession, HistoryJobEntity historyJob, BulkRequest bulkRequest, ElasticsearchBulkResponse bulkResponse) -
shouldScheduleNewHistoryJobForRequestsInError
protected boolean shouldScheduleNewHistoryJobForRequestsInError(HistoryJobEntity historyJobEntity, List<BulkRequestItem> failedRequests, List<BulkRequestItem> conflictingRequests) -
scheduleNewHistoryJobForRequestsInError
protected void scheduleNewHistoryJobForRequestsInError(CommandContext commandContext, BulkIndexingSession bulkIndexingSession, HistoryJobEntity originalHistoryJobEntity, List<BulkRequestItem> failedRequests, List<BulkRequestItem> conflictingRequests) -
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)
-