com.groupbyinc.flux.cluster.routing.allocation.decider.AllocationDecider.class Maven / Gradle / Ivy
???? 4 } Hcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDecider 6com/groupbyinc/flux/common/component/AbstractComponent AllocationDecider.java Dcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type ?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision Type $assertionsDisabled Z 1(Lcom/groupbyinc/flux/common/settings/Settings;)V
this JLcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDecider; 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; ALWAYS ALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; shardRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
allocation BLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation; 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; node 1Lcom/groupbyinc/flux/cluster/routing/RoutingNode; canRemain ?(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;
indexMetaData 4Lcom/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; ?(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; canForceAllocatePrimary * 0com/groupbyinc/flux/cluster/routing/ShardRouting , primary ()Z . /
- 0 java/lang/AssertionError 2 java/lang/StringBuilder 4 ()V
6
5 7 =must not call canForceAllocatePrimary on a non-primary shard 9 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ; <
5 = -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ; ?
5 @ toString ()Ljava/lang/String; B C
5 D (Ljava/lang/Object;)V
F
3 G
unassigned I /
- J ;must not call canForceAllocatePrimary on an assigned shard L
N type H()Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type; P Q
R NO FLcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type; T U V YES X Y label [ C
\ 9primary shard [{}] allowed to force allocate on node [{}] ^ java/lang/Object ` shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; b c
- d /com/groupbyinc/flux/cluster/routing/RoutingNode f nodeId h C
g i @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation k decision ?(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; m n
l o java/lang/Class r desiredAssertionStatus t /
s u Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile InnerClasses!
w > *+? ? x y
* + w B ? ? x y 3 w L ? ? x * ! " y ; # w L ? ? x * ! " y C w B ? ? x y K $ w L ? ? x * % &