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

com.groupbyinc.flux.discovery.local.LocalDiscovery.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3!2com/groupbyinc/flux/discovery/local/LocalDiscovery?Lcom/groupbyinc/flux/common/component/AbstractLifecycleComponent;Lcom/groupbyinc/flux/discovery/Discovery;?com/groupbyinc/flux/common/component/AbstractLifecycleComponent'com/groupbyinc/flux/discovery/DiscoveryLocalDiscovery.java?com/groupbyinc/flux/discovery/local/LocalDiscovery$ClusterGroup	ClusterGroup4com/groupbyinc/flux/discovery/local/LocalDiscovery$44com/groupbyinc/flux/discovery/local/LocalDiscovery$34com/groupbyinc/flux/discovery/local/LocalDiscovery$24com/groupbyinc/flux/discovery/local/LocalDiscovery$13com/groupbyinc/flux/discovery/Discovery$AckListenerAckListener0com/groupbyinc/flux/cluster/ClusterState$Builder(com/groupbyinc/flux/cluster/ClusterStateBuilder;com/groupbyinc/flux/cluster/ClusterState$ClusterStateStatusClusterStateStatus
NO_MEMBERS5[Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;clusterService,Lcom/groupbyinc/flux/cluster/ClusterService;routingService4Lcom/groupbyinc/flux/cluster/routing/RoutingService;clusterName)Lcom/groupbyinc/flux/cluster/ClusterName;discoverySettings1Lcom/groupbyinc/flux/discovery/DiscoverySettings;masterZinitialStateSent+Ljava/util/concurrent/atomic/AtomicBoolean;initialStateListeners+Ljava/util/concurrent/CopyOnWriteArrayList;jLjava/util/concurrent/CopyOnWriteArrayList;
clusterGroups$Ljava/util/concurrent/ConcurrentMap;?Ljava/util/concurrent/ConcurrentMap;lastProcessedClusterState*Lcom/groupbyinc/flux/cluster/ClusterState;$assertionsDisabled?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/ClusterName;Lcom/groupbyinc/flux/cluster/ClusterService;Lcom/groupbyinc/flux/discovery/DiscoverySettings;)V*Lcom/groupbyinc/flux/common/inject/Inject;1(Lcom/groupbyinc/flux/common/settings/Settings;)V69
:)*	<)java/util/concurrent/atomic/AtomicBoolean>()V6@
?A+,	C)java/util/concurrent/CopyOnWriteArrayListE
FA-.	H%&	J!"	L'(	Nthis4Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;settings.Lcom/groupbyinc/flux/common/settings/Settings;setNodeService1(Lcom/groupbyinc/flux/node/service/NodeService;)V5Lcom/groupbyinc/flux/common/inject/internal/Nullable;nodeService.Lcom/groupbyinc/flux/node/service/NodeService;setRoutingService7(Lcom/groupbyinc/flux/cluster/routing/RoutingService;)V#$	[doStartstartInitialJoin01	_"java/util/concurrent/ConcurrentMapaget&(Ljava/lang/Object;)Ljava/lang/Object;cdbem(Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;Lcom/groupbyinc/flux/discovery/local/LocalDiscovery$1;)V6g

hput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;jkbljava/lang/Objectnlogger-Lcom/groupbyinc/flux/common/logging/ESLogger;pq	rConnected to cluster [{}]t+com/groupbyinc/flux/common/logging/ESLoggervdebug((Ljava/lang/String;[Ljava/lang/Object;)Vxywzmembers()Ljava/util/Queue;|}

~java/util/Queue?add(Ljava/lang/Object;)Z????iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext()Z????next()Ljava/lang/Object;????	localNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
?.com/groupbyinc/flux/cluster/node/DiscoveryNode?
masterNode??
??equals??
o?#local-disco-initial_connect(master)?k(Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;)V6?
?*com/groupbyinc/flux/cluster/ClusterService?submitStateUpdateTaskI(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateUpdateTask;)V????java/lang/StringBuilder?
?Alocal-disco-receive(from node[?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??])?toString()Ljava/lang/String;??
??
?java/lang/Throwable?localDiscoveryclusterGroupALcom/groupbyinc/flux/discovery/local/LocalDiscovery$ClusterGroup;firstMasterdoStopkIllegal state, should not have an empty cluster group when stopping, I should be there at teh very least...?warn?yw?remove????isEmpty?????db?5com/groupbyinc/flux/common/google/common/collect/Sets?
newHashSet()Ljava/util/HashSet;??
??
java/util/Set?id??
????local-disco-update?z(Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;Ljava/util/Set;Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;)V6?
?	discovery
newMembers#Ljava/util/Set;Ljava/util/Set;doClose??addListener@(Lcom/groupbyinc/flux/discovery/InitialStateDiscoveryListener;)V
F?listener=Lcom/groupbyinc/flux/discovery/InitialStateDiscoveryListener;removeListener
F?nodeDescription'com/groupbyinc/flux/cluster/ClusterName?value??
??/?publishi(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;Lcom/groupbyinc/flux/discovery/Discovery$AckListener;)Vjava/lang/IllegalStateException?'Shouldn't publish state when not master?(Ljava/lang/String;)V6?
??7()[Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;|
java/util/HashSet(I)V6
/com/groupbyinc/flux/cluster/ClusterChangedEvent	 Ccom/groupbyinc/flux/discovery/AckClusterStatePublishResponseHandlerG(Ljava/util/Set;Lcom/groupbyinc/flux/discovery/Discovery$AckListener;)V6

?([Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;Lcom/groupbyinc/flux/discovery/BlockingClusterStatePublishResponseHandler;)V?
nodesToPublishToALjava/util/Set;clusterChangedEvent1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;ackListener5Lcom/groupbyinc/flux/discovery/Discovery$AckListener; 	size()I?toArray(([Ljava/lang/Object;)[Ljava/lang/Object; !?"GLjava/util/Queue;Ljava/util/Queue;Dcom/groupbyinc/flux/cluster/IncompatibleClusterStateVersionException&java/lang/InterruptedException(java/lang/Exception*state,()Lcom/groupbyinc/flux/cluster/ClusterState;,-

.Hcom/groupbyinc/flux/discovery/BlockingClusterStatePublishResponseHandler0[B234	4
previousState6-

7nodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;9:
;/com/groupbyinc/flux/cluster/node/DiscoveryNodes=
nodeExists(Ljava/lang/String;)Z?@
>AdiffN(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/Diff;CD
E6com/groupbyinc/flux/common/io/stream/BytesStreamOutputG
HA com/groupbyinc/flux/cluster/DiffJwriteTo6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)VLMKNbytes3()Lcom/groupbyinc/flux/common/bytes/BytesReference;PQ
HR/com/groupbyinc/flux/common/bytes/BytesReferenceTtoBytes()[BVWUX0com/groupbyinc/flux/common/io/stream/StreamInputZwrap6([B)Lcom/groupbyinc/flux/common/io/stream/StreamInput;\]
[^readDiffFromV(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/Diff;`a
bapplyddKe?5*	???
>?java/lang/AssertionError?)received a cluster state without a master?(Ljava/lang/Object;)V6?
??blocks3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;??
?/com/groupbyinc/flux/discovery/DiscoverySettings?getNoMasterBlock2()Lcom/groupbyinc/flux/cluster/block/ClusterBlock;??
??/com/groupbyinc/flux/cluster/block/ClusterBlocks?hasGlobalBlock3(Lcom/groupbyinc/flux/cluster/block/ClusterBlock;)Z??
??,received a cluster state with a master block? local-disco-receive(from master)??(Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/discovery/BlockingClusterStatePublishResponseHandler;Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;)V6?

?
onResponse3(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)V??
1?getPublishTimeout-()Lcom/groupbyinc/flux/common/unit/TimeValue;??
??)com/groupbyinc/flux/common/unit/TimeValue?millis?j
??
awaitAllNodes.(Lcom/groupbyinc/flux/common/unit/TimeValue;)Z??
1?pendingNodes3()[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
1?atimed out waiting for all nodes to process published state [{}] (timeout [{}], pending nodes: {})?java/lang/Thread?
currentThread()Ljava/lang/Thread;??
??	interrupt?@
??!Cluster state failed to serialize?*(Ljava/lang/String;Ljava/lang/Throwable;)V6?
??"Lcom/groupbyinc/flux/cluster/Diff;os8Lcom/groupbyinc/flux/common/io/stream/BytesStreamOutput;exFLcom/groupbyinc/flux/cluster/IncompatibleClusterStateVersionException;newNodeSpecificClusterStatenodeSpecificClusterState1[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;awaitede Ljava/lang/InterruptedException;clusterStateBytesclusterStateDiffBytesclusterStatepublishTimeout+Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/Exception;publishResponseHandlerJLcom/groupbyinc/flux/discovery/BlockingClusterStatePublishResponseHandler;sendInitialStateEventIfNeeded
compareAndSet(ZZ)Z??
??
F?;com/groupbyinc/flux/discovery/InitialStateDiscoveryListener?initialStateProcessed?@??
access$100_(Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;)Lcom/groupbyinc/flux/cluster/ClusterName;x0
access$200&()Ljava/util/concurrent/ConcurrentMap;
access$300g(Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;)Lcom/groupbyinc/flux/discovery/DiscoverySettings;
access$400c(Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;)Lcom/groupbyinc/flux/common/logging/ESLogger;
access$5007(Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;)V?@

access$600
access$700j(Lcom/groupbyinc/flux/discovery/local/LocalDiscovery;)Lcom/groupbyinc/flux/cluster/routing/RoutingService;
access$800
access$900access$1000access$1100java/lang/Class
desiredAssertionStatus?
@com/groupbyinc/flux/common/util/concurrent/ConcurrentCollectionsnewConcurrentMap?
	SignatureCodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotations"RuntimeVisibleParameterAnnotations
StackMapTableLocalVariableTypeTable
SourceFileInnerClasses! !"#$%&'(B)*+,-./012B345*67?1*+?;*?=*??Y?B?D*?FY?G?I*,?K*-?M*?O?41PQ1RS1%&1!"1'("WJ
LN X%Y*Z0[8TU5?PQWX`VYZ>*+?\?PQ#$
de]@+?PQj^@???`YL²`*?K?f?
M,??
Y*?iM?`*?K,?mW*?su?oY*?KS?{,?*??WN,???:???#???:?????	N????-?+-*???#*?=-:*?M??Y*?????8-?4-:-?M??Y?????*??????????Y*????+ç
:+????????>v?Q?)Q?.)Q???U??Q?PQZnopq$r2tHvSxUyvz?{?|?~??????????????????#?2o
?-?&?+?4D???@-??`YL²`*?K?f?
M,?*?s??o??+ñ,?*??W,?????`*?K??W+ñN,???:???#???:?????	N????-?c*?=?-?=??:,???:???"???:???ܹ?W???-:?M߻Y*???+ç
:+???+?,R?S?????Hv?Q??Q?O???)Q???U??Q?PQ?O??j????)?,?7?C?P?S?U?v?????????????????????????????0?,o
&??&?????(?D???@+?PQ??4
*?M???
PQ??B
*?I+??W?
PQ
??
	??B
*?I+??W?
PQ
??
	??N$??Y??*?K???????*???ܶ????$PQ??;	n*?=?
??Y???*?N-??U?Y-??:-:?66?(2:?=??????W????*-+?
Y,???>??Q&G?nPQnnX| &G2& ?!G"J$W ]&m(-?
?????|?0?`*?K?f?
L+???+?M,,???#?? 0PQ ??|%|$+,-/0?
?5	::,?/:+:?66		?	2:

?=??g:*Y:?
?5??,?8?<
???ܶB???,,?8?F:
?HY?I:
?O?S?Y:
?5?_?c
?5?f?:*?sh?oY?l?rSY??wSY
???zS?}?:
*?s
?o????
??:
????:
?5ç:??:????W?




© 2015 - 2025 Weber Informatics LLC | Privacy Policy