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

com.groupbyinc.flux.common.network.NetworkService.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4p1com/groupbyinc/flux/common/network/NetworkServicejava/lang/ObjectNetworkService.javaDcom/groupbyinc/flux/common/network/NetworkService$CustomNameResolverCustomNameResolver4com/groupbyinc/flux/common/settings/Setting$Property	+com/groupbyinc/flux/common/settings/SettingPropertyDEFAULT_NETWORK_HOSTLjava/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_SETTINGNETWORK_SERVERBLcom/groupbyinc/flux/common/settings/Setting;TCP_NO_DELAYTCP_KEEP_ALIVETCP_REUSE_ADDRESSTCP_SEND_BUFFER_SIZE^Lcom/groupbyinc/flux/common/settings/Setting;TCP_RECEIVE_BUFFER_SIZETCP_CONNECT_TIMEOUTZLcom/groupbyinc/flux/common/settings/Setting;customNameResolversLjava/util/List;XLjava/util/List;(Ljava/util/List;)V()V$&
'$customNameResolvers must be non null)java/util/Objects+requireNonNull8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;-.
,/java/util/List1!"	3this3Lcom/groupbyinc/flux/common/network/NetworkService;resolveBindHostAddresses,([Ljava/lang/String;)[Ljava/net/InetAddress;java/io/IOException9iterator()Ljava/util/Iterator;;<2=java/util/Iterator?hasNext()ZAB@Cnext()Ljava/lang/Object;EF@GresolveDefault()[Ljava/net/InetAddress;IJKjava/lang/StringMresolveInetAddressesO8
P[Ljava/lang/String;R[Ljava/net/InetAddress;Tjava/net/InetAddressVisMulticastAddressXB
WY"java/lang/IllegalArgumentException[java/lang/StringBuilder]
^'bind address: {`append-(Ljava/lang/String;)Ljava/lang/StringBuilder;bc
^d1com/groupbyinc/flux/common/network/NetworkAddressfformat*(Ljava/net/InetAddress;)Ljava/lang/String;hi
gj} is invalid: multicast addressltoString()Ljava/lang/String;no
^p(Ljava/lang/String;)V$r
\sisAnyLocalAddressuB
WvD} is wildcard, but multiple addresses specified: this makes no sensex	addressescustomNameResolverFLcom/groupbyinc/flux/common/network/NetworkService$CustomNameResolver;addressLjava/net/InetAddress;	bindHostsresolvePublishHostAddresses+([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;publishHostsempty host specification?
?'resolveInternal+(Ljava/lang/String;)[Ljava/net/InetAddress;??
?addAll(Ljava/util/Collection;)Z??
??hosthostsset#?
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
??
filterIPV40([Ljava/net/InetAddress;)[Ljava/net/InetAddress;??
??
filterIPV6??
??getSiteLocalAddresses?J
??getGlobalAddresses?J
??:ipv4?getAddressesForInterface??
??:ipv6?getAllByName??
Wnetwork.hostjava/util/Collections	emptyList()Ljava/util/List;
	java/util/function/Functionidentity()Ljava/util/function/Function;
	NodeScope6Lcom/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&boolSettingy(Ljava/lang/String;Z[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;()
*	,network.tcp.no_delay.	0network.tcp.keep_alive2	4network.tcp.reuse_address6defaultReuseAddress8B
?9	;network.tcp.send_buffer_size=-com/groupbyinc/flux/common/unit/ByteSizeValue?????????(J)V$C
@DbyteSizeSetting?(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;FG
H	Jnetwork.tcp.receive_buffer_sizeL	Nnetwork.tcp.connect_timeoutP)com/groupbyinc/flux/common/unit/TimeValueRjava/util/concurrent/TimeUnitVSECONDSLjava/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	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTable[(Ljava/util/List;)V
StackMapTable
Exceptions
SourceFileInnerClasses1effffffffff !"f#$%g`*?(*+*?0?2?4?h56!"i!#jQRSfk78g??+?+??=*?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>.zT&{|_^}~?56?RI|zTj>_	`&a.b3c6e9gCjIm_ogp?s?t?m?wl/		?	@"?	?SUU?8W?1?m:??g&+?+???*?4?>M,?D?",?H?N-?L:?2?????NYSL*+?QM,??),2?w? ??Y??????N--???W???UM,N-?66?g-2:?Z?'?\Y?^Y?_??e?k?em?e?q?t??w?'?\Y?^Y?_??e?k?ey?e?q?t?????,??%??Y,????N-???WY-???WSM,2?hR.
zT&{|h???X}~??"56?RK?zTih?????jZ?	?&?.?3?8?;?E?K?Z?h?w???????????????????l)	?	@$?	?1U?U?8W?+?'m:O8g?P+??
?\Y??t???Y??M+N-?66?-2:,*??????W????,,???W???U?h*-?P56P?R9??i9??j????-?;?A?l?S?S? m:??g??+????+??š+Ķ???+Ķ™?++??d??L*?4?4*?4?>M,?D?!,?H?N-+??:?????+M>,?ѫ?	?????ɋ\??ɋ^??(V8??(V:?5?G~%?kTK?̔bK?̖p,Ӷיx>?s,ٶיj>?e,۶י\>?W,ݶיN>?I,߶י@>?;,?י2>?-,?י$>?,?י>?,?י>?g15<CGNUY`?갸???????????????????+??™++??d??L+????+??™++??d??L+????+???+??h*]zTT{|?56??jj?$?0?7?T?]?b?e?h?t?x??????????????????????????????l-?@#??[N





1?m:&g\??
??
Y?S?????
Y?S??!#???
Y?S??%'?
Y?S?+?-/?
Y?S?+?13?
Y?S?+?57?:?
Y?S?+?<>?@YA?E?
Y?S?I?KM?@YA?E?
Y?S?I?OQ?SYT?[?^?
Y?S?b?d?jR*+,-2.8/K0_2m3s4?5?6?7?8?9?:?;?<?=?<no	

@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy