com.groupbyinc.flux.cluster.routing.allocation.decider.AllocationDeciders.class Maven / Gradle / Ivy
???? 4 ? Icom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDeciders Hcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDecider AllocationDeciders.java Ecom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Multi ?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision Multi Jcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation$DebugMode @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation
DebugMode Dcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type Type allocations Ljava/util/Collection; bLjava/util/Collection; $assertionsDisabled Z G(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Collection;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V
java/util/Collections unmodifiableCollection .(Ljava/util/Collection;)Ljava/util/Collection;
! # this KLcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDeciders; settings .Lcom/groupbyinc/flux/common/settings/Settings; canRebalance ?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; ()V +
, java/util/Collection . iterator ()Ljava/util/Iterator; 0 1 / 2 java/util/Iterator 4 hasNext ()Z 6 7 5 8 next ()Ljava/lang/Object; : ; 5 < ) *
> NO ALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; @ A B
debugDecision D 7
E add ?(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Multi; G H
I ALWAYS K A L getDebugMode N()Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation$DebugMode; N O
P EXCLUDE_YES_DECISIONS LLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation$DebugMode; R S T type H()Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type; V W
X YES FLcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type; Z [ \ decision allocationDecider JLcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDecider; shardRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
allocation BLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation; ret GLcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Multi; canAllocate ?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; 0com/groupbyinc/flux/cluster/routing/ShardRouting i shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; k l
j m /com/groupbyinc/flux/cluster/routing/RoutingNode o nodeId ()Ljava/lang/String; q r
p s shouldIgnoreShardForNode >(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;)Z u v
w g h
y logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; { | } 6com/groupbyinc/flux/common/apache/logging/log4j/Logger isTraceEnabled ? 7 ? ? .Can not allocate [{}] on node [{}] due to [{}] ? node 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ? ?
p ? java/lang/Object ? getClass ()Ljava/lang/Class; ? ?
? ? java/lang/Class ?
getSimpleName ? r
? ? trace K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? 1Lcom/groupbyinc/flux/cluster/routing/RoutingNode; canRemain *Shard [{}] should be ignored for node [{}] ? 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? ? h
? 2Shard [{}] can not remain on node [{}] due to [{}] ? ?(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; g ?
?
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; g *
? ?(Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; g ?
? ?(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; ) ?
? canForceAllocatePrimary ? primary ? 7
j ? java/lang/AssertionError ? java/lang/StringBuilder ?
? , Emust not call canForceAllocatePrimary on a non-primary shard routing ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? toString ? r
? ? (Ljava/lang/Object;)V ?
? ? ? h
? DShard [{}] can not be forcefully allocated to node [{}] due to [{}]. ? decider desiredAssertionStatus ? 7
? ? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable ?(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Collection;)V
StackMapTable
SourceFile InnerClasses ! ?
? f *+? *,? "? $? ? % &