com.groupbyinc.flux.index.reindex.BulkByScrollTask.class Maven / Gradle / Ivy
???? 4 ? 2com/groupbyinc/flux/index/reindex/BulkByScrollTask )com/groupbyinc/flux/tasks/CancellableTask BulkByScrollTask.java Dcom/groupbyinc/flux/index/reindex/BulkByScrollTask$StatusOrException StatusOrException 9com/groupbyinc/flux/index/reindex/BulkByScrollTask$Status Status %com/groupbyinc/flux/tasks/Task$Status com/groupbyinc/flux/tasks/Task leaderState ?Lcom/groupbyinc/flux/index/reindex/LeaderBulkByScrollTaskState; workerState ?Lcom/groupbyinc/flux/index/reindex/WorkerBulkByScrollTaskState; k(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskId;Ljava/util/Map;)V
this 4Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask; id J type Ljava/lang/String; action description parentTaskId "Lcom/groupbyinc/flux/tasks/TaskId; headers 5Ljava/util/Map; Ljava/util/Map; getStatus =()Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask$Status; isLeader ()Z ' (
) + =com/groupbyinc/flux/index/reindex/LeaderBulkByScrollTaskState - % &
. / isWorker 1 (
2 4 =com/groupbyinc/flux/index/reindex/WorkerBulkByScrollTaskState 6
7 / emptyStatus 9 &
: taskInfoGivenSubtaskInfo H(Ljava/lang/String;Ljava/util/List;)Lcom/groupbyinc/flux/tasks/TaskInfo; java/lang/IllegalStateException > ;This task is not set to be a leader of other slice subtasks @ (Ljava/lang/String;)V B
? C getSlices ()I E F
. G java/util/Arrays I asList %([Ljava/lang/Object;)Ljava/util/List; K L
J M java/util/List O iterator ()Ljava/util/Iterator; Q R P S java/util/Iterator U hasNext W ( V X next ()Ljava/lang/Object; Z [ V \ "com/groupbyinc/flux/tasks/TaskInfo ^ )()Lcom/groupbyinc/flux/tasks/Task$Status; % `
_ a
getSliceId ()Ljava/lang/Integer; c d
e java/lang/Integer g intValue i F
h j >(Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask$Status;)V l
m set '(ILjava/lang/Object;)Ljava/lang/Object; o p P q M(Ljava/util/List;)Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask$Status; % s
. t getDescription ()Ljava/lang/String; v w
x taskInfo q(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/Task$Status;)Lcom/groupbyinc/flux/tasks/TaskInfo; z {
| status ;Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask$Status; t $Lcom/groupbyinc/flux/tasks/TaskInfo; localNodeId sliceInfo 6Ljava/util/List; Ljava/util/List;
sliceStatuses XLjava/util/List; java/util/Collections ? emptyList ()Ljava/util/List; ? ?
? ? getReasonCancelled ? w
? %(Ljava/util/List;Ljava/lang/String;)V ?
? setWorkerCount (I)V 6This task is already a leader for other slice subtasks ? This task is already a worker ? 8(Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;I)V ?
. ? slices I getLeaderState A()Lcom/groupbyinc/flux/index/reindex/LeaderBulkByScrollTaskState;