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

com.groupbyinc.flux.discovery.zen.ElectMasterService.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4y4com/groupbyinc/flux/discovery/zen/ElectMasterService6com/groupbyinc/flux/common/component/AbstractComponentElectMasterService.javaDcom/groupbyinc/flux/discovery/zen/ElectMasterService$MasterCandidateMasterCandidate4com/groupbyinc/flux/common/settings/Setting$Property	+com/groupbyinc/flux/common/settings/SettingProperty%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookup*DISCOVERY_ZEN_MINIMUM_MASTER_NODES_SETTING-Lcom/groupbyinc/flux/common/settings/Setting;BLcom/groupbyinc/flux/common/settings/Setting;minimumMasterNodesI$assertionsDisabledZ1(Lcom/groupbyinc/flux/common/settings/Settings;)V
	getB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; !
"java/lang/Integer$intValue()I&'
%(	*logger!Lorg/apache/logging/log4j/Logger;,-	.using minimum_master_nodes [{}]0valueOf(I)Ljava/lang/Integer;23
%4org/apache/logging/log4j/Logger6debug'(Ljava/lang/String;Ljava/lang/Object;)V897:this6Lcom/groupbyinc/flux/discovery/zen/ElectMasterService;settings.Lcom/groupbyinc/flux/common/settings/Settings;(I)VcountMasterNodes(Ljava/lang/Iterable;)Ijava/lang/IterableCiterator()Ljava/util/Iterator;EFDGjava/util/IteratorIhasNext()ZKLJMnext()Ljava/lang/Object;OPJQ.com/groupbyinc/flux/cluster/node/DiscoveryNodeSisMasterNodeUL
TVnode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;nodesFLjava/lang/Iterable;Ljava/lang/Iterable;counthasEnoughCandidates(Ljava/util/Collection;)Zjava/util/Collection`isEmptybLac	estream()Ljava/util/stream/Stream;ghai"java/lang/invoke/LambdaMetafactorykmetafactory?(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;mn
lop&(Ljava/lang/Object;)Ljava/lang/Object;rgetNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;tu
vwx(Lcom/groupbyinc/flux/discovery/zen/ElectMasterService$MasterCandidate;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;yapply()Ljava/util/function/Function;{|}java/util/stream/Streammap8(Ljava/util/function/Function;)Ljava/util/stream/Stream;????java/util/stream/Collectors?toSet()Ljava/util/stream/Collector;??
??collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;????
java/util/Set?size?'??a?java/lang/AssertionError?java/lang/StringBuilder?()V?
??duplicates ahead: ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??toString()Ljava/lang/String;??
??(Ljava/lang/Object;)V?
??
candidates^Ljava/util/Collection;Ljava/util/Collection;electMaster^(Ljava/util/Collection;)Lcom/groupbyinc/flux/discovery/zen/ElectMasterService$MasterCandidate;^_
?
??java/util/ArrayList?(Ljava/util/Collection;)V?
??'(Ljava/lang/Object;Ljava/lang/Object;)I?compare?(Lcom/groupbyinc/flux/discovery/zen/ElectMasterService$MasterCandidate;Lcom/groupbyinc/flux/discovery/zen/ElectMasterService$MasterCandidate;)I??
???()Ljava/util/Comparator;???java/util/List?sort(Ljava/util/Comparator;)V????(I)Ljava/lang/Object; ???sortedCandidatesXLjava/util/List;Ljava/util/List;tieBreakActiveMastersH(Ljava/util/Collection;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;compareNodesc(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)I??
????min,(Ljava/util/Comparator;)Ljava/util/Optional;????java/util/Optional? P
??
activeMastersHLjava/util/Collection;hasEnoughMasterNodes(Ljava/lang/Iterable;)ZAB
?hasTooManyMasterNodes'logMinimumMasterNodesWarningIfNecessaryW(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/ClusterState;)V(com/groupbyinc/flux/cluster/ClusterState?3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;Z?
????
??value for setting "{}" is too low. This can result in data loss! Please set it to at least a quorum of master-eligible nodes (current value: [{}], total number of master-eligible nodes used for publishing in this round: [{}])?getKey??
?'
?getNodes??
??/com/groupbyinc/flux/cluster/node/DiscoveryNodes?getMasterNodes7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;??
??3com/groupbyinc/flux/common/collect/ImmutableOpenMap
?warnK(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V7oldState*Lcom/groupbyinc/flux/cluster/ClusterState;newStatesortByMasterLikelihood&(Ljava/lang/Iterable;)Ljava/util/List;/com/groupbyinc/flux/common/util/CollectionUtils
iterableAsArrayList+(Ljava/lang/Iterable;)Ljava/util/ArrayList;
;Ljava/util/ArrayList;nextPossibleMastersr(Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer;I)[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;;>Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer;numberOfPossibleMastersBLjava/util/List;counter?cremoveA?JBitFLjava/util/Iterator;Ljava/util/Iterator;
possibleNodesgetIdH?
TIjava/lang/StringK	compareTo(Ljava/lang/String;)IMN
LOo1o2
access$000x0x1java/lang/ClassWdesiredAssertionStatusYL
XZ"discovery.zen.minimum_master_nodes\Dynamic6Lcom/groupbyinc/flux/common/settings/Setting$Property;^_	
`	NodeScopeb_	
c
intSettingy(Ljava/lang/String;I[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;ef
g	SignatureCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTableI(Ljava/lang/Iterable;)Ia(Ljava/util/Collection;)Z?(Ljava/util/Collection;)Lcom/groupbyinc/flux/discovery/zen/ElectMasterService$MasterCandidate;z(Ljava/util/Collection;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;I(Ljava/lang/Iterable;)Z?(Ljava/lang/Iterable;)Ljava/util/List;?(Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer;I)[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;BootstrapMethods
SourceFileInnerClasses!iBji)*+?*?+?#?%?)?+*?/1*?+?5?;?k)<=)>?lefg(h@j>*?+?k<=l
kl'j/*?+?k<=loABj?-=+?HN-?N?-?R?T:?W??????k*XY-<=-Z\+]m-Z[lstu%v(x+yn
?	J?io^_j?r+?d??*?+???f?G+?j?~??????????+?????Y??Y?????+???????+??*?+???kr<=r??mr??l}	~???_?n
	?I@ip??j?5?f?*+?????Y?????Y+??M,????,????k 5<=5????m5????l???*?niq??j]+?j???????T?k<=??m??l?ir??j?*+??=?*?+?*?+???k <=Z\]mZ[l
??n	?@is??j}*+??=?*?+l???k <=Z\]mZ[l
??n?@is??j?<*+???3*,???(*?/???*???5,?????5??k <<=<	<
	l???*?6?;?n;jh*?L+???+?kZ\mZ[l???itjJu*+T?#?%?+?.N-??T???Y?0:6-?1:?N?(?R?T:????5W????6?T?9?%?kHG:Yu<=uZ<u=b?&O?)L?m uZ;b>&O>l.????&?)?G?P?S?]?`?n????J?!T?iu,j?G+?M,?@??,?1N-?N?-?R?T:?W?	-?C???,???,?k4+XY%DFG<=GZ\BG?m %DEGZ[BG>l*
???? ?+?3?9?<?E?n???J!?it
??jz,*?W?+?W??*?W?+?W??*?J+?J?P?k,QY,RYl???? ?nS?j:*+?լkTYUYl(V?jZ+?[???f]?
Y?aSY?dS?h??l(*$+**n@v qsxzq???q???wx	

@




© 2015 - 2024 Weber Informatics LLC | Privacy Policy