
com.groupbyinc.flux.cluster.routing.allocation.decider.DisableAllocationDecider.class Maven / Gradle / Ivy
???? 3 ? Ocom/groupbyinc/flux/cluster/routing/allocation/decider/DisableAllocationDecider Hcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDecider DisableAllocationDecider.java Ljava/lang/Deprecated; ]com/groupbyinc/flux/cluster/routing/allocation/decider/DisableAllocationDecider$ApplySettings
ApplySettings >com/groupbyinc/flux/node/settings/NodeSettingsService$Listener
5com/groupbyinc/flux/node/settings/NodeSettingsService Listener NAME Ljava/lang/String; disable 1CLUSTER_ROUTING_ALLOCATION_DISABLE_NEW_ALLOCATION 1cluster.routing.allocation.disable_new_allocation -CLUSTER_ROUTING_ALLOCATION_DISABLE_ALLOCATION -cluster.routing.allocation.disable_allocation 5CLUSTER_ROUTING_ALLOCATION_DISABLE_REPLICA_ALLOCATION 5cluster.routing.allocation.disable_replica_allocation /INDEX_ROUTING_ALLOCATION_DISABLE_NEW_ALLOCATION /index.routing.allocation.disable_new_allocation +INDEX_ROUTING_ALLOCATION_DISABLE_ALLOCATION +index.routing.allocation.disable_allocation 3INDEX_ROUTING_ALLOCATION_DISABLE_REPLICA_ALLOCATION 3index.routing.allocation.disable_replica_allocation # disableNewAllocation Z disableAllocation disableReplicaAllocation h(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/node/settings/NodeSettingsService;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V ) ,
- java/lang/Boolean / valueOf (Z)Ljava/lang/Boolean; 1 2
0 3 ,com/groupbyinc/flux/common/settings/Settings 5 getAsBoolean :(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean; 7 8
6 9 booleanValue ()Z ; <
0 = % & ? ' & A ( & C T(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/DisableAllocationDecider;)V ) E
F addListener C(Lcom/groupbyinc/flux/node/settings/NodeSettingsService$Listener;)V H I
J this QLcom/groupbyinc/flux/cluster/routing/allocation/decider/DisableAllocationDecider; settings .Lcom/groupbyinc/flux/common/settings/Settings; nodeSettingsService 7Lcom/groupbyinc/flux/node/settings/NodeSettingsService; 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 T
ignoreDisable V <
U W ?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision Y YES ALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; [ \ Z ] allocation disabling is ignored _ java/lang/Object a 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; c d
U e routingNodes 4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes; g h
U i 0com/groupbyinc/flux/cluster/routing/RoutingNodes k metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; m n
l o 0com/groupbyinc/flux/cluster/routing/ShardRouting q index ()Ljava/lang/String; s t
r u -com/groupbyinc/flux/cluster/metadata/MetaData w H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; s y
x z 2com/groupbyinc/flux/cluster/metadata/IndexMetaData | getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings; ~
} ? primary ? <
r ? allocatedPostIndexCreate ? <
r ? NO ? \ Z ? "new primary allocation is disabled ? !new primary allocation is enabled ? all allocation is disabled ? primary allocation is enabled ? replica allocation is disabled ? all allocation is enabled ? shardRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; node 1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;
allocation BLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;
indexSettings
access$000 T(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/DisableAllocationDecider;)Z x0
access$100 ?(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/DisableAllocationDecider;)Lcom/groupbyinc/flux/common/logging/ESLogger; logger -Lcom/groupbyinc/flux/common/logging/ESLogger; ? ? ?
access$002 U(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/DisableAllocationDecider;Z)Z x1
access$200
access$300
access$202
access$400
access$500
access$402
ConstantValue Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations
StackMapTable
SourceFile
Deprecated InnerClasses !
? ? ? ? ? ? ! " ? $ B % &