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

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

There is a newer version: 59
Show newest version
????3?5com/groupbyinc/flux/cluster/routing/IndexRoutingTable?Lcom/groupbyinc/flux/cluster/AbstractDiffable;Ljava/lang/Iterable;,com/groupbyinc/flux/cluster/AbstractDiffablejava/lang/IterableIndexRoutingTable.java=com/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder	Builder7com/groupbyinc/flux/cluster/routing/IndexRoutingTable$1Bcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$Builder:com/groupbyinc/flux/cluster/routing/IndexShardRoutingTablePROTO7Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;indexLjava/lang/String;shuffler3Lcom/groupbyinc/flux/cluster/routing/ShardShuffler;shards8Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;vLcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;allActiveShardsLjava/util/List;DLjava/util/List;M(Ljava/lang/String;Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;)V()V 
!	#9com/groupbyinc/flux/cluster/routing/RotationShardShuffler%&java/util/concurrent/ThreadLocalRandom'current*()Ljava/util/concurrent/ThreadLocalRandom;)*
(+nextInt()I-.
(/(I)V1
&2	4	6java/util/ArrayList8
9!6com/groupbyinc/flux/common/collect/ImmutableOpenIntMap;iterator()Ljava/util/Iterator;=>
<?java/lang/StringAjava/util/ListCjava/util/IteratorEhasNext()ZGHFInext()Ljava/lang/Object;KLFMDcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/IntObjectCursorOvalueLjava/lang/Object;QR	PS
?0com/groupbyinc/flux/cluster/routing/ShardRoutingVfreezeX 
WYactive[H
W\add(Ljava/lang/Object;)Z^_D`java/util/CollectionsbunmodifiableList"(Ljava/util/List;)Ljava/util/List;de
cf	hshardRouting2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;cursor?Lcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/IntObjectCursor;FLcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/IntObjectCursor;this()Ljava/lang/String;getIndexp
rnormalizeVersions9()Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;(Ljava/lang/String;)Vv

w>()Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;ty
z
addIndexShard}(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder;|}

~build?u

?builder?Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder;validaten(Lcom/groupbyinc/flux/cluster/routing/RoutingTableValidation;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)V-com/groupbyinc/flux/cluster/metadata/MetaData?hasIndex(Ljava/lang/String;)Z??
??-Exists in routing does not exists in metadata?:com/groupbyinc/flux/cluster/routing/RoutingTableValidation?addIndexFailure'(Ljava/lang/String;Ljava/lang/String;)V??
??H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;?
??F(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Ljava/util/List;??
?D?2com/groupbyinc/flux/cluster/metadata/IndexMetaData?failure
validation;Ljava/util/Set;routingNumberOfReplicasfailures)Ljava/util/ArrayList;Ljava/util/ArrayList;valuesIt??
<?!numberOfNodesShardsAreAllocatedOn([Ljava/lang/String;)IassignedToNodeH
W
currentNodeIdp
W[Ljava/lang/String;	??excludedNodeexcludedZshardRoutingTable
excludedNodesnodes#Ljava/util/Set;	getShardsshard?(I)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;get(I)Ljava/lang/Object;
<allPrimaryShardsActiveprimaryShardsActive.
primaryShard4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
 counterallPrimaryShardsUnassignedprimaryShardsUnassigned$.
%
unassigned'H
W(shardsWithStateI(Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;)Ljava/util/List;*+
,addAll(Ljava/util/Collection;)Z./D0state7Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;randomAllActiveShardsIt6()Lcom/groupbyinc/flux/cluster/routing/ShardsIterator;7com/groupbyinc/flux/cluster/routing/PlainShardsIterator61com/groupbyinc/flux/cluster/routing/ShardShuffler8shuffle:e
9;(Ljava/util/List;)V=
7>groupByShardsIt;()Lcom/groupbyinc/flux/cluster/routing/GroupShardsIterator;
92shardsIt5()Lcom/groupbyinc/flux/cluster/routing/ShardIterator;CD
E7com/groupbyinc/flux/cluster/routing/GroupShardsIteratorG
H>
indexShardsetJLjava/util/ArrayList;groupByAllIt
WEjava/lang/ObjectOgetClass()Ljava/lang/Class;QR
PS
<?othathashCodeX.
BY
<Yresult>com/groupbyinc/flux/cluster/routing/RoutingValidationException]readFromk(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;java/io/IOExceptiona0com/groupbyinc/flux/common/io/stream/StreamInputc
readStringep
dfreadVInth.
direadFromThin?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;kl
min2Lcom/groupbyinc/flux/common/io/stream/StreamInput;writeTo6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V1com/groupbyinc/flux/common/io/stream/StreamOutputswriteStringuv
tv	writeVIntx1
tywriteToThinr(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V{|
}out3Lcom/groupbyinc/flux/common/io/stream/StreamOutput;S(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder;prettyPrint
-- index [?]
?
?w:(Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;)V?

?;F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object;_`
????
?	?	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTable
StackMapTable?(Ljava/lang/String;Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;)VZ(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Ljava/util/List;?()Lcom/groupbyinc/flux/common/google/common/collect/UnmodifiableIterator;x()Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;}(Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;)Ljava/util/List;
Exceptions
SourceFileInnerClasses!???o?*?"*+?$*?&Y?,?0?3?5*,?7?9Y?:N,?@:?J?N?N?P:?T??U:?J?(?N?W:?Z?]?-?aW??ԧ??*-?g?i??>fjkC<ln?o??'d? C<lm?'d?:HI	JKL'MCNfOkPsQ|ST?U?V?(?-B<DF?"PF+????p?/*?$??o?^qp?/*?s??o?htu??>?
Y*?$?xL*?7?@M,?J?,?N?PN+-?T??{?W???+???? 'ln>o2???'lm?qr's6t9u??
F?$????O,*?s???+*?s????,*?s??N*-????:?J??N?B:+*?$??????4A
?OoO??O??0???"yz{}~AK?N????F?"???b;?9Y?:M+??*?????n??N6+???-????W????*??:?J?$?N?:-?öȸ???W???,??Y??ж?-?׶ڶ?W*??N-?J??-?N?:??d6+?ߟ=,??Y?????öȶ???+?߶??????Զڶ?W?U:?J?B?N?W:??*?s??$,??Y????????Զڶ?W?????P,??\	??T??g??0jk????????;o;??3???g??3???Z????&?2?8?T?f?i?????????????????3?6?9??7?9???F?*??F?_?F?E????=??2*?7???o???????
???M*??N-?J??-?N?:?U:?J?e?N?W:??N?:6+?2+:		?6
6
? 	2:??	6?	?????,??W?????y,???RiIDLA
:Sjks??o?	?????F???:?B?I?L?P?i?s?v?y???????????F?	?F?F?6
?FFWB
??
????/*?7??o??????/*????o?????@*?7????o????H?I*?*????????o???@.??,<*??M,?J?,?N?N-?!?]??????? 
?,o*"?????$?'?*??
?F?#H?I*?&*?7??????o???@$.??,<*??M,?J?,?N?N-?!?)??????? 
?,o*"?????$?'?*??
?F?*+??3?9Y?:M*??N-?J?-?N?:,+?-?1W???,??*!
?3o323+?+?	
!.1
??
DF?#??45?=?7Y*?5*?i?=@??X.?S*?$?Z<h*?7?[`<??o\??EFG? ?+??o?K?^_`??3+?gM?
Y,?xN+?j66?-+,?n?W????-????>??3o3op.%?????OPRST(S.W??dB
??bqr??4+*?$?w+*?7???z*??M,?J?,?N?N-+?~???? +J?4o4??\]^+_0`3a??F??b	???3	?
Y*?x??	?d?p????Y??Y?????*?$????Զڷ?L?9Y?:M*??N-?J?-?N?:,?aW???,?
Y*????,??N-?J?t-?N?:+????ö?????????öȶ????W?U:?J?(?N?W:+??????????W??ԧ??+?ڰ?>F	J??kycJ??o%???-???-????6
%-FOR^+y,?-?.?/?0?1?&?2?DF??F?GF?.?A_??0*+????o?;?bA=>?/*????o?;? ?%
?????????=???
	
	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy