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

com.groupbyinc.flux.tasks.TaskManager.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4*%com/groupbyinc/flux/tasks/TaskManager6com/groupbyinc/flux/common/component/AbstractComponent/com/groupbyinc/flux/cluster/ClusterStateApplierTaskManager.java;com/groupbyinc/flux/tasks/TaskManager$CancellableTaskHolderCancellableTaskHolder'com/groupbyinc/flux/tasks/TaskManager$2'com/groupbyinc/flux/tasks/TaskManager$1
java/util/Map$Entry
java/util/MapEntry%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupWAIT_FOR_COMPLETION_POLL+Lcom/groupbyinc/flux/common/unit/TimeValue;tasks>Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong;`Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong;cancellableTasks}Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong;taskIdGenerator(Ljava/util/concurrent/atomic/AtomicLong;banedParentsLjava/util/Map;ELjava/util/Map;taskResultsService.Lcom/groupbyinc/flux/tasks/TaskResultsService;lastDiscoveryNodes1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;$assertionsDisabledZ1(Lcom/groupbyinc/flux/common/settings/Settings;)V+,
-@com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections/-newConcurrentMapLongWithAggressiveConcurrency@()Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong;12
03	5	7&java/util/concurrent/atomic/AtomicLong9()V+;
:< !	>&java/util/concurrent/ConcurrentHashMap@
A<"#	C/com/groupbyinc/flux/cluster/node/DiscoveryNodesEEMPTY_NODESG(	FH'(	Jthis'Lcom/groupbyinc/flux/tasks/TaskManager;settings.Lcom/groupbyinc/flux/common/settings/Settings;setTaskResultsService1(Lcom/groupbyinc/flux/tasks/TaskResultsService;)V)*	R%&	Tjava/lang/AssertionErrorV
W<registerr(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskAwareRequest;)Lcom/groupbyinc/flux/tasks/Task;incrementAndGet()J[\
:]*com/groupbyinc/flux/tasks/TaskAwareRequest_
getParentTask$()Lcom/groupbyinc/flux/tasks/TaskId;ab`c
createTaski(JLjava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskId;)Lcom/groupbyinc/flux/tasks/Task;ef`gcom/groupbyinc/flux/tasks/TaskigetParentTaskIdkb
jl com/groupbyinc/flux/tasks/TaskIdnequals(Ljava/lang/Object;)Zpq
orjava/lang/StringBuildert
u<
Request [ wappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;yz
u{-(Ljava/lang/Object;)Ljava/lang/StringBuilder;y}
u~!] didn't preserve it parentTaskId?toString()Ljava/lang/String;??
u?(Ljava/lang/Object;)V+?
W?logger!Lorg/apache/logging/log4j/Logger;??	?org/apache/logging/log4j/Logger?isTraceEnabled()Z????register {} [{}] [{}] [{}]?getId?\
j?java/lang/Long?valueOf(J)Ljava/lang/Long;??
??getDescription??
j?trace](Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V????)com/groupbyinc/flux/tasks/CancellableTask?registerCancellableTask#(Lcom/groupbyinc/flux/tasks/Task;)V??
?;+Lcom/groupbyinc/flux/action/ActionListener;	localNode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;y(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/ActionResponse;Lcom/groupbyinc/flux/action/ActionListener;)V@couldn't store response {}, the node didn't join the cluster yet8??:
onResponse<?=?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/action/ActionResponse;)Lcom/groupbyinc/flux/tasks/TaskResult;
?
j@lambda$storeResult$1?(Lcom/groupbyinc/flux/action/ActionResponse;)Ljava/lang/Object;BC
DEU(Lcom/groupbyinc/flux/action/ActionResponse;)Lorg/apache/logging/log4j/util/Supplier;?GH?(Lcom/groupbyinc/flux/tasks/TaskManager;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/ActionResponse;)V+J
Kresponse
TResponse;+Lcom/groupbyinc/flux/action/ActionResponse;getTasks()Ljava/util/Map;java/util/HashMapR(Ljava/util/Map;)V+T
SUvalues()Ljava/util/Collection;WX?Yjava/util/Collection[iterator()Ljava/util/Iterator;]^\_java/util/IteratorahasNextc?bdnextfbg8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?i
Sjjava/util/CollectionslunmodifiableMap (Ljava/util/Map;)Ljava/util/Map;no
mptaskHashMapELjava/util/HashMap;Ljava/util/HashMap;getCancellableTasks
S<PLjava/util/HashMap;#(J)Lcom/groupbyinc/flux/tasks/Task;getCancellableTask.(J)Lcom/groupbyinc/flux/tasks/CancellableTask;yz
{idJgetBanCount()Isize???setBan7(Lcom/groupbyinc/flux/tasks/TaskId;Ljava/lang/String;)V%setting ban for the parent task {} {}?9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V????	getNodeId??
o?
nodeExists??
F?jjava/lang/Object?entrySet()Ljava/util/Set;????
java/util/Set??_getValue??	hasParent%(Lcom/groupbyinc/flux/tasks/TaskId;)Z??
	?	taskEntrydLjava/util/Map$Entry;Ljava/util/Map$Entry;parentTaskId"Lcom/groupbyinc/flux/tasks/TaskId;	removeBan%(Lcom/groupbyinc/flux/tasks/TaskId;)V#removing ban for the parent task {}????applyClusterState4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V/com/groupbyinc/flux/cluster/ClusterChangedEvent?state,()Lcom/groupbyinc/flux/cluster/ClusterState;??
??(com/groupbyinc/flux/cluster/ClusterState?getNodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;??
??nodesRemoved??
??keySet???RRemoving ban for the parent [{}] on the node [{}], reason: the parent node is gone?debug?????;b?
?lcancelOnParentLeaving??
??Coordinating node [?] left the cluster?taskIdbanIterator8Ljava/util/Iterator;Ljava/util/Iterator;event1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;waitForTaskCompletion$(Lcom/groupbyinc/flux/tasks/Task;J)Vjava/lang/InterruptedException?java/lang/System?nanoTime?\
???x
?	?)com/groupbyinc/flux/common/unit/TimeValue?millis?\
??java/lang/Thread?sleep(J)V??
??*com/groupbyinc/flux/ElasticsearchException?*Interrupted waiting for completion of [{}]?=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V+?
??1com/groupbyinc/flux/ElasticsearchTimeoutException?(Timed out waiting for completion of [{}]?((Ljava/lang/String;[Ljava/lang/Object;)V+?
??e Ljava/lang/InterruptedException;untilInNanos5org/apache/logging/log4j/message/ParameterizedMessage?couldn't store response {}+?
couldn't store error {}$com/groupbyinc/flux/ExceptionsHelperdetailedMessage)(Ljava/lang/Throwable;)Ljava/lang/String;	


access$000J(Lcom/groupbyinc/flux/tasks/TaskManager;)Lorg/apache/logging/log4j/Logger;x0
access$100java/lang/ClassdesiredAssertionStatus?
dtimeValueMillis.(J)Lcom/groupbyinc/flux/common/unit/TimeValue;
?	SignatureCodeLocalVariableTableLineNumberTable
StackMapTableLocalVariableTypeTable?(Lcom/groupbyinc/flux/tasks/Task;Ljava/lang/Exception;Lcom/groupbyinc/flux/action/ActionListener;)V?(Lcom/groupbyinc/flux/tasks/Task;TResponse;Lcom/groupbyinc/flux/action/ActionListener;)VC()Ljava/util/Map;N()Ljava/util/Map;BootstrapMethods
SourceFileInnerClasses! !"#$%&'()*+,?1*+?.*?4?6*?4?8*?:Y?=??*?AY?B?D*?I?K?1LM1NO "E79
:<>)B0FPQ`?S?*?U??WY?X?*+?U?LM%& IJK!YZM?-*???^+,-?d?h:???S?4?m-?d?s?#?WY?uY?vx?|-???|?????*?????*???????+,???????*???+*?6?????j:?S???WY?X??>????LM???????????? .STUWUXaY{\?]?_?`?b!?j6%'??O?+??M?	Y,??N*?8+??-???	:?S???WY?X?+?m???T*?D???H*?D+?m????:?1-??W??Y?uY?v϶|?|???ҿ:*+??W??a??>\3???LM?????????!o?? .fgh!i4kJl\maohp?s?w!-?4?		?Oj?		???
???3*?8+????	:?*???+?????,-???43LM3??3??3??!?? ???)?1?!?1	???J*???+??????+???#*?8+?????	M,?,??,????*?6+?????j? *??JLMJ?? "???*?.?2?7?9?!?7	??? R*?K?:?-,??+,?
:?:*??,??"-??*?U?Y*-,?'?,?"?R-.$/0RLMR??R12R?4	I56>-."R?3 2?	?????"?$?5?=?>?Q?!?	K??$#?7;_*?K?:?*??9,?;-,?>?+,?A:?:*??,?I?"-??*?U?Y*-,?L?,?#,/?R,-.1/0_LM_??_MO_?4	V56K-."_MN_?3 6
?	???"?#?,?/?1?B?J?K?^?!?#	K??$$PQ?I?SY*?6?VL*?8?Z?`M,?e?#,?h?	N+-?????-???kW???+?q? .??ILM=rt"=rs ??.?A?D?!?Sb?(%uQ?E?SY?vL*?8?Z?`M,?e?#,?h?	N+-?????-???kW???+?q? *??ELM=rt"=rw ??*?=?@?!?Sb?(&?xr*?6???jN-?-?*?|? LM}~?? ????!?jyzq*?8???	N-?-???? LM}~?? 	!?	?4
*?D???
LM ??9~*???+,??*?DYN?*?K+?????*?D+,??W-ç
:-??*?8????N-?e?--?h?:???	:+???
,??W??б144844j??^??~LM~??~??"^?? .!"#$/&;)^*j+s,z.}/!?/?D???b/???U*???+??*?D+??W?LM?? 7
89??#*+?????K+????*?DYM?*+?????K*?D????N-?e?>-?h?o:*?K?????!*???+???????-?????,ç
:,??*?8????M,?e?l,?h?N-???	:??:??:???>*?K?????/?˙'?uY?vͶ|???|϶|????W????y||?|RG-??3D???Q???J???C???\??LM??"3D???\?? ^=>?@$B3C<DGEVF`GiFnHtJwK?M?N?O?P?Q?R?SVX!$?3?b?@?D???b?n????L?? e	??2*+?????????????:??Y???Y+S?????Y???Y+S???"?*$??LLML??L?~ "^
_`cf"d$e9h!	K?
BC6?Y*??MO ?
9?Y*???12 ?
/*???M 4/*???M 4;A????S??? 
45!@'F()*	

	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy