com.groupbyinc.flux.ingest.PipelineExecutionService.class Maven / Gradle / Ivy
???? 4? 3com/groupbyinc/flux/ingest/PipelineExecutionService java/lang/Object /com/groupbyinc/flux/cluster/ClusterStateApplier PipelineExecutionService.java ?com/groupbyinc/flux/ingest/PipelineExecutionService$StatsHolder StatsHolder 5com/groupbyinc/flux/ingest/PipelineExecutionService$2 5com/groupbyinc/flux/ingest/PipelineExecutionService$1
java/util/Map$Entry
java/util/Map Entry ,com/groupbyinc/flux/ingest/IngestStats$Stats &com/groupbyinc/flux/ingest/IngestStats Stats 2com/groupbyinc/flux/ingest/IngestDocument$MetaData )com/groupbyinc/flux/ingest/IngestDocument MetaData /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names 4com/groupbyinc/flux/cluster/metadata/MetaData$Custom # -com/groupbyinc/flux/cluster/metadata/MetaData % Custom %java/lang/invoke/MethodHandles$Lookup ( java/lang/invoke/MethodHandles * Lookup store *Lcom/groupbyinc/flux/ingest/PipelineStore;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool;
totalStats ALcom/groupbyinc/flux/ingest/PipelineExecutionService$StatsHolder; statsHolderPerPipeline Ljava/util/Map; dLjava/util/Map; X(Lcom/groupbyinc/flux/ingest/PipelineStore;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V ()V 6 8
9
9 1 2 < java/util/Collections > emptyMap ()Ljava/util/Map; @ A
? B 3 4 D - . F / 0 H this 5Lcom/groupbyinc/flux/ingest/PipelineExecutionService; executeIndexRequest l(Lcom/groupbyinc/flux/action/index/IndexRequest;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)V -com/groupbyinc/flux/action/index/IndexRequest N getPipeline ()Ljava/lang/String; P Q
O R 9(Ljava/lang/String;)Lcom/groupbyinc/flux/ingest/Pipeline; P T
U index W executor :(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService; Y Z
! [ ?(Lcom/groupbyinc/flux/ingest/PipelineExecutionService;Ljava/util/function/Consumer;Lcom/groupbyinc/flux/action/index/IndexRequest;Lcom/groupbyinc/flux/ingest/Pipeline;Ljava/util/function/Consumer;)V 6 ]
^ $java/util/concurrent/ExecutorService ` execute (Ljava/lang/Runnable;)V b c a d request /Lcom/groupbyinc/flux/action/index/IndexRequest; failureHandler 4Ljava/util/function/Consumer; Ljava/util/function/Consumer; completionHandler 2Ljava/util/function/Consumer; pipeline %Lcom/groupbyinc/flux/ingest/Pipeline; executeBulkRequest S(Ljava/lang/Iterable;Ljava/util/function/BiConsumer;Ljava/util/function/Consumer;)V bulk q ?(Lcom/groupbyinc/flux/ingest/PipelineExecutionService;Ljava/util/function/Consumer;Ljava/lang/Iterable;Ljava/util/function/BiConsumer;)V 6 s
t actionRequests BLjava/lang/Iterable; Ljava/lang/Iterable; itemFailureHandler eLjava/util/function/BiConsumer; Ljava/util/function/BiConsumer; stats *()Lcom/groupbyinc/flux/ingest/IngestStats; java/util/HashMap ~ size ()I ? ? ? (I)V 6 ?
? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? getKey ? ? ? getValue ? ? ? createStats 0()Lcom/groupbyinc/flux/ingest/IngestStats$Stats; ? ?
? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? @(Lcom/groupbyinc/flux/ingest/IngestStats$Stats;Ljava/util/Map;)V 6 ?
? entry jLjava/util/Map$Entry; Ljava/util/Map$Entry; statsPerPipeline QLjava/util/Map; applyClusterState 4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V /com/groupbyinc/flux/cluster/ClusterChangedEvent ? state ,()Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
? ? (com/groupbyinc/flux/cluster/ClusterState ? getMetaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
? ? ingest ? custom J(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Custom; ? ?
&