com.groupbyinc.flux.action.get.TransportMultiGetAction.class Maven / Gradle / Ivy
???? 4^ 6com/groupbyinc/flux/action/get/TransportMultiGetAction ?Lcom/groupbyinc/flux/action/support/HandledTransportAction; 9com/groupbyinc/flux/action/support/HandledTransportAction TransportMultiGetAction.java 8com/groupbyinc/flux/action/get/TransportMultiGetAction$1 3com/groupbyinc/flux/action/get/MultiGetRequest$Item .com/groupbyinc/flux/action/get/MultiGetRequest Item 7com/groupbyinc/flux/action/get/MultiGetResponse$Failure /com/groupbyinc/flux/action/get/MultiGetResponse Failure %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; shardAction =Lcom/groupbyinc/flux/action/get/TransportShardMultiGetAction; q(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/action/get/TransportShardMultiGetAction;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;)V *Lcom/groupbyinc/flux/common/inject/Inject; indices:data/read/mget "java/lang/invoke/LambdaMetafactory ! metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; # $
" % & ()Ljava/lang/Object; ( ()V *
+ , 2()Lcom/groupbyinc/flux/action/get/MultiGetRequest; . get ()Ljava/util/function/Supplier; 0 1 2/(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;)V 4
5 7 9 this 8Lcom/groupbyinc/flux/action/get/TransportMultiGetAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; transportService 0Lcom/groupbyinc/flux/transport/TransportService;
actionFilters 2Lcom/groupbyinc/flux/action/support/ActionFilters; resolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; doExecute ^(Lcom/groupbyinc/flux/action/get/MultiGetRequest;Lcom/groupbyinc/flux/action/ActionListener;)V java/lang/Exception I 2com/groupbyinc/flux/cluster/service/ClusterService K state ,()Lcom/groupbyinc/flux/cluster/ClusterState; M N
L O (com/groupbyinc/flux/cluster/ClusterState Q blocks 3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks; S T
R U 3com/groupbyinc/flux/cluster/block/ClusterBlockLevel W READ 5Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel; Y Z X [ /com/groupbyinc/flux/cluster/block/ClusterBlocks ] globalBlockedRaiseException 8(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;)V _ `
^ a 6com/groupbyinc/flux/common/util/concurrent/AtomicArray c items Ljava/util/List; e f g java/util/List i size ()I k l j m (I)V o
d p java/util/HashMap r
s + )com/groupbyinc/flux/action/ActionListener u
java/util/Map w (I)Ljava/lang/Object; 0 y j z indexNameExpressionResolver | F } @com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver concreteSingleIndex x(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/IndicesRequest;)Lcom/groupbyinc/flux/index/Index; ? ?
? ? com/groupbyinc/flux/index/Index ? getName ()Ljava/lang/String; ? ?
? ? metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
R ? parent ? ?
? routing ? ?
? index ? ?
? -com/groupbyinc/flux/cluster/metadata/MetaData ? resolveIndexRouting J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ? ?
? ? I(Ljava/lang/String;)Lcom/groupbyinc/flux/action/get/MultiGetRequest$Item; ? ?
? getMetaData ? ?
R ? type ? ?
? routingRequired '(Ljava/lang/String;Ljava/lang/String;)Z ? ?
? ? java/lang/StringBuilder ?
? + routing is required for [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ]/[ ? id ? ?
? ] ? toString ? ?
? ? "java/lang/IllegalArgumentException ? (Ljava/lang/String;)V ?
? ? newItemFailure ?(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)Lcom/groupbyinc/flux/action/get/MultiGetItemResponse; ? ?
? set (ILjava/lang/Object;)V ? ?
d ? java/lang/String ? operationRouting 8()Lcom/groupbyinc/flux/cluster/routing/OperationRouting; ? ?
L ? 4com/groupbyinc/flux/cluster/routing/OperationRouting ? getShards ?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator; ? ?
? ? 1com/groupbyinc/flux/cluster/routing/ShardIterator ? shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; ? ? ? ? &(Ljava/lang/Object;)Ljava/lang/Object; 0 ? x ? 3com/groupbyinc/flux/action/get/MultiGetShardRequest ? 'com/groupbyinc/flux/index/shard/ShardId ? getIndexName ? ?
? ? getId ? l
? ? F(Lcom/groupbyinc/flux/action/get/MultiGetRequest;Ljava/lang/String;I)V ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? x ? add 9(ILcom/groupbyinc/flux/action/get/MultiGetRequest$Item;)V ? ?
? ? isEmpty ()Z ? ? x ? length ? l
d ? 3com/groupbyinc/flux/action/get/MultiGetItemResponse ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ?
d 6[Lcom/groupbyinc/flux/action/get/MultiGetItemResponse; 9([Lcom/groupbyinc/flux/action/get/MultiGetItemResponse;)V
onResponse (Ljava/lang/Object;)V v )java/util/concurrent/atomic/AtomicInteger x m
p values ()Ljava/util/Collection; x java/util/Collection iterator ()Ljava/util/Iterator; java/util/Iterator hasNext ? next ( ?(Lcom/groupbyinc/flux/action/get/TransportMultiGetAction;Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray;Ljava/util/concurrent/atomic/AtomicInteger;Lcom/groupbyinc/flux/action/get/MultiGetShardRequest;Lcom/groupbyinc/flux/action/ActionListener;)V !
" ;com/groupbyinc/flux/action/get/TransportShardMultiGetAction$ execute w(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/tasks/Task;&'
%( message Ljava/lang/String; e Ljava/lang/Exception; item 5Lcom/groupbyinc/flux/action/get/MultiGetRequest$Item; )Lcom/groupbyinc/flux/index/shard/ShardId; shardRequest 5Lcom/groupbyinc/flux/action/get/MultiGetShardRequest; i I request 0Lcom/groupbyinc/flux/action/get/MultiGetRequest; listener ^Lcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; clusterState *Lcom/groupbyinc/flux/cluster/ClusterState; responses oLcom/groupbyinc/flux/common/util/concurrent/AtomicArray; 8Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray;
shardRequests oLjava/util/Map; Ljava/util/Map; counter +Ljava/util/concurrent/atomic/AtomicInteger; N(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V D
E h(Lcom/groupbyinc/flux/action/get/GetResponse;Lcom/groupbyinc/flux/action/get/MultiGetResponse$Failure;)V G
?H exception X(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V G H
L
access$000 x0 x1 x2 x3 Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations LocalVariableTypeTable
StackMapTable Signature ?(Lcom/groupbyinc/flux/action/get/MultiGetRequest;Lcom/groupbyinc/flux/action/ActionListener;)V BootstrapMethods
SourceFile InnerClasses ! S ? *+ ,-? 3 ? 6*? 8*? :? T R ; <