com.groupbyinc.flux.discovery.DiscoveryModule.class Maven / Gradle / Ivy
???? 4e -com/groupbyinc/flux/discovery/DiscoveryModule java/lang/Object DiscoveryModule.java java/util/Map$Entry
java/util/Map Entry 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting
Property %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup DISCOVERY_TYPE_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ALcom/groupbyinc/flux/common/settings/Setting; DISCOVERY_HOSTS_PROVIDER_SETTING WLcom/groupbyinc/flux/common/settings/Setting;>; discovery )Lcom/groupbyinc/flux/discovery/Discovery; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/common/network/NetworkService;Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/service/ClusterApplier;Lcom/groupbyinc/flux/common/settings/ClusterSettings;Ljava/util/List;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;)V ()V
java/util/ArrayList !
" java/util/HashMap $
% java/util/List ' iterator ()Ljava/util/Iterator; ) * ( + ,com/groupbyinc/flux/common/settings/Settings - )com/groupbyinc/flux/threadpool/ThreadPool / .com/groupbyinc/flux/transport/TransportService 1 ;com/groupbyinc/flux/common/io/stream/NamedWriteableRegistry 3 1com/groupbyinc/flux/common/network/NetworkService 5 1com/groupbyinc/flux/cluster/service/MasterService 7 2com/groupbyinc/flux/cluster/service/ClusterApplier 9 3com/groupbyinc/flux/common/settings/ClusterSettings ; @com/groupbyinc/flux/cluster/routing/allocation/AllocationService = java/util/Collection ? java/util/Iterator A hasNext ()Z C D B E next ()Ljava/lang/Object; G H B I +com/groupbyinc/flux/plugins/DiscoveryPlugin K getZenHostsProviders t(Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/common/network/NetworkService;)Ljava/util/Map; M N L O entrySet ()Ljava/util/Set; Q R S "java/lang/invoke/LambdaMetafactory U metafactory ?(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; W X
V Y Z (Ljava/lang/Object;)V \ lambda$new$0 '(Ljava/util/Map;Ljava/util/Map$Entry;)V ^ _
` a (Ljava/util/Map$Entry;)V c accept .(Ljava/util/Map;)Ljava/util/function/Consumer; e f g
java/util/Set i forEach (Ljava/util/function/Consumer;)V k l j m getJoinValidator !()Ljava/util/function/BiConsumer; o p L q add (Ljava/lang/Object;)Z s t @ u w get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; y z
{ java/util/Optional } isPresent D
~ ? y H
~ ? &(Ljava/lang/Object;)Ljava/lang/Object; y ? ? java/util/function/Supplier ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder ?
? Unknown zen hosts provider [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? java/lang/String ? ] ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/String;)V ?
? ? ? ? java/util/Objects ? requireNonNull ? ?
? ? 6com/groupbyinc/flux/discovery/zen/UnicastHostsProvider ? ()Ljava/util/List; ? java/util/Collections ? emptyList ? ?
? ? ? buildDynamicNodes :()Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider; ? ? ? zen ? H lambda$new$1(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/service/ClusterApplier;Lcom/groupbyinc/flux/common/settings/ClusterSettings;Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;Ljava/util/Collection;)Lcom/groupbyinc/flux/discovery/Discovery; ? ?
? ? +()Lcom/groupbyinc/flux/discovery/Discovery; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/service/ClusterApplier;Lcom/groupbyinc/flux/common/settings/ClusterSettings;Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;Ljava/util/Collection;)Ljava/util/function/Supplier; y ? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? single-node ? lambda$new$2 ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/service/ClusterApplier;)Lcom/groupbyinc/flux/discovery/Discovery; ? ?
? ? ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/service/ClusterApplier;)Ljava/util/function/Supplier; y ? ? getDiscoveryTypes?(Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/service/ClusterApplier;Lcom/groupbyinc/flux/common/settings/ClusterSettings;Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;)Ljava/util/Map; ? ? L ? lambda$new$3 ? _
? ? g ? Unknown discovery type [ ? getClass ()Ljava/lang/Class; ? ?
? *com/groupbyinc/flux/common/logging/Loggers ? getLogger ?(Ljava/lang/Class;Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ? ?
? ? using discovery type [{}] ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger ? info '(Ljava/lang/String;Ljava/lang/Object;)V ? ? ? ? 'com/groupbyinc/flux/discovery/Discovery ? ?
joinValidator {Ljava/util/function/BiConsumer; Ljava/util/function/BiConsumer; plugin -Lcom/groupbyinc/flux/plugins/DiscoveryPlugin; hostsProviderSupplier WLjava/util/function/Supplier; Ljava/util/function/Supplier;
hostsProvider 8Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider; this /Lcom/groupbyinc/flux/discovery/DiscoveryModule; settings .Lcom/groupbyinc/flux/common/settings/Settings;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; transportService 0Lcom/groupbyinc/flux/transport/TransportService; namedWriteableRegistry =Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry; networkService 3Lcom/groupbyinc/flux/common/network/NetworkService;
masterService 3Lcom/groupbyinc/flux/cluster/service/MasterService; clusterApplier 4Lcom/groupbyinc/flux/cluster/service/ClusterApplier; clusterSettings 5Lcom/groupbyinc/flux/common/settings/ClusterSettings; plugins ?Ljava/util/List; Ljava/util/List; allocationService BLcom/groupbyinc/flux/cluster/routing/allocation/AllocationService; joinValidators ?Ljava/util/Collection;>; Ljava/util/Collection;
hostProviders zLjava/util/Map;>; Ljava/util/Map; hostsProviderName (Ljava/util/Optional; Ljava/util/Optional; discoveryTypes kLjava/util/Map;>;
discoveryType Ljava/lang/String; discoverySupplier HLjava/util/function/Supplier; getDiscovery getKey" H # getValue% H & Cannot register discovery type [( ] twice* entry Ljava/util/Map$Entry; 8com/groupbyinc/flux/discovery/single/SingleNodeDiscovery. ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/service/ClusterApplier;)V 0
/1 .com/groupbyinc/flux/discovery/zen/ZenDiscovery3 unmodifiableCollection .(Ljava/util/Collection;)Ljava/util/Collection;56
?7?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/service/ClusterApplier;Lcom/groupbyinc/flux/common/settings/ClusterSettings;Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;Ljava/util/Collection;)V 9
4: $Cannot register zen hosts provider [< discovery.type? java/util/function/FunctionA identity ()Ljava/util/function/Function;CDBE NodeScope 6Lcom/groupbyinc/flux/common/settings/Setting$Property;GH I {(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)V K
L discovery.zen.hosts_providerN ?
ofNullable ((Ljava/lang/Object;)Ljava/util/Optional;QR
~ST ((Ljava/lang/String;)Ljava/util/Optional;V applyXD Y Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/common/network/NetworkService;Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/service/ClusterApplier;Lcom/groupbyinc/flux/common/settings/ClusterSettings;Ljava/util/List;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;)V BootstrapMethods
SourceFile InnerClasses ! [ [ \ ? ?*? ? "Y? #:? %Y? &: ? , :
? F ? E
? J ? L:-? P ? T ? h ? n ? r :?
? v W???? x+? |? ~:
? ?? R
? ?? ? ? ?:? *? ?Y? ?Y? ??? ?
? ?? ?? ??? ?? ?? ??? ? ? ?? ?:?
? ? :? %Y? &:?+,-
? ? ? ? W?+-? ? ? ? W ? , :? F ? 8? J ? L:,-
? ? ? T ? ? ? n ??IJ ?+? |? ?:? ? ? ?:? $? ?Y? ?Y? ?ڶ ?? ??? ?? ?? ??*? ?+? ?? ??? ? *? ? ? ?? ? ? ] ? Y ? ? 5 3 ? ? ? ; ? ? ? ? ? 2 &