All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.cluster.routing.allocation.decider.SameShardAllocationDecider.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4?Qcom/groupbyinc/flux/cluster/routing/allocation/decider/SameShardAllocationDeciderHcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDeciderSameShardAllocationDecider.java4com/groupbyinc/flux/common/settings/Setting$Property+com/groupbyinc/flux/common/settings/SettingPropertyDcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision
Type%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupNAMELjava/lang/String;
same_shard,CLUSTER_ROUTING_ALLOCATION_SAME_HOST_SETTING-Lcom/groupbyinc/flux/common/settings/Setting;BLcom/groupbyinc/flux/common/settings/Setting;sameHostZ$assertionsDisabledf(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/ClusterSettings;)V1(Lcom/groupbyinc/flux/common/settings/Settings;)V!
"	$getB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;&'
	(java/lang/Boolean*booleanValue()Z,-
+.	0"java/lang/invoke/LambdaMetafactory2metafactory?(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;45
367(Ljava/lang/Object;)V9setSameHost(Z)V;<
=>(Ljava/lang/Boolean;)V@acceptr(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/SameShardAllocationDecider;)Ljava/util/function/Consumer;BCD3com/groupbyinc/flux/common/settings/ClusterSettingsFaddSettingsUpdateConsumerM(Lcom/groupbyinc/flux/common/settings/Setting;Ljava/util/function/Consumer;)VHI
GJthisSLcom/groupbyinc/flux/cluster/routing/allocation/decider/SameShardAllocationDecider;settings.Lcom/groupbyinc/flux/common/settings/Settings;clusterSettings5Lcom/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/RoutingAllocationTroutingNodes4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes;VW
UX0com/groupbyinc/flux/cluster/routing/ShardRoutingZshardId+()Lcom/groupbyinc/flux/index/shard/ShardId;\]
[^0com/groupbyinc/flux/cluster/routing/RoutingNodes`assignedShards;(Lcom/groupbyinc/flux/index/shard/ShardId;)Ljava/util/List;bc
addecideSameNode?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Ljava/lang/Iterable;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;fg
htypeH()Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type;jk
lNOFLcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision$Type;no	pjava/lang/Iterabler/com/groupbyinc/flux/cluster/routing/RoutingNodetnode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;vw
uxiterator()Ljava/util/Iterator;z{
a|java/util/Iterator~hasNext?-?next()Ljava/lang/Object;???.com/groupbyinc/flux/cluster/node/DiscoveryNode?getHostAddress()Ljava/lang/String;??
??"com/groupbyinc/flux/common/Strings?	hasLength(Ljava/lang/String;)Z??
??java/lang/String?equals(Ljava/lang/Object;)Z??
??getHostName??
??s|nodeId??
u?
currentNodeId??
[?address?name?ALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;n?	??the shard cannot be allocated on host %s [%s], where it already exists on node [%s]; set cluster setting [%s] to false to allow multiple nodes on the same host to hold the same shard copies?java/lang/Object?getKey??
	?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?YES??	?)the shard does not exist on the same host?hostTypehost
assignedShard2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;checkNodeOnSameHostNamecheckNodeOnSameHostAddress	checkNode1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;shardRouting
allocationBLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;HLjava/lang/Iterable;Ljava/lang/Iterable;canForceAllocatePrimary	?primary?-
[?java/lang/AssertionError?3must not call force allocate on a non-primary shard?9
??isSameAllocation5(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Z??
[?Ithe shard cannot be allocated to the node on which it already exists [%s]?toString??
[?_the shard cannot be allocated to the same node on which a copy of the shard already exists [%s]?)the shard does not exist on the same node?()Vjava/lang/Class?desiredAssertionStatus?-
??*cluster.routing.allocation.same_shard.host?Dynamic6Lcom/groupbyinc/flux/common/settings/Setting$Property;??	?	NodeScope??	?boolSettingy(Ljava/lang/String;Z[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
	?
ConstantValue	SignatureCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable0(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Ljava/lang/Iterable;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;BootstrapMethods
SourceFileInnerClasses!??B ?n$*+?#*?%+?)?+?/?1,?%*?E?K?? $LM$NO$PQ?89:#;;<?>*?1??LM?
CDRS??l-?Y+?_?e:*+,-?i:?m?q?
*?1??,?y?+-?Y?}:??????u:?y????66	?y?????+,?y??????y??,?y?????<6	?6?y?????(,?y??????y??,?y?????6	?????:

???r
???[:???????S	????:	?
,?y???
,?y??:
-?????YSY
SY,??SY?%??S?????????-?????????zB?,*?
?`??a??d??	S??lLMl??lv?l??
_b?T???
_b??nH
IJ*L-N4OSP[Q^TaUdVW?X?Z?[?\?_?`?abc,dEhRdVjYl\n?[?*s?? u?;2	??/[A???F??+?[uUs??S??.?ɚ+?̚
??Yзҿ-?Y+?_?e:*+,-?i??4.LM.??.v?.??$
b??$
b??st$u?fg?)y??:???Y???[:,???????;+?֙-?????Y+??S???-?????Y??S??????-?????????>G??yLMy??yv?y??yb??yb??.z{.|7}FJ}N?^?b?f?i???	?D[???????Y*???????Y??SY??S??%??.2#3)2?@?8:?A??	
@@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy