Source:
public ElasticFlowRepository(MetricRegistry metricRegistry, JestClient jestClient, IndexStrategy indexStrategy, DocumentEnricher documentEnricher, ClassificationEngine classificationEngine, TransactionOperations transactionOperations, NodeDao nodeDao, SnmpInterfaceDao snmpInterfaceDao, Identity identity, TracerRegistry tracerRegistry, int bulkRetryCount, long maxFlowDurationMs) { this.client = Objects.requireNonNull(jestClient); this.indexStrategy = Objects.requireNonNull(indexStrategy); this.documentEnricher = Objects.requireNonNull(documentEnricher); this.classificationEngine = Objects.requireNonNull(classificationEngine); this.transactionOperations = Objects.requireNonNull(transactionOperations); this.nodeDao = Objects.requireNonNull(nodeDao); this.snmpInterfaceDao = Objects.requireNonNull(snmpInterfaceDao); this.bulkRetryCount = bulkRetryCount; this.indexSelector = new IndexSelector(ModifiedIndex, indexStrategy, maxFlowDurationMs); this.identity = identity; this.tracerRegistry = tracerRegistry; flowsPersistedMeter = metricRegistry.meter("flowsPersisted"); logConversionTimer = metricRegistry.timer("logConversion"); logEnrichementTimer = metricRegistry.timer("logEnrichment"); logPersistingTimer = metricRegistry.timer("logPersisting"); logMarkingTimer = metricRegistry.timer("logMarking"); flowsPerLog = metricRegistry.histogram("flowsPerLog"); this.transactionOperations.execute(cb -> { for (final OnmsNode node : this.nodeDao.findAllHavingFlows()) { this.markerCache.put(node.getId(), this.snmpInterfaceDao.findAllHavingFlows(node.getId()).stream() .map(OnmsSnmpInterface::getIfIndex) .collect(Collectors.toCollection(Sets::newConcurrentHashSet))); } return null; }); }

Target:
public ElasticFlowRepository(MetricRegistry metricRegistry, JestClient jestClient, IndexStrategy indexStrategy, DocumentEnricher documentEnricher, ClassificationEngine classificationEngine, TransactionOperations transactionOperations, NodeDao nodeDao, SnmpInterfaceDao snmpInterfaceDao, Identity identity, TracerRegistry tracerRegistry, int bulkRetryCount, long maxFlowDurationMs) { this.client = Objects.requireNonNull(jestClient); this.indexStrategy = Objects.requireNonNull(indexStrategy); this.documentEnricher = Objects.requireNonNull(documentEnricher); this.classificationEngine = Objects.requireNonNull(classificationEngine); this.transactionOperations = Objects.requireNonNull(transactionOperations); this.nodeDao = Objects.requireNonNull(nodeDao); this.snmpInterfaceDao = Objects.requireNonNull(snmpInterfaceDao); this.bulkRetryCount = bulkRetryCount; this.indexSelector = new IndexSelector(getModifiedIndex(), indexStrategy, maxFlowDurationMs); this.identity = identity; this.tracerRegistry = tracerRegistry; flowsPersistedMeter = metricRegistry.meter("flowsPersisted"); logConversionTimer = metricRegistry.timer("logConversion"); logEnrichementTimer = metricRegistry.timer("logEnrichment"); logPersistingTimer = metricRegistry.timer("logPersisting"); logMarkingTimer = metricRegistry.timer("logMarking"); flowsPerLog = metricRegistry.histogram("flowsPerLog"); this.transactionOperations.execute(cb -> { for (final OnmsNode node : this.nodeDao.findAllHavingFlows()) { this.markerCache.put(node.getId(), this.snmpInterfaceDao.findAllHavingFlows(node.getId()).stream() .map(OnmsSnmpInterface::getIfIndex) .collect(Collectors.toCollection(Sets::newConcurrentHashSet))); } return null; }); }