com.groupbyinc.flux.discovery.DiscoveryModule.class Maven / Gradle / Ivy
???? 4? -com/groupbyinc/flux/discovery/DiscoveryModule java/lang/Object DiscoveryModule.java java/util/Map$Entry
java/util/Map Entry Dcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider$HostsResolver 6com/groupbyinc/flux/discovery/zen/UnicastHostsProvider
HostsResolver 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 SLcom/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 )
* $ settings , "java/lang/invoke/LambdaMetafactory . 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; 0 1
/ 2 3 ()Ljava/lang/Object; 5 lambda$new$0 ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;)Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider; 7 8
9 : :()Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider; < get }(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;)Ljava/util/function/Supplier; > ? @ put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; B C D java/util/List F iterator ()Ljava/util/Iterator; H I G J ,com/groupbyinc/flux/common/settings/Settings L )com/groupbyinc/flux/threadpool/ThreadPool N .com/groupbyinc/flux/transport/TransportService P ;com/groupbyinc/flux/common/io/stream/NamedWriteableRegistry R 1com/groupbyinc/flux/common/network/NetworkService T 1com/groupbyinc/flux/cluster/service/MasterService V 2com/groupbyinc/flux/cluster/service/ClusterApplier X 3com/groupbyinc/flux/common/settings/ClusterSettings Z @com/groupbyinc/flux/cluster/routing/allocation/AllocationService \ java/util/Collection ^ java/util/Iterator ` hasNext ()Z b c a d next f 5 a g +com/groupbyinc/flux/plugins/DiscoveryPlugin i getZenHostsProviders t(Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/common/network/NetworkService;)Ljava/util/Map; k l j m entrySet ()Ljava/util/Set; o p q (Ljava/lang/Object;)V s lambda$new$1 '(Ljava/util/Map;Ljava/util/Map$Entry;)V u v
w x (Ljava/util/Map$Entry;)V z accept .(Ljava/util/Map;)Ljava/util/function/Consumer; | } ~
java/util/Set ? forEach (Ljava/util/function/Consumer;)V ? ? ? ? getJoinValidator !()Ljava/util/function/BiConsumer; ? ? j ? add (Ljava/lang/Object;)Z ? ? _ ? ? B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; > ?
? contains ? ? G ? G ? addAll (Ljava/util/Collection;)Z ? ? G ? java/util/HashSet ? (Ljava/util/Collection;)V ! ?
? ? keySet ? p ? removeAll ? ? ? ? isEmpty ? c ? ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder ?
? $ Unknown zen hosts providers ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/String;)V ! ?
? ? stream ()Ljava/util/stream/Stream; ? ? G ? java/util/Objects ? requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? ? > ? ? ? 1(Ljava/lang/String;)Ljava/util/function/Supplier; ? apply .(Ljava/util/Map;)Ljava/util/function/Function; ? ? ? java/util/stream/Stream ? map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; ? ? ? ? java/util/function/Supplier ? > 5 ? ? ? W(Ljava/util/function/Supplier;)Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider; ? ()Ljava/util/function/Function; ? ? ? java/util/stream/Collectors ? toList ()Ljava/util/stream/Collector; ? ?
? ? collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; ? ? ? ? X(Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider$HostsResolver;)Ljava/util/List; ? lambda$new$2 h(Ljava/util/List;Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider$HostsResolver;)Ljava/util/List; ? ?
? ? buildDynamicHosts J(Ljava/util/List;)Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider; ? ? ? zen ? lambda$new$3(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; > single-node lambda$new$4 ?(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; >
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;
j lambda$new$5 v
~ java/lang/String Unknown discovery type [ ] getClass ()Ljava/lang/Class;
*com/groupbyinc/flux/common/logging/Loggers" getLogger u(Ljava/lang/Class;Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Lorg/apache/logging/log4j/Logger;$%
#& using discovery type [{}]( org/apache/logging/log4j/Logger* info '(Ljava/lang/String;Ljava/lang/Object;)V,-+. 'com/groupbyinc/flux/discovery/Discovery0 2
joinValidator {Ljava/util/function/BiConsumer; Ljava/util/function/BiConsumer; plugin -Lcom/groupbyinc/flux/plugins/DiscoveryPlugin; extendedHostsProviderNames $Ljava/util/List; Ljava/util/List; this /Lcom/groupbyinc/flux/discovery/DiscoveryModule; .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; allocationService BLcom/groupbyinc/flux/cluster/routing/allocation/AllocationService; joinValidators ?Ljava/util/Collection;>; Ljava/util/Collection;
hostProviders zLjava/util/Map;>; Ljava/util/Map; hostsProviderNames missingProviderNames #Ljava/util/Set; Ljava/util/Set; filteredHostsProviders JLjava/util/List;
hostsProvider 8Lcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider; discoveryTypes kLjava/util/Map;>;
discoveryType Ljava/lang/String; discoverySupplier HLjava/util/function/Supplier; Ljava/util/function/Supplier; getDiscovery getKeyg 5 h getValuej 5 k Cannot register discovery type [m ] twiceo entry Ljava/util/Map$Entry; 8com/groupbyinc/flux/discovery/single/SingleNodeDiscoverys ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/service/ClusterApplier;)V !u
tv .com/groupbyinc/flux/discovery/zen/ZenDiscoveryx java/util/Collectionsz unmodifiableCollection .(Ljava/util/Collection;)Ljava/util/Collection;|}
{~?(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 !?
y? ? ? ? unmodifiableList "(Ljava/util/List;)Ljava/util/List;??
{? provider
hostsResolver FLcom/groupbyinc/flux/discovery/zen/UnicastHostsProvider$HostsResolver; addresses ILjava/util/List; $Cannot register zen hosts provider [?