com.groupbyinc.flux.action.support.tasks.TransportTasksAction.class Maven / Gradle / Ivy
???? 4? =com/groupbyinc/flux/action/support/tasks/TransportTasksAction j;TasksResponse:Lcom/groupbyinc/flux/action/support/tasks/BaseTasksResponse;TaskResponse::Lcom/groupbyinc/flux/common/io/stream/Writeable;>Lcom/groupbyinc/flux/action/support/HandledTransportAction; 9com/groupbyinc/flux/action/support/HandledTransportAction TransportTasksAction.java Ocom/groupbyinc/flux/action/support/tasks/TransportTasksAction$NodeTasksResponse NodeTasksResponse Mcom/groupbyinc/flux/action/support/tasks/TransportTasksAction$NodeTaskRequest
NodeTaskRequest Rcom/groupbyinc/flux/action/support/tasks/TransportTasksAction$NodeTransportHandler
NodeTransportHandler Icom/groupbyinc/flux/action/support/tasks/TransportTasksAction$AsyncAction AsyncAction ?com/groupbyinc/flux/action/support/tasks/TransportTasksAction$1 %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; transportService 0Lcom/groupbyinc/flux/transport/TransportService; requestSupplier Ljava/util/function/Supplier; -Ljava/util/function/Supplier; responseSupplier .Ljava/util/function/Supplier; transportNodeAction Ljava/lang/String; ?(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/(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 % '
( * , java/lang/StringBuilder . ()V % 0
/ 1 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 3 4
/ 5 [n] 7 toString ()Ljava/lang/String; 9 :
/ ; # $ = ? ! A "java/lang/invoke/LambdaMetafactory C 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; E F
D G H ()Ljava/lang/Object; J lambda$new$0 Q()Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction$NodeTaskRequest; L M
N O M get ^(Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction;)Ljava/util/function/Supplier; R S T B(Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction;)V % V
W .com/groupbyinc/flux/transport/TransportService Y registerRequestHandler {(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V [ \
Z ] this {Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction; ?Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
actionName
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool;
actionFilters 2Lcom/groupbyinc/flux/action/support/ActionFilters; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; nodeExecutor doExecute i(Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest;Lcom/groupbyinc/flux/action/ActionListener;)V logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; n o p =attempt to execute a transport tasks operation without a task r 6com/groupbyinc/flux/common/apache/logging/log4j/Logger t warn (Ljava/lang/String;)V v w u x 'java/lang/UnsupportedOperationException z -task parameter is required for this operation | % w
{ ~ request TTasksRequest; ;Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest; listener ; +Lcom/groupbyinc/flux/action/ActionListener; ?(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest;Lcom/groupbyinc/flux/action/ActionListener;)V (Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction;Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction$1;)V % ?
?
access$100 N(Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction$AsyncAction;)V ? ?
? task Lcom/groupbyinc/flux/tasks/Task;
nodeOperation }(Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction$NodeTaskRequest;Lcom/groupbyinc/flux/action/ActionListener;)V java/lang/Exception ?
access$200 ?(Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction$NodeTaskRequest;)Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest; ? ?
? java/util/ArrayList ?
? 1 java/lang/Object ? getClass ()Ljava/lang/Class; ? ?
? ? (Ljava/lang/Object;)V ? java/util/List ? add (Ljava/lang/Object;)Z ? ? ? ? ? #(Lcom/groupbyinc/flux/tasks/Task;)V ? accept /(Ljava/util/List;)Ljava/util/function/Consumer; ? ? ? processTasks [(Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest;Ljava/util/function/Consumer;)V ? ?
? isEmpty ()Z ? ? ? ? 2com/groupbyinc/flux/cluster/service/ClusterService ? localNode 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ? ?
? ? .com/groupbyinc/flux/cluster/node/DiscoveryNode ? getId ? :
? ? java/util/Collections ? emptyList ()Ljava/util/List; ? ?
? ? t(Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V % ?
? )com/groupbyinc/flux/action/ActionListener ?
onResponse ? ? ? ? 9com/groupbyinc/flux/action/support/tasks/BaseTasksRequest ? 6com/groupbyinc/flux/common/util/concurrent/AtomicArray ? size ()I ? ? ? ? (I)V % ?
? ? )java/util/concurrent/atomic/AtomicInteger ?
? ? ?(Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction;Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray;ILjava/util/concurrent/atomic/AtomicInteger;Ljava/util/List;Lcom/groupbyinc/flux/action/ActionListener;)V % ?
? (I)Ljava/lang/Object; R ? ? ? com/groupbyinc/flux/tasks/Task ?
taskOperation ?(Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest;Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/ActionListener;)V ? ?
? onFailure (Ljava/lang/Exception;)V ? ? ? ? e Ljava/lang/Exception; taskIndex I taskListener ;Lcom/groupbyinc/flux/action/ActionListener; i nodeTaskRequest ?Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction.NodeTaskRequest; OLcom/groupbyinc/flux/action/support/tasks/TransportTasksAction$NodeTaskRequest; ?Lcom/groupbyinc/flux/action/ActionListener.NodeTasksResponse;>; tasks !Ljava/util/List; Ljava/util/List; responses ?Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray;>; 8Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray; counter +Ljava/util/concurrent/atomic/AtomicInteger;
filterNodeIds Y(Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;[Ljava/lang/String;)[Ljava/lang/String; nodes 1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; nodesIds [Ljava/lang/String; resolveNodes z(Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)[Ljava/lang/String; getTaskId $()Lcom/groupbyinc/flux/tasks/TaskId;
? com/groupbyinc/flux/tasks/TaskId isSet ?
java/lang/String getNodeId :
(com/groupbyinc/flux/cluster/ClusterState 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;
getNodes ()[Ljava/lang/String;
? /com/groupbyinc/flux/cluster/node/DiscoveryNodes! (([Ljava/lang/String;)[Ljava/lang/String;#
"$ clusterState *Lcom/groupbyinc/flux/cluster/ClusterState; taskManager 'Lcom/groupbyinc/flux/tasks/TaskManager;() * ()J ?,
- %com/groupbyinc/flux/tasks/TaskManager/ getTask #(J)Lcom/groupbyinc/flux/tasks/Task;12
03 match #(Lcom/groupbyinc/flux/tasks/Task;)Z56
?7 java/util/function/Consumer9 ? ?:; -com/groupbyinc/flux/ResourceNotFoundException= (task [{}] doesn't support this operation? ((Ljava/lang/String;[Ljava/lang/Object;)V %A
>B task [{}] is missingD getTasks ()Ljava/util/Map;FG
0H
java/util/MapJ values ()Ljava/util/Collection;LMKN java/util/CollectionP iterator ()Ljava/util/Iterator;RSQT java/util/IteratorV hasNextX ?WY next[ JW\ operation .Ljava/util/function/Consumer; Ljava/util/function/Consumer; newResponse ?(Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest;Ljava/util/List;Ljava/util/List;Ljava/util/List;)Lcom/groupbyinc/flux/action/support/tasks/BaseTasksResponse; ?(Lcom/groupbyinc/flux/action/support/tasks/BaseTasksRequest;Ljava/util/concurrent/atomic/AtomicReferenceArray;)Lcom/groupbyinc/flux/action/support/tasks/BaseTasksResponse; 0java/util/concurrent/atomic/AtomicReferenceArrayd lengthf ?
eg
e ? .com/groupbyinc/flux/action/FailedNodeExceptionj resultsl ? m addAll (Ljava/util/Collection;)Zop ?q
exceptionss ? tab
v
tasksResponse ?Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction.NodeTasksResponse; QLcom/groupbyinc/flux/action/support/tasks/TransportTasksAction$NodeTasksResponse; response Ljava/lang/Object; 2Ljava/util/concurrent/atomic/AtomicReferenceArray; Ljava/util/List; failedNodeExceptions BLjava/util/List; taskOperationFailures CLjava/util/List; readTaskResponse d(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/io/stream/Writeable; java/io/IOException? transportCompress X(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V l m
? x(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V l ?
?
W
access$300 y(Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; x0
access$600
access$700
access$800
access$900 access$1000 ?(Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction;Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction$NodeTaskRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ? ?
? x1 x2 Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable?(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 M(TTasksRequest;Lcom/groupbyinc/flux/action/ActionListener;)V m(Lcom/groupbyinc/flux/tasks/Task;TTasksRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
StackMapTableH(Lcom/groupbyinc/flux/action/support/tasks/TransportTasksAction.NodeTaskRequest;Lcom/groupbyinc/flux/action/ActionListener.NodeTasksResponse;>;)V M(TTasksRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)[Ljava/lang/String; ?(TTasksRequest;Ljava/util/function/Consumer;)V ?(TTasksRequest;Ljava/util/List;Ljava/util/List;Ljava/util/List;)TTasksResponse; Q(TTasksRequest;Ljava/util/concurrent/atomic/AtomicReferenceArray;)TTasksResponse;
Exceptions B(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)TTaskResponse; [(TTasksRequest;TOperationTask;Lcom/groupbyinc/flux/action/ActionListener;)V BootstrapMethods
SourceFile InnerClasses! ? ! ? " # $ % &