com.groupbyinc.flux.index.reindex.TransportRethrottleAction.class Maven / Gradle / Ivy
???? 4 ;com/groupbyinc/flux/index/reindex/TransportRethrottleAction Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction; =com/groupbyinc/flux/action/support/tasks/TransportTasksAction TransportRethrottleAction.java /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup client #Lcom/groupbyinc/flux/client/Client; W(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/client/Client;)V *Lcom/groupbyinc/flux/common/inject/Inject; cluster:admin/reindex/rethrottle "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; 3com/groupbyinc/flux/index/reindex/RethrottleRequest ! ()V #
" $ % 7()Lcom/groupbyinc/flux/index/reindex/RethrottleRequest; ' get ()Ljava/util/function/Supplier; ) * + Jcom/groupbyinc/flux/action/admin/cluster/node/tasks/list/ListTasksResponse -
. $ / N()Lcom/groupbyinc/flux/action/admin/cluster/node/tasks/list/ListTasksResponse; 1 +
management 4?(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;Ljava/util/function/Supplier;Ljava/lang/String;)V 6
7 9 this =Lcom/groupbyinc/flux/index/reindex/TransportRethrottleAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; transportService 0Lcom/groupbyinc/flux/transport/TransportService;
actionFilters 2Lcom/groupbyinc/flux/action/support/ActionFilters; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;
taskOperation ?(Lcom/groupbyinc/flux/index/reindex/RethrottleRequest;Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lcom/groupbyinc/flux/action/ActionListener;)V logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; K L M A B O 2com/groupbyinc/flux/cluster/service/ClusterService Q localNode 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; S T
R U .com/groupbyinc/flux/cluster/node/DiscoveryNode W getId ()Ljava/lang/String; Y Z
X [ getRequestsPerSecond ()F ] ^
" _
rethrottle ?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Ljava/lang/String;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;FLcom/groupbyinc/flux/action/ActionListener;)V a b
c request 5Lcom/groupbyinc/flux/index/reindex/RethrottleRequest; task 4Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask; listener QLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; 2com/groupbyinc/flux/index/reindex/BulkByScrollTask l runningSliceSubTasks ()I n o
m p 8rethrottling local task [{}] to [{}] requests per second r ()J Y t
m u java/lang/Long w valueOf (J)Ljava/lang/Long; y z
x { java/lang/Float } (F)Ljava/lang/Float; y
~ ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger ? debug 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? (F)V a ?
m ? taskInfo 9(Ljava/lang/String;Z)Lcom/groupbyinc/flux/tasks/TaskInfo; ? ?
m ? )com/groupbyinc/flux/action/ActionListener ?
onResponse (Ljava/lang/Object;)V ? ? ? ? setRequestsPerSecond 8(F)Lcom/groupbyinc/flux/index/reindex/RethrottleRequest; ? ?
" ? com/groupbyinc/flux/tasks/TaskId ? (Ljava/lang/String;J)V ?
? ? setParentTaskId _(Lcom/groupbyinc/flux/tasks/TaskId;)Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest; ? ?
" ? >rethrottling children of task [{}] to [{}] requests per second ? 2com/groupbyinc/flux/index/reindex/RethrottleAction ? INSTANCE 4Lcom/groupbyinc/flux/index/reindex/RethrottleAction; ? ? ? ? ? lambda$rethrottle$0 ?(Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Ljava/lang/String;Lcom/groupbyinc/flux/action/admin/cluster/node/tasks/list/ListTasksResponse;)V ? ?
? ? O(Lcom/groupbyinc/flux/action/admin/cluster/node/tasks/list/ListTasksResponse;)V ? accept ?(Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Ljava/lang/String;)Lcom/groupbyinc/flux/common/CheckedConsumer; ? ? ? java/lang/Object ? getClass ()Ljava/lang/Class; ? ?
? ? onFailure (Ljava/lang/Exception;)V ? ? ? ? ? ? J(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/function/Consumer; ? ? ? wrap v(Lcom/groupbyinc/flux/common/CheckedConsumer;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/action/ActionListener; ? ? ? ? !com/groupbyinc/flux/client/Client ? execute {(Lcom/groupbyinc/flux/action/Action;Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ? ? ? ? localNodeId Ljava/lang/String; newRequestsPerSecond F runningSubTasks I
subRequest readTaskResponse X(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/tasks/TaskInfo; java/io/IOException ? "com/groupbyinc/flux/tasks/TaskInfo ? 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V ?
? ? in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; newResponse ?(Lcom/groupbyinc/flux/index/reindex/RethrottleRequest;Ljava/util/List;Ljava/util/List;Ljava/util/List;)Lcom/groupbyinc/flux/action/admin/cluster/node/tasks/list/ListTasksResponse; 3(Ljava/util/List;Ljava/util/List;Ljava/util/List;)V ?
. ? tasks 6Ljava/util/List; Ljava/util/List; taskOperationFailures CLjava/util/List; failedNodeExceptions BLjava/util/List; ?(Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest;Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/ActionListener;)V I J
? d(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/io/stream/Writeable; ? ?
? ?(Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest;Ljava/util/List;Ljava/util/List;Ljava/util/List;)Lcom/groupbyinc/flux/action/support/tasks/BaseTasksResponse; ? ?
? java/lang/Exception ?
Rethrottle ? rethrowFailures (Ljava/lang/String;)V ? ?
. ? getTasks ()Ljava/util/List; ? ?
. getInfoGivenSliceInfo H(Ljava/lang/String;Ljava/util/List;)Lcom/groupbyinc/flux/tasks/TaskInfo;
m r LLcom/groupbyinc/flux/action/admin/cluster/node/tasks/list/ListTasksResponse; Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations LocalVariableTypeTable Signature ?(Lcom/groupbyinc/flux/index/reindex/RethrottleRequest;Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lcom/groupbyinc/flux/action/ActionListener;)V
StackMapTable ?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Ljava/lang/String;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;FLcom/groupbyinc/flux/action/ActionListener;)V
Exceptions>(Lcom/groupbyinc/flux/index/reindex/RethrottleRequest;Ljava/util/List;Ljava/util/List;Ljava/util/List;)Lcom/groupbyinc/flux/action/admin/cluster/node/tasks/list/ListTasksResponse; BootstrapMethods
SourceFile InnerClasses ! ? "*+,-? , ? 3 5? 8*? :? R " ; <