com.groupbyinc.flux.discovery.single.SingleNodeDiscovery.class Maven / Gradle / Ivy
???? 4( 8com/groupbyinc/flux/discovery/single/SingleNodeDiscovery ?com/groupbyinc/flux/common/component/AbstractLifecycleComponent 'com/groupbyinc/flux/discovery/Discovery SingleNodeDiscovery.java :com/groupbyinc/flux/discovery/single/SingleNodeDiscovery$1 3com/groupbyinc/flux/discovery/Discovery$AckListener
AckListener 0com/groupbyinc/flux/cluster/ClusterState$Builder
(com/groupbyinc/flux/cluster/ClusterState Builder 7com/groupbyinc/flux/cluster/node/DiscoveryNodes$Builder /com/groupbyinc/flux/cluster/node/DiscoveryNodes 7com/groupbyinc/flux/cluster/block/ClusterBlocks$Builder /com/groupbyinc/flux/cluster/block/ClusterBlocks %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup transportService 0Lcom/groupbyinc/flux/transport/TransportService; clusterApplier 4Lcom/groupbyinc/flux/cluster/service/ClusterApplier; clusterState *Lcom/groupbyinc/flux/cluster/ClusterState; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/MasterService;Lcom/groupbyinc/flux/cluster/service/ClusterApplier;)V java/util/Objects ' requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; ) *
( + ,com/groupbyinc/flux/common/settings/Settings - 1(Lcom/groupbyinc/flux/common/settings/Settings;)V % /
0 .com/groupbyinc/flux/transport/TransportService 2 4 "java/lang/invoke/LambdaMetafactory 6 metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; 8 9
7 : ; ()Ljava/lang/Object; = lambda$new$0 ,()Lcom/groupbyinc/flux/cluster/ClusterState; ? @
A B @ get Y(Lcom/groupbyinc/flux/discovery/single/SingleNodeDiscovery;)Ljava/util/function/Supplier; E F G 1com/groupbyinc/flux/cluster/service/MasterService I setClusterStateSupplier (Ljava/util/function/Supplier;)V K L
J M ! " O this :Lcom/groupbyinc/flux/discovery/single/SingleNodeDiscovery; settings .Lcom/groupbyinc/flux/common/settings/Settings;
masterService 3Lcom/groupbyinc/flux/cluster/service/MasterService; publish i(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;Lcom/groupbyinc/flux/discovery/Discovery$AckListener;)V java/lang/InterruptedException Y /com/groupbyinc/flux/cluster/ClusterChangedEvent [ state ] @
\ ^ # $ ` #java/util/concurrent/CountDownLatch b (I)V % d
c e ?(Lcom/groupbyinc/flux/discovery/single/SingleNodeDiscovery;Ljava/util/concurrent/CountDownLatch;Lcom/groupbyinc/flux/discovery/Discovery$AckListener;Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V % g
h java/lang/StringBuilder j ()V % l
k m apply-locally-on-node[ o append -(Ljava/lang/String;)Ljava/lang/StringBuilder; q r
k s source ()Ljava/lang/String; u v
\ w ] y toString { v
k | lambda$publish$1 ~ @
? G 2com/groupbyinc/flux/cluster/service/ClusterApplier ? onNewClusterState h(Ljava/lang/String;Ljava/util/function/Supplier;Lcom/groupbyinc/flux/cluster/ClusterStateTaskListener;)V ? ? ? ? await ? l
c ? 4com/groupbyinc/flux/cluster/ClusterStateTaskListener ? java/lang/Thread ?
currentThread ()Ljava/lang/Thread; ? ?
? ? interrupt ? l
? ? e Ljava/lang/InterruptedException; event 1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent; ackListener 5Lcom/groupbyinc/flux/discovery/Discovery$AckListener; latch %Ljava/util/concurrent/CountDownLatch; listener 6Lcom/groupbyinc/flux/cluster/ClusterStateTaskListener; stats 0()Lcom/groupbyinc/flux/discovery/DiscoveryStats; ,com/groupbyinc/flux/discovery/DiscoveryStats ? :com/groupbyinc/flux/discovery/zen/PendingClusterStateStats ? ?(Lcom/groupbyinc/flux/discovery/zen/PendingClusterStateStats;)V % ?
? ? startInitialJoin lifecycle 0Lcom/groupbyinc/flux/common/component/Lifecycle; ? ? ? .com/groupbyinc/flux/common/component/Lifecycle ? started ()Z ? ?
? ? java/lang/IllegalStateException ? )can't start initial join when not started ? (Ljava/lang/String;)V % ?
? ? builder ^(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ? ?
? build ? @
? single-node-start-initial-join ? lambda$startInitialJoin$2 ? @
? ? G *(Ljava/lang/String;Ljava/lang/Exception;)V ? lambda$startInitialJoin$3 ? ?
? ? onFailure 8()Lcom/groupbyinc/flux/cluster/ClusterStateTaskListener; ? ? ? doStart getLocalNode 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ? ?
3 ? createInitialState \(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
? setInitialState -(Lcom/groupbyinc/flux/cluster/ClusterState;)V ? ? ? ? localNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; newClusterStateBuilder 4()Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ? ? ? ? ;()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes$Builder; ? ?
? add k(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes$Builder; ? ?
? .com/groupbyinc/flux/cluster/node/DiscoveryNode ? getId ? v
? ? localNodeId M(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes$Builder; ? ?
? masterNodeId ? ?
? 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; ? ?
? nodes e(Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ? ?
? ;()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; ?
*com/groupbyinc/flux/gateway/GatewayService STATE_NOT_RECOVERED_BLOCK 0Lcom/groupbyinc/flux/cluster/block/ClusterBlock; addGlobalBlock k(Lcom/groupbyinc/flux/cluster/block/ClusterBlock;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder;
blocks m(Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder;
2Lcom/groupbyinc/flux/cluster/ClusterState$Builder; doStop doClose java/io/IOException Ljava/lang/String; Ljava/lang/Exception;
access$000 t(Lcom/groupbyinc/flux/discovery/single/SingleNodeDiscovery;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; x0 Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions BootstrapMethods
SourceFile InnerClasses ! ! " B # $
% &