Class BulkIndexRequestExecutorImpl

    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • objectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • 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 interface BulkIndexRequestExecutor
      • 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)