com.groupbyinc.flux.tasks.TaskManager.class Maven / Gradle / Ivy
???? 4* %com/groupbyinc/flux/tasks/TaskManager 6com/groupbyinc/flux/common/component/AbstractComponent /com/groupbyinc/flux/cluster/ClusterStateApplier TaskManager.java ;com/groupbyinc/flux/tasks/TaskManager$CancellableTaskHolder CancellableTaskHolder 'com/groupbyinc/flux/tasks/TaskManager$2 'com/groupbyinc/flux/tasks/TaskManager$1
java/util/Map$Entry
java/util/Map Entry %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup WAIT_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; banedParents Ljava/util/Map; ELjava/util/Map; taskResultsService .Lcom/groupbyinc/flux/tasks/TaskResultsService; lastDiscoveryNodes 1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; $assertionsDisabled Z 1(Lcom/groupbyinc/flux/common/settings/Settings;)V + ,
- @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections / -newConcurrentMapLongWithAggressiveConcurrency @()Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong; 1 2
0 3 5 7 &java/util/concurrent/atomic/AtomicLong 9 ()V + ;
: < ! > &java/util/concurrent/ConcurrentHashMap @
A < " # C /com/groupbyinc/flux/cluster/node/DiscoveryNodes E EMPTY_NODES G ( F H ' ( J this 'Lcom/groupbyinc/flux/tasks/TaskManager; settings .Lcom/groupbyinc/flux/common/settings/Settings; setTaskResultsService 1(Lcom/groupbyinc/flux/tasks/TaskResultsService;)V ) * R % & T java/lang/AssertionError V
W < register r(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; a b ` c
createTask i(JLjava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskId;)Lcom/groupbyinc/flux/tasks/Task; e f ` g com/groupbyinc/flux/tasks/Task i getParentTaskId k b
j l com/groupbyinc/flux/tasks/TaskId n equals (Ljava/lang/Object;)Z p q
o r java/lang/StringBuilder t
u <
Request [ w append -(Ljava/lang/String;)Ljava/lang/StringBuilder; y z
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 ? ?
?