
com.groupbyinc.flux.discovery.zen.fd.NodesFaultDetection.class Maven / Gradle / Ivy
???? 3= 8com/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection 3com/groupbyinc/flux/discovery/zen/fd/FaultDetection NodesFaultDetection.java Ecom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$PingResponse PingResponse Dcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$PingRequest PingRequest Kcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$PingRequestHandler PingRequestHandler ?com/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$NodeFD NodeFD Acom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$Listener Listener :com/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$2 :com/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$1 /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names PING_ACTION_NAME Ljava/lang/String; internal:discovery/zen/fd/ping listeners +Ljava/util/concurrent/CopyOnWriteArrayList; pLjava/util/concurrent/CopyOnWriteArrayList; nodesFD $Ljava/util/concurrent/ConcurrentMap; ?Ljava/util/concurrent/ConcurrentMap; clusterStateVersion J localNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/ClusterName;)V , -
. )java/util/concurrent/CopyOnWriteArrayList 0 ()V , 2
1 3 " # 5 @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections 7 newConcurrentMap &()Ljava/util/concurrent/ConcurrentMap; 9 :
8 ; % & =???????? ( ) A logger -Lcom/groupbyinc/flux/common/logging/ESLogger; C D E F[node ] uses ping_interval [{}], ping_timeout [{}], ping_retries [{}] G java/lang/Object I pingInterval +Lcom/groupbyinc/flux/common/unit/TimeValue; K L M pingRetryTimeout O L P pingRetryCount I R S T java/lang/Integer V valueOf (I)Ljava/lang/Integer; X Y
W Z +com/groupbyinc/flux/common/logging/ESLogger \ debug ((Ljava/lang/String;[Ljava/lang/Object;)V ^ _ ] ` same b =(Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection;)V , d
e .com/groupbyinc/flux/transport/TransportService g registerRequestHandler o(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V i j
h k this :Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection; settings .Lcom/groupbyinc/flux/common/settings/Settings;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; transportService 0Lcom/groupbyinc/flux/transport/TransportService; clusterName )Lcom/groupbyinc/flux/cluster/ClusterName; setLocalNode 3(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)V * + y addListener F(Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$Listener;)V add (Ljava/lang/Object;)Z } ~
1 listener CLcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$Listener; removeListener remove ? ~
1 ? updateNodesAndPing -(Lcom/groupbyinc/flux/cluster/ClusterState;)V "java/util/concurrent/ConcurrentMap ? keySet ()Ljava/util/Set; ? ? ? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? .com/groupbyinc/flux/cluster/node/DiscoveryNode ? (com/groupbyinc/flux/cluster/ClusterState ? nodes 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; ? ?
? ? id ()Ljava/lang/String; ? ?
? ? /com/groupbyinc/flux/cluster/node/DiscoveryNodes ?
nodeExists (Ljava/lang/String;)Z ? ?
? ? &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? I()Lcom/groupbyinc/flux/common/google/common/collect/UnmodifiableIterator; ? ?
? ? equals ? ~
? ? containsKey ? ~ ? ? ?(Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$1;)V , ?
? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? q r ? )com/groupbyinc/flux/common/unit/TimeValue ? timeValueMillis .(J)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? schedule y(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture; ? ?
?
monitoredNode fd ALcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$NodeFD; node clusterState *Lcom/groupbyinc/flux/cluster/ClusterState; stop <()Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection; clear ? 2 ? ? close ? 2
? ? ?
? s t ?
removeHandler (Ljava/lang/String;)V ? ?
h ? handleTransportDisconnect java/lang/Exception ? connectOnNetworkDisconnect Z ? ? ?
connectToNode ? x
h ? <[node ] [{}] transport disconnected (with verified connect) ? trace ? _ ] ? '(Ljava/lang/Object;Ljava/lang/Object;)Z ? ? ? ? .transport disconnected (with verified connect) ? notifyNodeFailure E(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;)V ? ?
? $[node ] [{}] transport disconnected ? transport disconnected e Ljava/lang/Exception; nodeFD Gcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException generic !()Ljava/util/concurrent/Executor;
(Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;)V ,
java/util/concurrent/Executor execute (Ljava/lang/Runnable;)V N[node ] [{}] ignoring node failure (reason [{}]). Local node is shutting down =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ? ] ex ILcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException; reason notifyPingReceived I(Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$PingRequest;)V ?(Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection;Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$PingRequest;)V ,
pingRequest FLcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection$PingRequest;
access$100 g(Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection;)Ljava/util/concurrent/CopyOnWriteArrayList; x0
access$200 `(Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection;)Ljava/util/concurrent/ConcurrentMap;
access$300 l(Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;
access$400 =(Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection;)J
access$800 i(Lcom/groupbyinc/flux/discovery/zen/fd/NodesFaultDetection;)Lcom/groupbyinc/flux/common/logging/ESLogger;
access$900 access$1000 x1 x2 access$1300
3
ConstantValue Signature Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile InnerClasses ! 5 ! " # 6 $ % &