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

com.groupbyinc.flux.cluster.ClusterStateObserver.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????40com/groupbyinc/flux/cluster/ClusterStateObserverjava/lang/ObjectClusterStateObserver.java2com/groupbyinc/flux/cluster/ClusterStateObserver$1Jcom/groupbyinc/flux/cluster/ClusterStateObserver$ContextPreservingListenerContextPreservingListenerAcom/groupbyinc/flux/cluster/ClusterStateObserver$ObservingContextObservingContext9com/groupbyinc/flux/cluster/ClusterStateObserver$ListenerListener;clusterApplierService;Lcom/groupbyinc/flux/cluster/service/ClusterApplierService;
contextHolder:Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;timeOutValue+Lcom/groupbyinc/flux/common/unit/TimeValue;lastObservedState-Ljava/util/concurrent/atomic/AtomicReference;mLjava/util/concurrent/atomic/AtomicReference;clusterStateListener9Lcom/groupbyinc/flux/cluster/TimeoutClusterStateListener;observingContextrLjava/util/concurrent/atomic/AtomicReference;startTimeNSLjava/lang/Long;timedOutZ?(Lcom/groupbyinc/flux/cluster/service/ClusterService;Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)V)com/groupbyinc/flux/common/unit/TimeValue4?`(J)V28
59?(Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/common/unit/TimeValue;Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)V2;
<this2Lcom/groupbyinc/flux/cluster/ClusterStateObserver;clusterService4Lcom/groupbyinc/flux/cluster/service/ClusterService;%Lcom/groupbyinc/flux/common/Nullable;2com/groupbyinc/flux/cluster/service/ClusterServiceCstate,()Lcom/groupbyinc/flux/cluster/ClusterState;EF
DG?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/common/unit/TimeValue;Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)V2I
JtimeoutgetClusterApplierService=()Lcom/groupbyinc/flux/cluster/service/ClusterApplierService;MN
DO?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/service/ClusterApplierService;Lcom/groupbyinc/flux/common/unit/TimeValue;Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)V2Q
RinitialState*Lcom/groupbyinc/flux/cluster/ClusterState;()V2V
W"java/lang/invoke/LambdaMetafactoryYmetafactory?(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;[\
Z]^(Ljava/lang/Object;)Z`lambda$new$0-(Lcom/groupbyinc/flux/cluster/ClusterState;)Zbc
dectest ()Ljava/util/function/Predicate;hij	l5(Lcom/groupbyinc/flux/cluster/ClusterStateObserver;)V2n
o*+	q+java/util/concurrent/atomic/AtomicReferences(Ljava/lang/Object;)V2u
tv,(	x!"	z-(Lcom/groupbyinc/flux/cluster/ClusterState;)V2|
}'(	%&	?java/lang/System?nanoTime()J??
??java/lang/Long?valueOf(J)Ljava/lang/Long;??
??./	?(com/groupbyinc/flux/cluster/ClusterState?9com/groupbyinc/flux/cluster/service/ClusterApplierService?org/apache/logging/log4j/Logger?8com/groupbyinc/flux/common/util/concurrent/ThreadContext?	?#$	?setAndGetObservedStateget()Ljava/lang/Object;??
t?*com/groupbyinc/flux/ElasticsearchException?Icannot set current cluster state while waiting for a cluster state change?((Ljava/lang/String;[Ljava/lang/Object;)V2?
??
?Gset?u
t?clusterState
isTimedOut()Z01	?waitForNextChange>(Lcom/groupbyinc/flux/cluster/ClusterStateObserver$Listener;)V\(Lcom/groupbyinc/flux/cluster/ClusterStateObserver$Listener;Ljava/util/function/Predicate;)V??
?listener;Lcom/groupbyinc/flux/cluster/ClusterStateObserver$Listener;i(Lcom/groupbyinc/flux/cluster/ClusterStateObserver$Listener;Lcom/groupbyinc/flux/common/unit/TimeValue;)V?(Lcom/groupbyinc/flux/cluster/ClusterStateObserver$Listener;Ljava/util/function/Predicate;Lcom/groupbyinc/flux/common/unit/TimeValue;)V??
?statePredicatenewRestorableContext (Z)Ljava/util/function/Supplier;??
???(Lcom/groupbyinc/flux/cluster/ClusterStateObserver$Listener;Ljava/util/function/Supplier;Lcom/groupbyinc/flux/cluster/ClusterStateObserver$1;)V2?
	?*already waiting for a cluster state change?	longValue??
??
nsecToMSec(J)J??
5?millis??
5?Sobserver timed out. notifying listener. timeout setting [{}], time since start [{}]?trace9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V????	onTimeout.(Lcom/groupbyinc/flux/common/unit/TimeValue;)V???isOlderOrDifferentMaster?c
?java/util/function/Predicate?h`??2observer: sampled state accepted by predicate ({})?'(Ljava/lang/String;Ljava/lang/Object;)V????onNewClusterState?|?Uobserver: sampled state rejected by predicate ({}). adding listener to ClusterService?2?
?
compareAndSet'(Ljava/lang/Object;Ljava/lang/Object;)Z??
t?addTimeoutListenerg(Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/cluster/TimeoutClusterStateListener;)V??
??timeSinceStartMSJtimeoutTimeLeftMScontextCLcom/groupbyinc/flux/cluster/ClusterStateObserver$ObservingContext;newState
access$100o(Lcom/groupbyinc/flux/cluster/ClusterStateObserver;)Lcom/groupbyinc/flux/cluster/service/ClusterApplierService;x0	SignatureCodeLocalVariableTableLineNumberTable"RuntimeVisibleParameterAnnotations
StackMapTableLocalVariableTypeTable?(Lcom/groupbyinc/flux/cluster/ClusterStateObserver$Listener;Ljava/util/function/Predicate;)V?(Lcom/groupbyinc/flux/cluster/ClusterStateObserver$Listener;Ljava/util/function/Predicate;Lcom/groupbyinc/flux/common/unit/TimeValue;)VBootstrapMethods
SourceFileInnerClasses!
? !"#$@%&'(?)*+,(?-@./@0123^*+?5Y6?:,-?=?*>?@A#$
<=2;d*+?H+,-?K?4>?@AL&#$
E
F
B2Io*+,?P-?S?>>?TU@AL&#$
NOB2Q	`*?X*?k?m*?Y*?p?r*?tY?w?y*,?{*?tY?Y+?~?w??*-??*???
*??????*??*???>`>?`TU`!"`L&``#$2R,
46%S*T=UBVIWSYYZ_[?S??5??B?F~1*?y?????Y?????*?{??L*???Y+?~??+?1>? ?U_
`b c/d??/*???>?i??B
*+*?m???
>?
??
m	n??M*+*?m,??? >???%&
q
r	B??\*+,??? >????? 
uv????\?	Y+*??????L*?y?????Y?????-?r*??N-?c??*????e??7-??e??:??	??:*???-?5Y?:??*??*???Y*?{???~??+-????&:? *??????*-??-?и?:*??*?{??:*??????ݙ6,???+*?????*???Y?~??+???V*??????Y+,??:*?y????Y?????*?{???5Y?ɷ:*?r???f
GM??SD?/??/ ;??\>?\??\?\%&???/???U\? ~???*?.?3?7?G?S?]?r?w????????????????????????????? ?-?;?[?H
*?i?????M??2L???5???5??B
bc,?EU,??/*?{???(_afg	
:	

	





© 2015 - 2024 Weber Informatics LLC | Privacy Policy