com.groupbyinc.flux.cluster.routing.allocation.decider.EnableAllocationDecider.class Maven / Gradle / Ivy
???? 4T Ncom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider Hcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDecider EnableAllocationDecider.java Pcom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider$1 Xcom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider$Rebalance Rebalance Ycom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider$Allocation
Allocation 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting Property 7com/groupbyinc/flux/cluster/routing/RecoverySource$Type 2com/groupbyinc/flux/cluster/routing/RecoverySource Type %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup NAME Ljava/lang/String; enable )CLUSTER_ROUTING_ALLOCATION_ENABLE_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ?Lcom/groupbyinc/flux/common/settings/Setting; 'INDEX_ROUTING_ALLOCATION_ENABLE_SETTING (CLUSTER_ROUTING_REBALANCE_ENABLE_SETTING ?Lcom/groupbyinc/flux/common/settings/Setting; &INDEX_ROUTING_REBALANCE_ENABLE_SETTING enableRebalance ZLcom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider$Rebalance; enableAllocation [Lcom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider$Allocation; f(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/ClusterSettings;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V , .
/ ! " 1 get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; 3 4
5 * + 7 % " 9 ( ) ; "java/lang/invoke/LambdaMetafactory = 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; ? @
> A B (Ljava/lang/Object;)V D setEnableAllocation ^(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider$Allocation;)V F G
H I G accept o(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider;)Ljava/util/function/Consumer; L M N 3com/groupbyinc/flux/common/settings/ClusterSettings P addSettingsUpdateConsumer M(Lcom/groupbyinc/flux/common/settings/Setting;Ljava/util/function/Consumer;)V R S
Q T setEnableRebalance ](Lcom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider$Rebalance;)V V W
X Y W N this PLcom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider; settings .Lcom/groupbyinc/flux/common/settings/Settings; clusterSettings 5Lcom/groupbyinc/flux/common/settings/ClusterSettings; 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; @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation e
ignoreDisable ()Z g h
f i ?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision k YES ALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; m n l o eexplicitly ignoring any disabling of allocation due to manual allocation commands via the reroute API q java/lang/Object s 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; u v
f w metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; y z
f { 0com/groupbyinc/flux/cluster/routing/ShardRouting } index #()Lcom/groupbyinc/flux/index/Index; ?
~ ? -com/groupbyinc/flux/cluster/metadata/MetaData ? getIndexSafe W(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
? ? $ " ? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ? getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings; ? ?
? ? exists 1(Lcom/groupbyinc/flux/common/settings/Settings;)Z ? ?
? b$SwitchMap$org$elasticsearch$cluster$routing$allocation$decider$EnableAllocationDecider$Allocation [I ? ? ? ordinal ()I ? ?
? all allocations are allowed ? NO ? n l ? $no allocations are allowed due to {} ? setting p(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider$Allocation;Z)Ljava/lang/String; ? ?
? primary ? h
~ ? active ? h
~ ? recoverySource 6()Lcom/groupbyinc/flux/cluster/routing/RecoverySource; ? ?
~ ? getType ;()Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type; ? ?
? EXISTING_STORE 9Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type; ? ? ? #new primary allocations are allowed ? 3non-new primary allocations are forbidden due to {} ? primary allocations are allowed ? +replica allocations are forbidden due to {} ? java/lang/IllegalStateException ? Unknown allocation option ? (Ljava/lang/String;)V , ?
? ? usedIndexSetting Z shardRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; node 1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;
allocation BLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; canRebalance ?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; =allocation is explicitly ignoring any disabling of relocation ? ' " ? ,com/groupbyinc/flux/common/settings/Settings ? a$SwitchMap$org$elasticsearch$cluster$routing$allocation$decider$EnableAllocationDecider$Rebalance ? ? ?
? all rebalancing is allowed ? #no rebalancing is allowed due to %s ? o(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider$Rebalance;Z)Ljava/lang/String; ? ?
? primary rebalancing is allowed ? *replica rebalancing is forbidden due to %s ? replica rebalancing is allowed ? *primary rebalancing is forbidden due to %s ? Unknown rebalance option ?
indexSettings java/lang/StringBuilder ? ()V , ?
? ? index setting [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? getKey ()Ljava/lang/String; ? ?
? cluster setting [ = toString ?
java/util/Locale ROOT Ljava/util/Locale;
java/lang/String
toLowerCase &(Ljava/util/Locale;)Ljava/lang/String;
]
? buf Ljava/lang/StringBuilder;
rebalance !cluster.routing.allocation.enable ALL + name ?
! &(Ljava/lang/Object;)Ljava/lang/Object;# parse o(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider$Allocation;%&
'(& apply ()Ljava/util/function/Function;+, - Dynamic 6Lcom/groupbyinc/flux/common/settings/Setting$Property;/0 1 NodeScope30 4 {(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)V ,6
7 index.routing.allocation.enable9
IndexScope;0 < cluster.routing.rebalance.enable> ) @
! n(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/EnableAllocationDecider$Rebalance;%C
DEC - index.routing.rebalance.enableI
ConstantValue Signature Code LocalVariableTable LineNumberTable
StackMapTable BootstrapMethods
SourceFile InnerClasses ! K ! " L # $ " L # % " L &