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

com.groupbyinc.flux.cluster.routing.IndexShardRoutingTable.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4	:com/groupbyinc/flux/cluster/routing/IndexShardRoutingTableZLjava/lang/Object;Ljava/lang/Iterable;java/lang/Objectjava/lang/IterableIndexShardRoutingTable.javaBcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$Builder	BuilderMcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$AttributesRoutingsAttributesRoutingsHcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$AttributesKey
AttributesKeyshuffler3Lcom/groupbyinc/flux/cluster/routing/ShardShuffler;shardId)Lcom/groupbyinc/flux/index/shard/ShardId;primary2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
primaryAsListLjava/util/List;DLjava/util/List;replicasshardsactiveShardsassignedShardsallAllocationIdsLjava/util/Set;#Ljava/util/Set;	NO_SHARDSallShardsStartedZactiveShardsByAttributesLjava/util/Map;?Ljava/util/Map;initializingShardsByAttributesshardsByAttributeMutexLjava/lang/Object;allInitializingShards<(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/util/List;)V()V,.
/java/util/Collections1emptyMap()Ljava/util/Map;34
25%&	7(&	9)*	;	=9com/groupbyinc/flux/cluster/routing/RotationShardShuffler?%com/groupbyinc/flux/common/RandomnessAget()Ljava/util/Random;CD
BEjava/util/RandomGnextInt()IIJ
HK(I)V,M
@N	PunmodifiableList"(Ljava/util/List;)Ljava/util/List;RS
2T	Vjava/util/ArrayListX
Y/java/util/HashSet[
\/java/util/List^iterator()Ljava/util/Iterator;`a_b'com/groupbyinc/flux/index/shard/ShardIdd0com/groupbyinc/flux/cluster/routing/ShardRoutingf
java/util/Sethjava/util/IteratorjhasNext()Zlmknnext()Ljava/lang/Object;pqkrm
gtadd(Ljava/lang/Object;)Zvw_xactivezm
g{initializing}m
g~
relocating?m
g?getTargetRelocatingShard4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting;??
g?allocationId4()Lcom/groupbyinc/flux/cluster/routing/AllocationId;??
g?0com/groupbyinc/flux/cluster/routing/AllocationId?getId()Ljava/lang/String;??
??ixassignedToNode?m
g?state9()Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;??
g?5com/groupbyinc/flux/cluster/routing/ShardRoutingState?STARTED7Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;??	??#$	?	?
singletonList$(Ljava/lang/Object;)Ljava/util/List;??
2?	?	emptyList()Ljava/util/List;??
2?	?	?	?+	?unmodifiableSet (Ljava/util/Set;)Ljava/util/Set;??
2? 	?shardthis;Ljava/util/ArrayList;noPrimariesActive(I)Ljava/lang/Object;C?_?primaryShardIt primaryActiveInitializingShardIt?m
?"	???
?&primaryFirstActiveInitializingShardsIt
Yx
Y?
Y?set'(ILjava/lang/Object;)Ljava/lang/Object;
YshardRouting replicaActiveInitializingShardItjava/util/LinkedList	

/addFirst(Ljava/lang/Object;)V

addLast

replicaJLjava/util/LinkedList;Ljava/util/LinkedList;&replicaFirstActiveInitializingShardsIt"onlyNodeActiveInitializingShardsItG(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;
currentNodeId?
gjava/lang/Stringequalsw
nodeIdLjava/lang/String;*onlyNodeSelectorActiveInitializingShardsItx(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;y([Ljava/lang/String;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;#%
&nodeAttributesdiscoveryNodes1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;/com/groupbyinc/flux/cluster/node/DiscoveryNodes+resolveNodes(([Ljava/lang/String;)[Ljava/lang/String;-.
,/(com/groupbyinc/flux/common/util/set/Sets1
newHashSet(([Ljava/lang/Object;)Ljava/util/HashSet;34
25[Ljava/lang/String;7contains9wi:
Y?java/util/Locale=ROOTLjava/util/Locale;?@	>A.no data nodes with %s [%s] found for shard: %sCcriteriaE[Ljava/lang/Object;G	criterionI,KjoinE(Ljava/lang/CharSequence;[Ljava/lang/CharSequence;)Ljava/lang/String;MN
OformatK(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;QR
S"java/lang/IllegalArgumentExceptionU(Ljava/lang/String;)V,W
VXmessage
selectedNodes$preferNodeActiveInitializingShardsItD(Ljava/util/Set;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;nodeIds	preferrednotPreferredgetClass()Ljava/lang/Class;ab
c
e_othathashCodeiJ
ej_jresultgetByAllocationIdF(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting;%Lcom/groupbyinc/flux/common/Nullable;?
qgetAllAllocationIds()Ljava/util/Set;getActiveAttribute?(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$AttributesKey;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$AttributesRoutings;
java/util/Mapw&(Ljava/lang/Object;)Ljava/lang/Object;Cyxz(Ljava/util/Collection;)V,|
Y}collectAttributeShards?(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$AttributesKey;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Ljava/util/ArrayList;)Ljava/util/List;?
?#(Ljava/util/List;Ljava/util/List;)V,?

?-com/groupbyinc/flux/common/collect/MapBuilder?
newMapBuilder@(Ljava/util/Map;)Lcom/groupbyinc/flux/common/collect/MapBuilder;??
??putU(Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/collect/MapBuilder;??
??immutableMap?4
??java/lang/Throwable?fromtokeyJLcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$AttributesKey;nodes
shardRoutingsOLcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$AttributesRoutings;getInitializingAttribute
attributes?7	?getLocalNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
,?.com/groupbyinc/flux/cluster/node/DiscoveryNode?
getAttributes?4
??
YbD(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;C?
,?remove?.k?	fromShard
discoveryNode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;HLjava/util/Iterator;Ljava/util/Iterator;localAttributeValue	attribute*preferAttributesActiveInitializingShardsItz([Ljava/lang/String;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;I)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;??
?([Ljava/lang/String;)V,?
?uv
??v
?	totalSize??	
?withSameAttribute?	
?withoutSameAttribute?	
?activeRoutingsinitializingRoutingsprimaryShard
replicaShardsreplicaShardsWithStateJ([Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;)Ljava/util/List;8[Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;?
shardEntrystatesshardsWithStateI(Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;)Ljava/util/List;INITIALIZING??	??
btoStringjava/lang/StringBuilder?
?/IndexShardRoutingTable(?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??){?shortSummary??
g?, ?}???
??isbLjava/lang/StringBuilder;	numShards	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTable
StackMapTablep(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/util/List;)VJ()Ljava/util/Iterator;F()Ljava/util/List;X(Ljava/util/Set;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;RuntimeVisibleAnnotations%()Ljava/util/Set;
(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$AttributesKey;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Ljava/util/ArrayList;)Ljava/util/List;~([Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;)Ljava/util/List;}(Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;)Ljava/util/List;
SourceFileInnerClasses!????? ?!"?#$B%&?'B(&?')*+?,,-?(q*?0*?6?8*?6?:*?Y?0?<*+?>*?@Y?F?L?O?Q*,?U?WN?YY?Z:?YY?Z:?YY?Z:?YY?Z:?\Y?]:6	,?c:

?o??
?s?g:?u?	N?
?yW?|?
?yW??
?yW???#???yW????????W????yW??????W?????6	??V*	??*-??-?*-?????
*????*?U??*?U??*?U??*?U??*??????p???q??qq=4F+O"Xa+j m#$	?>qF+O"Xa+j!??*OEFGP"Q3R;T=UFVOWXXaYjZm[?\?]?_?a?b?d?e?g?i?j?l?mnpqs"t(u-v1w<yC{L|U}^~gp??;?ue_g____ik?#g	'!?
?????/*?>?????????/*????????`a?4
*?W?c??
???????J?4
*?W????
?????J?/*?Ƭ???????/*?W??????????/*?ɰ????????/*????????????/*????????????/*?Ͱ????????/*????????????/*????????????A??Y*?>*?Q*?W?׷ٰ????????:??Y*?>*?W?ٰ????????L??Y*?>*?Q*?W?޷ٰ??????????6**?Q????????????f*???????Y*?>*?Q*???޷ٰ?YY*????*????`??M,*?Q*???޶?W,*????W??Y*?>,?ٰ? f??f???'????'????$?PY?$?m?q6*?????+*?????g?|?*?????g?????6???2
4?4???:??Y*?>*???ٰ???????V*?????Y*?>???ٰ*?????????????YY*????*????`??L*?Q*???׹cM,?o?4,?s?gN+-?W-?u?++?d+??W+-?W???*?????+*????W??Y*?>+?ٰ? ?$???m???m???*
!#?$E%L'\(c*f,r-{/??,Yk6????m*?????Y*?>???ٰ?
Y?L*?Q*???׹cM,?o?+,?s?gN-?|?+-??-??+-???һ?Y*?>+?ٰ? Bm??O??O??*
569:B;I<Q=X>]@`A??
k?!g?????*?????Y*?>???ٰ?YY*????*????`??L*?Q*???׹cM,?o?,?s?gN-?|?	+-?W???+*???W*?????+*????W??Y*?>+?ٰ? U
???1_???1_???.GHK1MUN\ObQeTnWzX?Z??+Yk??d??YY*????*????`??M*?Q??>*?Q*???޹c:?o?%?s?g:+?? ?
,?W???*?Q*???޹c:?o?%?s?g:+?? ?
,?W??׻?Y*?>,?ٰ?>L?????!"???#????????.^_#`LaXb_dbe?f?g?i?j??6Yk(??k(?#$?L*?Y+S,?'?? ??(")*?n#%?Z?YY*????*????`??N,+?0?6:*?Q??6*?Q*???޹c:?o?(?s?g:??;?
-?W???*?Q*???޹c:?o?(?s?g:??;?
-?W???-?-?ٰ?\	X??
Z"??(7)*???%?[ .???????%?[!?Jvw%x.yXzg{n}q~????????????????????v	?B8,Yik+??k+??8,Yi>HH?8,Yi>HH \]?i??YY*????*????`??M?YY*????*????`??N*?Q*???׹c:?o?1?s?g:+??;?
,?W?
-?W???,-??W*?????,*????W??Y*?>,?ٰ?4^????^ ?_?6r`?? ?^!?_?6r`??.??6?^?l?v?}???????????HYYk?-g???w??A*+??+?*?d+?d??+?M*?>,?>?e??*?W,?W?f???? A??Ag*$h??????-?????iJ?U*?>?k<h*?W?l`<????m?????#m?/*????????no??O*?r?cM,?o?=,?s?gN-????+? ?-?-???-??????+? ?-???????? -O??O?"?"??+?-?4?E?J?M???
k?"g??pst?/*?????????uv?.b*?8+?{?
N-?Q*?'+??0"?b??b??b?*T???'+??0"??&	????'?0???R?`???X,
???v?.b*?:+?{?
N-?Q*?'+??0"?b??b??b?*T???'+??0"??&	??'0?R`??X,
??
?????YY?ZN*??:?66??2:+?????{?:?^,??:		?o?N	?s?g:
+
???:?
	???%???{? ?	??-
?W??????|-?U??\	X<?
c1??BU`?	7`?"$s?"?????*??????? BU`?	???????>$
7<LXchr??????8?,YY8?+k?/g??!????%?L*+,*?Q????? ???7?*????,??Y+??:*,??:*,??:?YY????`??:*?Q???޶?W*?Q???޶?W*?Q???޶?W*?Q???޶?W??Y*?>?ٰ?R?????7??*???
???w??n??0Z???0Z???&	#
$%)0*C+V,i-|.???/*???????2???/*???????6????? 	]?YY?ZM*???cN-?o?C-?s?g:+:?66?#2:???,?yW???ܧ??,??4???&2?]??]??U?U?":;&<?=I>R<XA[B?=?_k??_kg? ??_k??????D+?٦*????YY?ZM*??N-?o?#-?s?g:??+?,?yW???,??*-?D??D??0?0?"FGIJ-K6L?NBO??_k%??????e??Y??L+??*??????W*?W??=>?-+*?W???g???Wd?+??W????+??W+???*)/??e??]??'>???*
???'?.?C?J?R?X?`???)?(??.???????B?
	





© 2015 - 2025 Weber Informatics LLC | Privacy Policy