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

com.groupbyinc.flux.discovery.zen.ping.unicast.UnicastZenPing.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3?=com/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing?Lcom/groupbyinc/flux/common/component/AbstractLifecycleComponent;Lcom/groupbyinc/flux/discovery/zen/ping/ZenPing;?com/groupbyinc/flux/common/component/AbstractLifecycleComponent.com/groupbyinc/flux/discovery/zen/ping/ZenPingUnicastZenPing.javaQcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$UnicastPingResponse	UnicastPingResponsePcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$UnicastPingRequestUnicastPingRequestWcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$UnicastPingRequestHandlerUnicastPingRequestHandlerNcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$SendPingsHandlerSendPingsHandler?com/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$5?com/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$4?com/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$3?com/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$2?com/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$1;com/groupbyinc/flux/discovery/zen/ping/ZenPing$PingResponsePingResponse;com/groupbyinc/flux/discovery/zen/ping/ZenPing$PingListener"PingListener/com/groupbyinc/flux/threadpool/ThreadPool$Names%)com/groupbyinc/flux/threadpool/ThreadPool'Names=com/groupbyinc/flux/transport/TransportRequestOptions$Builder*5com/groupbyinc/flux/transport/TransportRequestOptions,BuilderACTION_NAMELjava/lang/String;internal:discovery/zen/unicast1 DISCOVERY_ZEN_PING_UNICAST_HOSTS discovery.zen.ping.unicast.hosts4LIMIT_FOREIGN_PORTS_COUNTILIMIT_LOCAL_PORTS_COUNT
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;transportService0Lcom/groupbyinc/flux/transport/TransportService;clusterName)Lcom/groupbyinc/flux/cluster/ClusterName;electMasterService;temporalResponsesLjava/util/Queue;PLjava/util/Queue;hostsProviders+Ljava/util/concurrent/CopyOnWriteArrayList;rLjava/util/concurrent/CopyOnWriteArrayList;unicastConnectExecutor&Ljava/util/concurrent/ExecutorService;closedZ(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/ClusterName;Lcom/groupbyinc/flux/Version;Lcom/groupbyinc/flux/discovery/zen/elect/ElectMasterService;Ljava/util/Set;)V*Lcom/groupbyinc/flux/common/inject/Inject;%Lcom/groupbyinc/flux/common/Nullable;java/lang/Exception_1(Lcom/groupbyinc/flux/common/settings/Settings;)V[a
b)java/util/concurrent/atomic/AtomicIntegerd()V[f
egHI	iJI	k@com/groupbyinc/flux/common/util/concurrent/ConcurrentCollectionsmnewConcurrentMap&()Ljava/util/concurrent/ConcurrentMap;op
nqNO	snewQueue()Ljava/util/Queue;uv
nwQR	y)java/util/concurrent/CopyOnWriteArrayList{
|gTU	~YZ	?;<	?=>	??@	?AB	?
java/util/Set?iterator()Ljava/util/Iterator;????,com/groupbyinc/flux/common/settings/Settings?.com/groupbyinc/flux/transport/TransportService?'com/groupbyinc/flux/cluster/ClusterName?com/groupbyinc/flux/Version?:com/groupbyinc/flux/discovery/zen/elect/ElectMasterService?java/util/Iterator?hasNext()Z????next()Ljava/lang/Object;????Ccom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastHostsProvider?addHostsProviderH(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastHostsProvider;)V??
?settings.Lcom/groupbyinc/flux/common/settings/Settings;??	?.discovery.zen.ping.unicast.concurrent_connects?java/lang/Integer?valueOf(I)Ljava/lang/Integer;??
??getAsInt:(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;??
??intValue()I??
??C7	?
getAsArray'(Ljava/lang/String;)[Ljava/lang/String;??
??[Ljava/lang/String;?java/lang/String?trim()Ljava/lang/String;??
??/com/groupbyinc/flux/common/util/CollectionUtils?arrayAsArrayList*([Ljava/lang/Object;)Ljava/util/ArrayList;??
??java/util/List?isEmpty????getLocalAddresses()Ljava/util/List;??
??addAll(Ljava/util/Collection;)Z????logger-Lcom/groupbyinc/flux/common/logging/ESLogger;??	?5using initial hosts {}, with concurrent_connects [{}]?java/lang/Object?+com/groupbyinc/flux/common/logging/ESLogger?debug((Ljava/lang/String;[Ljava/lang/Object;)V????java/util/ArrayList?
?g??addressesFromStringM(Ljava/lang/String;I)[Lcom/groupbyinc/flux/common/transport/TransportAddress;??
??8[Lcom/groupbyinc/flux/common/transport/TransportAddress;?.com/groupbyinc/flux/cluster/node/DiscoveryNode?java/lang/StringBuilder?
?gappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??incrementAndGet?
e(I)Ljava/lang/StringBuilder;?
?#toString?
?	minimumCompatibilityVersion()Lcom/groupbyinc/flux/Version;
?
i(Ljava/lang/String;Lcom/groupbyinc/flux/common/transport/TransportAddress;Lcom/groupbyinc/flux/Version;)V[
?add(Ljava/lang/Object;)Z?"java/lang/IllegalArgumentExceptionFailed to resolve address for []*(Ljava/lang/String;Ljava/lang/Throwable;)V[
size?? toArray(([Ljava/lang/Object;)[Ljava/lang/Object;"#?$EDE	'same)B(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;)V[+
,registerRequestHandlero(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V./
?0[unicast_connect]26com/groupbyinc/flux/common/util/concurrent/EsExecutors4daemonThreadFactoryf(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;)Ljava/util/concurrent/ThreadFactory;67
58unicast_connect:<java/util/concurrent/TimeUnit>SECONDSLjava/util/concurrent/TimeUnit;@A	?B
newScaling?(Ljava/lang/String;IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/ThreadFactory;)Lcom/groupbyinc/flux/common/util/concurrent/EsThreadPoolExecutor;DE
5FWX	HunicastHostsProviderELcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastHostsProvider;ilimitPortCountsaddress7Lcom/groupbyinc/flux/common/transport/TransportAddress;	addresseseLjava/lang/Exception;hostthis?Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;versionLcom/groupbyinc/flux/Version;unicastHostsProvidersVLjava/util/Set;Ljava/util/Set;hostArrhosts$Ljava/util/List;Ljava/util/List;BLjava/util/List;
threadFactory$Ljava/util/concurrent/ThreadFactory;doStartdoStopdoClosejava/io/IOExceptione
removeHandler(Ljava/lang/String;)Vgh
?i	terminateI(Ljava/util/concurrent/ExecutorService;JLjava/util/concurrent/TimeUnit;)Zkl
(m
java/util/Mapovalues()Ljava/util/Collection;qrps5com/groupbyinc/flux/common/apache/lucene/util/IOUtilsuclose(Ljava/lang/Iterable;)Vwx
vy*com/groupbyinc/flux/ElasticsearchException{%Error wile closing send ping handlers}=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V[
|?Ljava/io/IOException;
|providerremoveHostsProviderremove?
|?setPingContextProvider?(Lcom/groupbyinc/flux/discovery/zen/ping/PingContextProvider;)VFG	?clearTemporalResponsesjava/util/Queue?clear?f??pingAndWaitk(Lcom/groupbyinc/flux/common/unit/TimeValue;)[Lcom/groupbyinc/flux/discovery/zen/ping/ZenPing$PingResponse;java/lang/InterruptedException?+java/util/concurrent/atomic/AtomicReference?
?g#java/util/concurrent/CountDownLatch?(I)V[?
???(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;Ljava/util/concurrent/atomic/AtomicReference;Ljava/util/concurrent/CountDownLatch;)V[?
?pingk(Lcom/groupbyinc/flux/discovery/zen/ping/ZenPing$PingListener;Lcom/groupbyinc/flux/common/unit/TimeValue;)V??
?await?f
??get??
??>[Lcom/groupbyinc/flux/discovery/zen/ping/ZenPing$PingResponse;?)com/groupbyinc/flux/common/unit/TimeValue? Ljava/lang/InterruptedException;timeout+Lcom/groupbyinc/flux/common/unit/TimeValue;responsemLjava/util/concurrent/atomic/AtomicReference<[Lcom/groupbyinc/flux/discovery/zen/ping/ZenPing$PingResponse;>;-Ljava/util/concurrent/atomic/AtomicReference;latch%Ljava/util/concurrent/CountDownLatch;/java/util/concurrent/RejectedExecutionException?Gcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException?C(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;I)V[?
?id??
?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;??p?	sendPings?(Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$SendPingsHandler;)V??
?Ping execution rejected????millis()J??
??timeValueMillis.(J)Lcom/groupbyinc/flux/common/unit/TimeValue;??
??generic??(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$SendPingsHandler;Lcom/groupbyinc/flux/discovery/zen/ping/ZenPing$PingListener;)V[?
?scheduley(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture;??
(?wf
?Ping execution failed?1Ljava/util/concurrent/RejectedExecutionException;exILcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException;listener=Lcom/groupbyinc/flux/discovery/zen/ping/ZenPing$PingListener;sendPingsHandlerPLcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$SendPingsHandler;

g?7	
???	
?:com/groupbyinc/flux/discovery/zen/ping/PingContextProvider?nodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;????createPingResponsep(Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)Lcom/groupbyinc/flux/discovery/zen/ping/ZenPing$PingResponse;??
?pingResponse=Lcom/groupbyinc/flux/discovery/zen/ping/ZenPing$PingResponse;??	
?java/util/HashSet?
g??/com/groupbyinc/flux/cluster/node/DiscoveryNodes+()Lcom/groupbyinc/flux/cluster/ClusterName;?
 equals
?	node2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;
 

|?buildDynamicNodes??
?getMasterNodes7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;
3com/groupbyinc/flux/common/collect/ImmutableOpenMap@()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer;q
;CLcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectCursor;nodeFoundByAddresstempNode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;finalNodeToSend
nodeToSendwaitTimepingRequestRLcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$UnicastPingRequest;
discoNodes1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;nodesToPingSetELjava/util/HashSet;Ljava/util/HashSet;sortedNodesToPingnodesToPing[{}] sending to {}?builderA()Lcom/groupbyinc/flux/transport/TransportRequestOptions$Builder;??
-???withTimeoutB(J)Lcom/groupbyinc/flux/transport/TransportRequestOptions$Builder;??
+?build9()Lcom/groupbyinc/flux/transport/TransportRequestOptions;??
+??(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;ILcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/util/concurrent/CountDownLatch;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)V[?
?sendRequest?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportRequestOptions;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)V??
??handlePingRequest?(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$UnicastPingRequest;)Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$UnicastPingResponse;	lifecycle0Lcom/groupbyinc/flux/common/component/Lifecycle;??	?.com/groupbyinc/flux/common/component/Lifecycle?started??
??java/lang/IllegalStateException?'received ping request while not started?[h
????(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$UnicastPingRequest;)V[?
?iterableAsArrayList+(Ljava/lang/Iterable;)Ljava/util/ArrayList;??
??

g	
?
pingResponses??	
?requestOLjava/util/List;unicastPingResponseSLcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$UnicastPingResponse;	localNode?
?p
?nodeHasJoinedClusterOnce?????(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/cluster/ClusterName;Z)V[?
 ?
access$100n(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;)Lcom/groupbyinc/flux/common/logging/ESLogger;x0
access$200q(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;)Lcom/groupbyinc/flux/transport/TransportService;
access$300
access$400l(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;)Lcom/groupbyinc/flux/threadpool/ThreadPool;
access$500
access$600P(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;)Ljava/util/Map;
access$700
access$800
access$900access$1000E(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;ILcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$UnicastPingRequest;Ljava/util/concurrent/CountDownLatch;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)Vx1x2x3x4x5x6access$1100access$1200access$1300access$1400access$1500access$1600}(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;)Lcom/groupbyinc/flux/discovery/zen/ping/PingContextProvider;access$1700j(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;)Lcom/groupbyinc/flux/cluster/ClusterName;access$1800access$1900B(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;)Zaccess$2000access$2100access$2200access$2300R(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;)Ljava/util/Queue;access$2400?(Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing;Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$UnicastPingRequest;)Lcom/groupbyinc/flux/discovery/zen/ping/unicast/UnicastZenPing$UnicastPingResponse;??
?
ConstantValue	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTable
StackMapTabled(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/ClusterName;Lcom/groupbyinc/flux/Version;Lcom/groupbyinc/flux/discovery/zen/elect/ElectMasterService;Ljava/util/Set;)VRuntimeVisibleAnnotations"RuntimeVisibleParameterAnnotations
SourceFileInnerClasses!/0?230?567?897?:;<=>?@ABC7DEBFGHIJIK0?MNO?PQR?STU?VWXBYZ&[\?n?*+?c*?eY?h?j*?eY?h?l*?r?t*?x?z*?|Y?}?*??*,??*-??*??*???+??:???????:	*	?????**???
????????*??5??:6		??		2??S?	?????:		???6
	-?ڹ?W?6
*?????Y	SY*????S????Y??:	??:????????:
-

??::?66?E2:??Y??Y??M??*?l?????
???W?????*:?Y??Y????
?????
????a*?!???%?&?(-2
*?Y*?-?1+3?9:*;*????@?VW?AB?XZ?b[??=\^	?M7
?D^?`a? ?XY?=\]	?D_??)~hkp"s)u4y9>?C?I?O?T?s?y?|????????????????????????&?0?J???????????????????????]	?(????????"???"???/???+?(?????????????H?(??????????B`?&????]?^bf?+??TU??cf?+??TU??df??;*??2?j*?I	?C?nW*?t?t?z?L?|Y~+????*???!$f?%Q?;TU?"?	??!?$?%?5?:??df???B
*?+??W??
TU
?K?
?	????B
*?+??W??
TU
?K?
?	????>*+????TUFG?
???f?8
*?z????
TU?
?	?????0??Y??M??Y??N*?Y*,-??+??-??,?????:? +,??4.Q?0TU0??(?????(?????? ?$?,?.???,???????c	??Y**?j???N*?t-????-??W*,-?ɧ:*??????*??,???m??ٻY*,-+?ܶ?W?#:-??:-??|Y??????"),?ad?am`?H.Q?f??oQR?TU??????u???>??"?)?,?.?@?adfjmos??"?,#??c?H`????3?
Y??:-????+??*????:*?????Y?:*?z?:???,??? :*????
???W???*??:???????:??W?????? :??????":?&?W???*???*:*?(??:??W??Y?!??:	??:

???
????:?-?1:?	6
?
:6
*???5??-?8??
???:M?>?s??Y@??Y??M??*?l??B???:?????
?E?H?-?L?N?Q:*??S??YSYS?V:-?Z?[W:*?I?Y*-
+	?^?d?*-??+	?h???,?	,?Ѳk?nW?:
? -0???Xo??
?K?pr8sZ
?tu?vuB?sZ
0?wu$?u3TU3??3x?3??	*yz#{|7?}?Q?^?H?^.??	?*?pq7?}~?Q?_?H?_??/?	@AB#D.F7GXIgJrLuN?O?P?S?T?U?X?[?\?^_$b0c5d;f?gBjNkUlVs[thuv?w?y?z?|??????? ?-?0?2??}?B??
?/????%???#?6??
?????,?????#??S??^ef??K*?????Y??SYS?V*??2-??,?ъ?k??????Y*??????HKTUK?7K??KyzK??KuKwu???J?????*???????Y????*?z+????W*??+????i??*?Y*+????W*?z??M,**???????W?
Y??N-+???-,,?!? ?%????-??*?TU??zM<?^i ???M<???*
?
??#?E?M?a?iq?????Q? Y+??+??*??*?????Ű?TU{|?)???/*????U?S???/*?????U?S???/*????U?S???/*?????U?S???/*????U?S???/*?t???U?S???/*????U?S???/*????U?S???/*????U?S???t*,-?h??H?U?7???z???u?u?S???/*????U?S???/*????U?S???/*????U?S???/*????U?S???/*????U?S???/*?????U?S???/*?????U?S???/*????U?S???/*?????U?S???/*????U?S???/*????U?S???/*????U?S???/*?z???U?S???:*+????U?z?S???j


	 !	#$	&()	+-.	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy