com.groupbyinc.flux.common.network.NetworkService.class Maven / Gradle / Ivy
???? 4p 1com/groupbyinc/flux/common/network/NetworkService java/lang/Object NetworkService.java Dcom/groupbyinc/flux/common/network/NetworkService$CustomNameResolver CustomNameResolver 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting Property DEFAULT_NETWORK_HOST Ljava/lang/String; _local_ GLOBAL_NETWORK_HOST_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; SLcom/groupbyinc/flux/common/settings/Setting;>; GLOBAL_NETWORK_BINDHOST_SETTING "GLOBAL_NETWORK_PUBLISHHOST_SETTING NETWORK_SERVER BLcom/groupbyinc/flux/common/settings/Setting; TCP_NO_DELAY TCP_KEEP_ALIVE TCP_REUSE_ADDRESS TCP_SEND_BUFFER_SIZE ^Lcom/groupbyinc/flux/common/settings/Setting; TCP_RECEIVE_BUFFER_SIZE TCP_CONNECT_TIMEOUT ZLcom/groupbyinc/flux/common/settings/Setting; customNameResolvers Ljava/util/List; XLjava/util/List; (Ljava/util/List;)V ()V $ &
' $customNameResolvers must be non null ) java/util/Objects + requireNonNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; - .
, / java/util/List 1 ! " 3 this 3Lcom/groupbyinc/flux/common/network/NetworkService; resolveBindHostAddresses ,([Ljava/lang/String;)[Ljava/net/InetAddress; java/io/IOException 9 iterator ()Ljava/util/Iterator; ; < 2 = java/util/Iterator ? hasNext ()Z A B @ C next ()Ljava/lang/Object; E F @ G resolveDefault ()[Ljava/net/InetAddress; I J K java/lang/String M resolveInetAddresses O 8
P [Ljava/lang/String; R [Ljava/net/InetAddress; T java/net/InetAddress V isMulticastAddress X B
W Y "java/lang/IllegalArgumentException [ java/lang/StringBuilder ]
^ ' bind address: { ` append -(Ljava/lang/String;)Ljava/lang/StringBuilder; b c
^ d 1com/groupbyinc/flux/common/network/NetworkAddress f format *(Ljava/net/InetAddress;)Ljava/lang/String; h i
g j } is invalid: multicast address l toString ()Ljava/lang/String; n o
^ p (Ljava/lang/String;)V $ r
\ s isAnyLocalAddress u B
W v D} is wildcard, but multiple addresses specified: this makes no sense x addresses customNameResolver FLcom/groupbyinc/flux/common/network/NetworkService$CustomNameResolver; address Ljava/net/InetAddress; bindHosts resolvePublishHostAddresses +([Ljava/lang/String;)Ljava/net/InetAddress; java/util/HashSet ? /com/groupbyinc/flux/common/network/NetworkUtils ? getAllAddresses ? J
? ? java/util/Arrays ? asList %([Ljava/lang/Object;)Ljava/util/List; ? ?
? ? (Ljava/util/Collection;)V $ ?
? ? size ()I ? ?
? ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ?
? ? publish address: { ? java/util/ArrayList ?
? ?
sortAddresses ? %
? ? get (I)Ljava/lang/Object; ? ? 2 ? all +Ljava/util/HashSet; Ljava/util/HashSet; sorted (Ljava/util/List; publishHosts empty host specification ?
? ' resolveInternal +(Ljava/lang/String;)[Ljava/net/InetAddress; ? ?
? addAll (Ljava/util/Collection;)Z ? ?
? ? host hosts set # ?
startsWith (Ljava/lang/String;)Z ? ?
N ? endsWith ? ?
N ? _ ? length ? ?
N ? substring (II)Ljava/lang/String; ? ?
N ? resolveIfPossible ? ? ? hashCode ? ?
N ? local ? equals (Ljava/lang/Object;)Z ? ?
N ?
local:ipv4 ?
local:ipv6 ? site ? site:ipv4 ? site:ipv6 ? global ? global:ipv4 ? global:ipv6 ? getLoopbackAddresses ? J
? ?
filterIPV4 0([Ljava/net/InetAddress;)[Ljava/net/InetAddress; ? ?
? ?
filterIPV6 ? ?
? ? getSiteLocalAddresses ? J
? ? getGlobalAddresses ? J
? ? :ipv4 ? getAddressesForInterface ? ?
? ? :ipv6 ? getAllByName ? ?
W network.host java/util/Collections emptyList ()Ljava/util/List;
java/util/function/Function identity ()Ljava/util/function/Function;
NodeScope 6Lcom/groupbyinc/flux/common/settings/Setting$Property;
listSetting ?(Ljava/lang/String;Ljava/util/List;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;
network.bind_host ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Setting;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;
network.publish_host" $ network.server& boolSetting y(Ljava/lang/String;Z[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;()
* , network.tcp.no_delay. 0 network.tcp.keep_alive2 4 network.tcp.reuse_address6 defaultReuseAddress8 B
?9 ; network.tcp.send_buffer_size= -com/groupbyinc/flux/common/unit/ByteSizeValue????????? (J)V $C
@D byteSizeSetting ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;FG
H J network.tcp.receive_buffer_sizeL N network.tcp.connect_timeoutP )com/groupbyinc/flux/common/unit/TimeValueR java/util/concurrent/TimeUnitV SECONDS Ljava/util/concurrent/TimeUnit;XY WZ #(JLjava/util/concurrent/TimeUnit;)V $\
S] timeSetting ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;_`
a c
ConstantValue Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable [(Ljava/util/List;)V
StackMapTable
Exceptions
SourceFile InnerClasses 1 e f f f f f f f f f f ! " f # $ % g ` *? (*+*? 0? 2? 4? h 5 6 ! " i ! # j Q R Sf k 7 8 g ? ?+? +?? =*? 4? > M,? D ? ,? H ? N-? L :? ????? NYSL*+? QM,N-?66? m-2:? Z? '? \Y? ^Y? _a? e? k? em? e? q? t?? w? -,?? '? \Y? ^Y? _a? e? k? ey? e? q? t?????,? h > . z T &