
com.groupbyinc.flux.gateway.GatewayAllocator.class Maven / Gradle / Ivy
???? 3 ? ,com/groupbyinc/flux/gateway/GatewayAllocator 6com/groupbyinc/flux/common/component/AbstractComponent GatewayAllocator.java Jcom/groupbyinc/flux/gateway/GatewayAllocator$InternalReplicaShardAllocator InternalReplicaShardAllocator Jcom/groupbyinc/flux/gateway/GatewayAllocator$InternalPrimaryShardAllocator InternalPrimaryShardAllocator ?com/groupbyinc/flux/gateway/GatewayAllocator$InternalAsyncFetch InternalAsyncFetch .com/groupbyinc/flux/gateway/GatewayAllocator$1 [com/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodeGatewayStartedShards Bcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards NodeGatewayStartedShards ]com/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData$NodeStoreFilesMetaData Fcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData NodeStoreFilesMetaData Rcom/groupbyinc/flux/cluster/routing/allocation/FailedRerouteAllocation$FailedShard Fcom/groupbyinc/flux/cluster/routing/allocation/FailedRerouteAllocation FailedShard Acom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards 0com/groupbyinc/flux/cluster/routing/RoutingNodes " UnassignedShards routingService 4Lcom/groupbyinc/flux/cluster/routing/RoutingService; primaryShardAllocator 3Lcom/groupbyinc/flux/gateway/PrimaryShardAllocator; replicaShardAllocator 3Lcom/groupbyinc/flux/gateway/ReplicaShardAllocator; asyncFetchStarted $Ljava/util/concurrent/ConcurrentMap; ?Ljava/util/concurrent/ConcurrentMap;>; asyncFetchStore ?Ljava/util/concurrent/ConcurrentMap;>; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards;Lcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V 0 3
4 @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections 6 newConcurrentMap &()Ljava/util/concurrent/ConcurrentMap; 8 9
7 : + , < . , > ?(Lcom/groupbyinc/flux/gateway/GatewayAllocator;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards;)V 0 @
A ' ( C ?(Lcom/groupbyinc/flux/gateway/GatewayAllocator;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData;)V 0 E
F ) * H this .Lcom/groupbyinc/flux/gateway/GatewayAllocator; settings .Lcom/groupbyinc/flux/common/settings/Settings;
startedAction DLcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards; storeAction HLcom/groupbyinc/flux/indices/store/TransportNodesListShardStoreMetaData; setReallocation c(Lcom/groupbyinc/flux/cluster/ClusterService;Lcom/groupbyinc/flux/cluster/routing/RoutingService;)V % & T 1(Lcom/groupbyinc/flux/gateway/GatewayAllocator;)V 0 V
W *com/groupbyinc/flux/cluster/ClusterService Y add 5(Lcom/groupbyinc/flux/cluster/ClusterStateListener;)V [ \ Z ] clusterService ,Lcom/groupbyinc/flux/cluster/ClusterService; getNumberOfInFlightFetch ()I "java/util/concurrent/ConcurrentMap c values ()Ljava/util/Collection; e f d g java/util/Collection i iterator ()Ljava/util/Iterator; k l j m java/util/Iterator o hasNext ()Z q r p s next ()Ljava/lang/Object; u v p w +com/groupbyinc/flux/gateway/AsyncShardFetch y getNumberOfInFlightFetches { b
z | fetch ?Lcom/groupbyinc/flux/gateway/AsyncShardFetch; -Lcom/groupbyinc/flux/gateway/AsyncShardFetch; ?Lcom/groupbyinc/flux/gateway/AsyncShardFetch; count I applyStartedShards L(Lcom/groupbyinc/flux/cluster/routing/allocation/StartedRerouteAllocation;)V Gcom/groupbyinc/flux/cluster/routing/allocation/StartedRerouteAllocation ?
startedShards ()Ljava/util/List; ? ?
? ? java/util/List ? ? m 0com/groupbyinc/flux/cluster/routing/ShardRouting ? +com/groupbyinc/flux/common/lease/Releasable ? shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; ? ?
? ? remove &(Ljava/lang/Object;)Ljava/lang/Object; ? ? d ? ,com/groupbyinc/flux/common/lease/Releasables ? close 1([Lcom/groupbyinc/flux/common/lease/Releasable;)V ? ?
? ? shard 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
allocation ILcom/groupbyinc/flux/cluster/routing/allocation/StartedRerouteAllocation; applyFailedShards K(Lcom/groupbyinc/flux/cluster/routing/allocation/FailedRerouteAllocation;)V failedShards ? ?
? ? ? ? TLcom/groupbyinc/flux/cluster/routing/allocation/FailedRerouteAllocation$FailedShard; HLcom/groupbyinc/flux/cluster/routing/allocation/FailedRerouteAllocation; allocateUnassigned E(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Z @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation ? routingNodes 4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes; ? ?
? ?
unassigned E()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards; ? ?
# ? .com/groupbyinc/flux/gateway/PriorityComparator ? getAllocationComparator t(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/gateway/PriorityComparator; ? ?
? ? sort (Ljava/util/Comparator;)V ? ?
! ? 1com/groupbyinc/flux/gateway/PrimaryShardAllocator ? ? ?
? ? 1com/groupbyinc/flux/gateway/ReplicaShardAllocator ? processExistingRecoveries ? ?
? ?
? ? BLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation; changed Z CLcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards;
access$000 T(Lcom/groupbyinc/flux/gateway/GatewayAllocator;)Ljava/util/concurrent/ConcurrentMap; x0
access$100
access$200 d(Lcom/groupbyinc/flux/gateway/GatewayAllocator;)Lcom/groupbyinc/flux/cluster/routing/RoutingService; Signature Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations LocalVariableTypeTable
StackMapTable
SourceFile InnerClasses ! % &