com.groupbyinc.flux.tasks.TaskManager.class Maven / Gradle / Ivy
???? 4p %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; taskHeaders Ljava/util/List; $Ljava/util/List;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; 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;
maxHeaderSize /Lcom/groupbyinc/flux/common/unit/ByteSizeValue; $assertionsDisabled Z k(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/util/Set;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V 2 4
5 @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections 7 -newConcurrentMapLongWithAggressiveConcurrency @()Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong; 9 :
8 ; ! = # ! ? &java/util/concurrent/atomic/AtomicLong A ()V 2 C
B D % & F &java/util/concurrent/ConcurrentHashMap H
I D ' ( K /com/groupbyinc/flux/cluster/node/DiscoveryNodes M EMPTY_NODES O - N P , - R T java/util/ArrayList V (Ljava/util/Collection;)V 2 X
W Y [ .com/groupbyinc/flux/http/HttpTransportSettings ] SETTING_HTTP_MAX_HEADER_SIZE -Lcom/groupbyinc/flux/common/settings/Setting; _ ` ^ a +com/groupbyinc/flux/common/settings/Setting c get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; e f
d g -com/groupbyinc/flux/common/unit/ByteSizeValue i . / k this 'Lcom/groupbyinc/flux/tasks/TaskManager; settings .Lcom/groupbyinc/flux/common/settings/Settings; #Ljava/util/Set; Ljava/util/Set; setTaskResultsService 1(Lcom/groupbyinc/flux/tasks/TaskResultsService;)V 0 1 u * + w java/lang/AssertionError y
z D register r(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskAwareRequest;)Lcom/groupbyinc/flux/tasks/Task; java/util/HashMap ~
D getBytes ()J ? ?
j ? )com/groupbyinc/flux/threadpool/ThreadPool ? getThreadContext <()Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext; ? ?
? ? java/util/List ? iterator ()Ljava/util/Iterator; ? ? ? ? java/lang/String ? *com/groupbyinc/flux/tasks/TaskAwareRequest ? 8com/groupbyinc/flux/common/util/concurrent/ThreadContext ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? getHeader &(Ljava/lang/String;)Ljava/lang/String; ? ?
? ? length ()I ? ?
? ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder ?
? D 2Request exceeded the maximum size of task headers ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/String;)V 2 ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? incrementAndGet ? ?
B ?
getParentTask $()Lcom/groupbyinc/flux/tasks/TaskId; ? ? ? ?
createTask x(JLjava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskId;Ljava/util/Map;)Lcom/groupbyinc/flux/tasks/Task; ? ? ? ? com/groupbyinc/flux/tasks/Task ? getParentTaskId ? ?
? ? com/groupbyinc/flux/tasks/TaskId ? equals (Ljava/lang/Object;)Z ? ?
? ?
Request [ ? !] didn't preserve it parentTaskId ? (Ljava/lang/Object;)V 2 ?
z ? logger !Lorg/apache/logging/log4j/Logger; ? ? ? org/apache/logging/log4j/Logger ? isTraceEnabled ? ? ? ? register {} [{}] [{}] [{}] ? getId ? ?
? ? java/lang/Long ? valueOf (J)Ljava/lang/Long; ? ?
? ? getDescription ? ?
? ? 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 ? ?
?