com.groupbyinc.flux.action.support.replication.TransportBroadcastReplicationAction.class Maven / Gradle / Ivy
???? 4c Rcom/groupbyinc/flux/action/support/replication/TransportBroadcastReplicationAction ?;Response:Lcom/groupbyinc/flux/action/support/broadcast/BroadcastResponse;ShardRequest:Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;ShardResponse:Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse;>Lcom/groupbyinc/flux/action/support/HandledTransportAction; 9com/groupbyinc/flux/action/support/HandledTransportAction (TransportBroadcastReplicationAction.java Tcom/groupbyinc/flux/action/support/replication/TransportBroadcastReplicationAction$1 Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo Bcom/groupbyinc/flux/action/support/replication/ReplicationResponse ShardInfo Tcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo$Failure Failure replicatedBroadcastShardAction KLcom/groupbyinc/flux/action/support/replication/TransportReplicationAction; clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; ?(Ljava/lang/String;Ljava/util/function/Supplier;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/action/support/replication/TransportReplicationAction;)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
this ?Lcom/groupbyinc/flux/action/support/replication/TransportBroadcastReplicationAction; TLcom/groupbyinc/flux/action/support/replication/TransportBroadcastReplicationAction; name Ljava/lang/String; request (Ljava/util/function/Supplier; Ljava/util/function/Supplier; 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; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; doExecute m(Lcom/groupbyinc/flux/action/support/broadcast/BroadcastRequest;Lcom/groupbyinc/flux/action/ActionListener;)V 'java/lang/UnsupportedOperationException 2 1the task parameter is required for this operation 4 (Ljava/lang/String;)V 6
3 7 TRequest; ?Lcom/groupbyinc/flux/action/support/broadcast/BroadcastRequest; listener 7Lcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; ?(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/support/broadcast/BroadcastRequest;Lcom/groupbyinc/flux/action/ActionListener;)V 2com/groupbyinc/flux/cluster/service/ClusterService ? state ,()Lcom/groupbyinc/flux/cluster/ClusterState; A B
@ C shards {(Lcom/groupbyinc/flux/action/support/broadcast/BroadcastRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/util/List; E F
G )java/util/concurrent/CopyOnWriteArrayList I ()V K
J L java/util/List N size ()I P Q O R finishAndNotifyListener Y(Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/concurrent/CopyOnWriteArrayList;)V T U
V (com/groupbyinc/flux/cluster/ClusterState X 4com/groupbyinc/flux/common/util/concurrent/CountDown Z (I)V \
[ ] iterator ()Ljava/util/Iterator; _ ` O a java/util/Iterator c hasNext ()Z e f d g next ()Ljava/lang/Object; i j d k 'com/groupbyinc/flux/index/shard/ShardId m6(Lcom/groupbyinc/flux/action/support/replication/TransportBroadcastReplicationAction;Ljava/util/concurrent/CopyOnWriteArrayList;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/util/concurrent/CountDown;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/cluster/ClusterState;)V o
p shardExecute ?(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/support/broadcast/BroadcastRequest;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/action/ActionListener;)V r s
t shardActionListener ; shardId )Lcom/groupbyinc/flux/index/shard/ShardId; task Lcom/groupbyinc/flux/tasks/Task; clusterState *Lcom/groupbyinc/flux/cluster/ClusterState; ;Ljava/util/List; Ljava/util/List; shardsResponses ; +Ljava/util/concurrent/CopyOnWriteArrayList; responsesCountDown 6Lcom/groupbyinc/flux/common/util/concurrent/CountDown; newShardRequest ?(Lcom/groupbyinc/flux/action/support/broadcast/BroadcastRequest;Lcom/groupbyinc/flux/index/shard/ShardId;)Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest; ? ?
? localNode 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ? ?
@ ? .com/groupbyinc/flux/cluster/node/DiscoveryNode ? getId ()Ljava/lang/String; ? ?
? ? com/groupbyinc/flux/tasks/Task ? ()J ? ?
? ? Acom/groupbyinc/flux/action/support/replication/ReplicationRequest ?
setParentTask (Ljava/lang/String;J)V ? ?
? ? Icom/groupbyinc/flux/action/support/replication/TransportReplicationAction ? execute w(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/tasks/Task; ? ?
? ? shardRequest TShardRequest; CLcom/groupbyinc/flux/action/support/replication/ReplicationRequest; java/util/ArrayList ?
? L . / ? @com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver ? concreteIndexNames j(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/IndicesRequest;)[Ljava/lang/String; ? ?
? ? =com/groupbyinc/flux/action/support/broadcast/BroadcastRequest ? [Ljava/lang/String; ? metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
Y ? -com/groupbyinc/flux/cluster/metadata/MetaData ?
getIndices 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; ? ?
? ? 3com/groupbyinc/flux/common/collect/ImmutableOpenMap ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ? getRoutingTable 4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable; ? ?
Y ? 0com/groupbyinc/flux/cluster/routing/RoutingTable ? indicesRouting ? ?
? ? 5com/groupbyinc/flux/cluster/routing/IndexRoutingTable ? getShards :()Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap; ? ?
? ? 6com/groupbyinc/flux/common/collect/ImmutableOpenIntMap ?
? a java/lang/String ? Dcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/IntObjectCursor ? value Ljava/lang/Object; ? ? ? ? :com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable ? +()Lcom/groupbyinc/flux/index/shard/ShardId; x ?
? ? add (Ljava/lang/Object;)Z ? ? O ? shardRouting ?Lcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/IntObjectCursor; FLcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/IntObjectCursor;
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; index shardIds concreteIndices newShardResponse F()Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse; logger !Lorg/apache/logging/log4j/Logger; ? ? ? {}: got all shard responses ?
actionName ? " ? org/apache/logging/log4j/Logger ? trace '(Ljava/lang/String;Ljava/lang/Object;)V ? )com/groupbyinc/flux/action/ActionListener
J R (I)Ljava/lang/Object; ?
J getShardInfo P()Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo;
getFailed Q
getSuccessful Q
getTotal Q
getFailures Y()[Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo$Failure;
W[Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo$Failure; Gcom/groupbyinc/flux/action/support/DefaultShardOperationFailedException Scom/groupbyinc/flux/action/support/broadcast/BroadcastShardOperationFailedException fullShardId! ?
" getCause ()Ljava/lang/Throwable;$%
& A(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/Throwable;)V (
) /(Lcom/groupbyinc/flux/ElasticsearchException;)V +
, newResponse U(IIILjava/util/List;)Lcom/groupbyinc/flux/action/support/broadcast/BroadcastResponse;./
0
onResponse (Ljava/lang/Object;)V234 failure VLcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo$Failure;
shardResponse DLcom/groupbyinc/flux/action/support/replication/ReplicationResponse; i I successfulShards failedShards totalNumCopies
shardFailures [Ljava/util/List; X(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V 0 1
B x(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V 0 >
E
access$000 h(Lcom/groupbyinc/flux/action/support/replication/TransportBroadcastReplicationAction;)Ljava/lang/String; x0
access$100 w(Lcom/groupbyinc/flux/action/support/replication/TransportBroadcastReplicationAction;)Lorg/apache/logging/log4j/Logger;
access$200 ?(Lcom/groupbyinc/flux/action/support/replication/TransportBroadcastReplicationAction;Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/concurrent/CopyOnWriteArrayList;)V x1 x2
access$300
access$400 Code LocalVariableTable LocalVariableTypeTable LineNumberTable Signature?(Ljava/lang/String;Ljava/util/function/Supplier;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/action/support/replication/TransportReplicationAction;)V C(TRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
StackMapTable c(Lcom/groupbyinc/flux/tasks/Task;TRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ?(Lcom/groupbyinc/flux/tasks/Task;TRequest;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/action/ActionListener;)V p(TRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/util/List; ()TShardResponse; B(TRequest;Lcom/groupbyinc/flux/index/shard/ShardId;)TShardRequest; j(Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/concurrent/CopyOnWriteArrayList;)V ?(IIILjava/util/List;)Lcom/groupbyinc/flux/action/support/broadcast/BroadcastResponse;
SourceFile InnerClasses! R ?
*-+,? * ? *? ? S f
! " # % &