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

com.groupbyinc.flux.client.transport.TransportClientNodesService.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4@com/groupbyinc/flux/client/transport/TransportClientNodesService6com/groupbyinc/flux/common/component/AbstractComponentjava/io/Closeable TransportClientNodesService.javaUcom/groupbyinc/flux/client/transport/TransportClientNodesService$NodeListenerCallbackNodeListenerCallbackRcom/groupbyinc/flux/client/transport/TransportClientNodesService$SniffNodesSamplerSniffNodesSamplerRcom/groupbyinc/flux/client/transport/TransportClientNodesService$SimpleNodeSamplerSimpleNodeSamplerUcom/groupbyinc/flux/client/transport/TransportClientNodesService$ScheduledNodeSamplerScheduledNodeSamplerLcom/groupbyinc/flux/client/transport/TransportClientNodesService$NodeSamplerNodeSamplerNcom/groupbyinc/flux/client/transport/TransportClientNodesService$RetryListener
RetryListenerHcom/groupbyinc/flux/client/transport/TransportClient$HostFailureListener4com/groupbyinc/flux/client/transport/TransportClientHostFailureListener7com/groupbyinc/flux/transport/ConnectionProfile$Builder/com/groupbyinc/flux/transport/ConnectionProfile!Builder/com/groupbyinc/flux/threadpool/ThreadPool$Names$)com/groupbyinc/flux/threadpool/ThreadPool&Names:com/groupbyinc/flux/transport/TransportRequestOptions$Type)5com/groupbyinc/flux/transport/TransportRequestOptions+TypenodesSamplerInterval+Lcom/groupbyinc/flux/common/unit/TimeValue;pingTimeoutJclusterName)Lcom/groupbyinc/flux/cluster/ClusterName;transportService0Lcom/groupbyinc/flux/transport/TransportService;
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;minCompatibilityVersionLcom/groupbyinc/flux/Version;listedNodesLjava/util/List;BLjava/util/List;mutexLjava/lang/Object;nodes
filteredNodestempNodeIdGenerator+Ljava/util/concurrent/atomic/AtomicInteger;nodesSamplerNLcom/groupbyinc/flux/client/transport/TransportClientNodesService$NodeSampler;nodesSamplerFuture&Ljava/util/concurrent/ScheduledFuture;randomNodeGeneratorignoreClusterNameZclosedhostFailureListenerJLcom/groupbyinc/flux/client/transport/TransportClient$HostFailureListener;LISTED_NODES_PROFILE1Lcom/groupbyinc/flux/transport/ConnectionProfile;?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/client/transport/TransportClient$HostFailureListener;)V1(Lcom/groupbyinc/flux/common/settings/Settings;)VOQ
Rjava/util/CollectionsT	emptyList()Ljava/util/List;VW
UX:;	Zjava/lang/Object\()VO^
]_=>	a?;	c@;	e)java/util/concurrent/atomic/AtomicIntegerg
h_AB	j%com/groupbyinc/flux/common/Randomnesslget()Ljava/util/Random;no
mpjava/util/RandomrnextInt()Itu
sv(I)VOx
hyGB	{'com/groupbyinc/flux/cluster/ClusterName}CLUSTER_NAME_SETTING-Lcom/groupbyinc/flux/common/settings/Setting;?	~?+com/groupbyinc/flux/common/settings/Setting?B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;n?
??23	?45	?67	?com/groupbyinc/flux/Version?CURRENT?9	??minimumCompatibilityVersion()Lcom/groupbyinc/flux/Version;??
??89	?'CLIENT_TRANSPORT_NODES_SAMPLER_INTERVAL??	?settings.Lcom/groupbyinc/flux/common/settings/Settings;??	?)com/groupbyinc/flux/common/unit/TimeValue?./	?CLIENT_TRANSPORT_PING_TIMEOUT??	?millis()J??
??01	?$CLIENT_TRANSPORT_IGNORE_CLUSTER_NAME??	?java/lang/Boolean?booleanValue()Z??
??HI	?logger8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;??	?6com/groupbyinc/flux/common/apache/logging/log4j/Logger?isDebugEnabled????node_sampler_interval[{}]?debug'(Ljava/lang/String;Ljava/lang/Object;)V????,com/groupbyinc/flux/common/settings/Settings?.com/groupbyinc/flux/transport/TransportService?CLIENT_TRANSPORT_SNIFF??	?E(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;)VO?
?CD	?
?KL	?generic?
?scheduley(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture;??
'?EF	?thisBLcom/groupbyinc/flux/client/transport/TransportClientNodesService;transportAddressesjava/util/ArrayList?
?_java/util/List?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext????next()Ljava/lang/Object;????.com/groupbyinc/flux/cluster/node/DiscoveryNode?
getAddress9()Lcom/groupbyinc/flux/common/transport/TransportAddress;??
??add(Ljava/lang/Object;)Z????unmodifiableList"(Ljava/util/List;)Ljava/util/List;??
U
listedNode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;
lstBuilderILjava/util/List;connectedNodesaddTransportAddresses|([Lcom/groupbyinc/flux/common/transport/TransportAddress;)Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;JI		java/lang/IllegalStateException0transport client is closed, can't add an address
(Ljava/lang/String;)VO

?y8[Lcom/groupbyinc/flux/common/transport/TransportAddress;5com/groupbyinc/flux/common/transport/TransportAddressequals?
2address [{}] already exists with [{}], ignoring...9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V??isEmpty?? (Ljava/util/Collection;)VO"
?#java/lang/StringBuilder%
&_#transport#-(append-(Ljava/lang/String;)Ljava/lang/StringBuilder;*+
&,incrementAndGet.u
h/(I)Ljava/lang/StringBuilder;*1
&2toString()Ljava/lang/String;45
&6emptyMap()Ljava/util/Map;89
U:emptySet()Ljava/util/Set;<=
U>?(Ljava/lang/String;Lcom/groupbyinc/flux/common/transport/TransportAddress;Ljava/util/Map;Ljava/util/Set;Lcom/groupbyinc/flux/Version;)VO@
?Aadding address [{}]CsampleE^
Fjava/lang/ThrowableH	otherNodefoundtransportAddress7Lcom/groupbyinc/flux/common/transport/TransportAddress;nodefilteredbuilderremoveTransportAddress{(Lcom/groupbyinc/flux/common/transport/TransportAddress;)Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;3transport client is closed, can't remove an addressS'removing address [{}] from listed nodesU)disconnecting from node with address [{}]WdisconnectFromNode3(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)VYZ
?[listNodesBuildernodesBuilderexecute?(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService$NodeListenerCallback;Lcom/groupbyinc/flux/action/ActionListener;)Vjava/lang/Exceptionatransport client is closedcensureNodesAreAvailable(Ljava/util/List;)Vef
g
getNodeNumberiu
j?(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService$NodeListenerCallback;Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/List;ILcom/groupbyinc/flux/client/transport/TransportClient$HostFailureListener;)VOl
mgetNode3(I)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;op
q
doWithNode^(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/action/ActionListener;)Vst	u)com/groupbyinc/flux/action/ActionListenerw	onFailure(Ljava/lang/Exception;)Vyzx{maybeNodeFailedH(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/Exception;)V}~
eLjava/lang/Exception;callbackcLcom/groupbyinc/flux/client/transport/TransportClientNodesService$NodeListenerCallback;WLcom/groupbyinc/flux/client/transport/TransportClientNodesService$NodeListenerCallback;listener7Lcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;indexI
retryListener\Lcom/groupbyinc/flux/client/transport/TransportClientNodesService$RetryListener;PLcom/groupbyinc/flux/client/transport/TransportClientNodesService$RetryListener;close6com/groupbyinc/flux/common/util/concurrent/FutureUtils?cancel (Ljava/util/concurrent/Future;)Z??
??set?x
h?java/util/Locale?ROOTLjava/util/Locale;??	??.None of the configured nodes are available: %s?java/lang/String?formatK(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;??
??=com/groupbyinc/flux/client/transport/NoNodeAvailableException?
?messageLjava/lang/String;doSample?^
?
access$000V(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;)Ljava/lang/Object;x0
access$100E(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;)Z
access$200t(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;)Lcom/groupbyinc/flux/transport/TransportService;
access$300|(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;
access$400
access$500?(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;)Lcom/groupbyinc/flux/client/transport/TransportClientNodesService$NodeSampler;
access$602?(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;Ljava/util/concurrent/ScheduledFuture;)Ljava/util/concurrent/ScheduledFuture;x1
access$700o(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;)Lcom/groupbyinc/flux/common/unit/TimeValue;
access$800o(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;)Lcom/groupbyinc/flux/threadpool/ThreadPool;
access$900access$1000T(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;)Ljava/util/List;access$11003()Lcom/groupbyinc/flux/transport/ConnectionProfile;MN	?access$1200E(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;)Jaccess$1300access$1400m(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;)Lcom/groupbyinc/flux/cluster/ClusterName;access$1500access$1600access$1700?(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;)Lcom/groupbyinc/flux/client/transport/TransportClient$HostFailureListener;access$1800access$1902d(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;Ljava/util/List;)Ljava/util/List;access$2002access$1900access$2100access$2200access$2300access$2400access$2500
 _BULK;D()Ljava/util/List;?(Lcom/groupbyinc/flux/client/transport/TransportClientNodesService$NodeListenerCallback;Lcom/groupbyinc/flux/action/ActionListener;)VE(Ljava/util/List;)V
SourceFileInnerClasses0./0123456789B:;?<=>B?;?<B@;?<ABCDBEFGBHIBJIKLMN(OP??*+?S*?Y?[*?]Y?`?b*?Y?d*?Y?f*?hY?i?k*?hY?q?w?z?|*??+???~??*,??*-??*??????*??*????????*??*??????????*??*??????????*?????*???*??????*?????????*?Y*?еҧ*?Y*?ӵ?*??*-*??׻Y*?ضܵޱ?4????4567KL?Z}WY[\%^0dA~OT?Y?c?t???????????????????????'!?W??8??Y??L*?[??M,???,????N+-????W???+??? %8??0;?0???%?0?3?????? ??W?/*?d????????@W?/*?f????????:W?/*?[???????????:*?bYM?*?
??Y????Y+??N+:?66?h2:6*?[??:		???5	????:

????6*??
??????-??W????-?!?*,ð??Y*?[?$:-??:???Y???:??Y?&Y?')?-*?k?0?3?7?;??*???B:*??D????W???*??[*?ҶG,ç
:,??*??1?.1151?\	`#J
?UKI<XLMN?GLM#	O;?xP;:??:??#	O?xP<?r????#?<???`?m?p???????????????????????????%?,?8??W?]?]???8??
?????_?]I?QR??*?bYM?*?
??YT????Y??N*?[??:???8????:??+??-??W?*??V?????*-??[??Y??:*?d??:???B????:??+????W?*??X??*???\???*??d*?ҶG,ç
:,??*???????>B&J?0J!?];|d^;????LM?!?]<|d^<?V????!?B?N?Z?h?k?s?|????????????????????H?]????-??
?????.????]I?_`??	n*?dN*?
??Yd??*-?h*?k6?Y+,-*?շn:?r:+?v?':,?|???:????<FIbKS__a_?RK"??n??n??n??i?;"L??4:??<2N?*n??n??i?<4:???>?????"?4?<?FI?K?S\_m?H???1	x??b?	x??bI?
???^?3?*?bYL?*?
?+ñ*?
*?޸?W*?d??M,???,????N*??-?\???*?[??M,???,????N*??-?\???*?Y?d+ç
:+???zwzz~z? ;Nc????:?@ACDE;FCGFHcIkJnKuL?M?!?]????	??KI?iu?h*?|?0<?
<*?|?????????PQRSU??ef??(+?!?!????]Y*?[S??M??Y,????? 	??(??(?;?(?<?Y	Z[']?'???^?6*?Ҷ??????
BC???/*?b?????H???/*?
?????H???/*???????H???/*???????H???/*???????H???/*?Ұ????H???;*+Z?ް????F?H???/*???????H???/*???????H???/*???????H???/*?[?????H????ǰ?H???/*???????H???/*???????H???/*???????H???/*???????H???/*???????H???/*?հ????H???/*???????H???;*+Z?d?????;?H???;*+Z?f?????;?H???/*?d?????H???/*???????H???/*???????H???/*???????H???/*???????H???/*???????H?^?m7? Y??K*?*Y??SY??SY??SY??SY??S??*??DZ?.P??qr/x6y?R
	
	
		 "#	%'(	*,-@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy