com.groupbyinc.flux.index.reindex.ParentBulkByScrollTask.class Maven / Gradle / Ivy
???? 4 8com/groupbyinc/flux/index/reindex/ParentBulkByScrollTask 2com/groupbyinc/flux/index/reindex/BulkByScrollTask ParentBulkByScrollTask.java :com/groupbyinc/flux/index/reindex/ParentBulkByScrollTask$1 ?com/groupbyinc/flux/index/reindex/ParentBulkByScrollTask$Result Result 9com/groupbyinc/flux/index/reindex/BulkByScrollTask$Status Status Dcom/groupbyinc/flux/index/reindex/BulkByScrollTask$StatusOrException StatusOrException %com/groupbyinc/flux/tasks/Task$Status com/groupbyinc/flux/tasks/Task results 8Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray; {Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray; counter +Ljava/util/concurrent/atomic/AtomicInteger; $assertionsDisabled Z ](JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskId;I)V \(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskId;)V
6com/groupbyinc/flux/common/util/concurrent/AtomicArray ! (I)V #
" $ & )java/util/concurrent/atomic/AtomicInteger (
) $ + this :Lcom/groupbyinc/flux/index/reindex/ParentBulkByScrollTask; id J type Ljava/lang/String; action description parentTaskId "Lcom/groupbyinc/flux/tasks/TaskId; slices I
rethrottle (F)V newRequestsPerSecond F getStatus =()Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask$Status; length ()I ? @
" A java/util/Arrays C asList %([Ljava/lang/Object;)Ljava/util/List; E F
D G addResultsToList (Ljava/util/List;)V I J
K java/util/Collections M unmodifiableList "(Ljava/util/List;)Ljava/util/List; O P
N Q getReasonCancelled ()Ljava/lang/String; S T
U %(Ljava/util/List;Ljava/lang/String;)V W
X statuses XLjava/util/List; Ljava/util/List; runningSliceSubTasks get ^ @
) _ getInfoGivenSliceInfo H(Ljava/lang/String;Ljava/util/List;)Lcom/groupbyinc/flux/tasks/TaskInfo; java/util/List c iterator ()Ljava/util/Iterator; e f d g java/util/Iterator i hasNext ()Z k l j m next ()Ljava/lang/Object; o p j q "com/groupbyinc/flux/tasks/TaskInfo s )()Lcom/groupbyinc/flux/tasks/Task$Status; = u
t v
getSliceId ()Ljava/lang/Integer; x y
z java/lang/Integer | intValue ~ @
} >(Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask$Status;)V ?
? set '(ILjava/lang/Object;)Ljava/lang/Object; ? ? d ? getDescription ? T
? taskInfo q(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/Task$Status;)Lcom/groupbyinc/flux/tasks/TaskInfo; ? ?
? status ;Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask$Status; t $Lcom/groupbyinc/flux/tasks/TaskInfo; localNodeId sliceInfo 6Ljava/util/List;
sliceStatuses ()Ljava/util/List; E ?
" ? response 8Lcom/groupbyinc/flux/index/reindex/BulkByScrollResponse; ? ? ? sliceId ? 8 ? 6com/groupbyinc/flux/index/reindex/BulkByScrollResponse ? = >
? ? failure Ljava/lang/Exception; ? ? ? (Ljava/lang/Exception;)V ?
? ALcom/groupbyinc/flux/index/reindex/ParentBulkByScrollTask$Result; onSliceResponse g(Lcom/groupbyinc/flux/action/ActionListener;ILcom/groupbyinc/flux/index/reindex/BulkByScrollResponse;)V x(ILcom/groupbyinc/flux/index/reindex/BulkByScrollResponse;Lcom/groupbyinc/flux/index/reindex/ParentBulkByScrollTask$1;)V ?
? setOnce (ILjava/lang/Object;)V ? ?
" ? (recordSliceCompletionAndRespondIfAllDone .(Lcom/groupbyinc/flux/action/ActionListener;)V ? ?
? listener eLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; onSliceFailure D(Lcom/groupbyinc/flux/action/ActionListener;ILjava/lang/Exception;)V U(ILjava/lang/Exception;Lcom/groupbyinc/flux/index/reindex/ParentBulkByScrollTask$1;)V ?
? e decrementAndGet ? @
) ? java/util/ArrayList ?
? $ java/lang/Exception ? ? java/lang/AssertionError ? ,exception shouldn't be null if value is null ? (Ljava/lang/Object;)V ?
? ?
addSuppressed (Ljava/lang/Throwable;)V ? ?
? ? 0exception should be null if response is not null ? add (Ljava/lang/Object;)Z ? ? d ? )(Ljava/lang/Iterable;Ljava/lang/String;)V ?
? ? )com/groupbyinc/flux/action/ActionListener ?
onResponse ? ? ? ? onFailure ? ? ? ? responses JLjava/util/List; exception
? ()V java/lang/Class ? desiredAssertionStatus ? l
? ? Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable n(Ljava/lang/String;Ljava/util/List;)Lcom/groupbyinc/flux/tasks/TaskInfo; [(Ljava/util/List;)V ?(Lcom/groupbyinc/flux/action/ActionListener;ILcom/groupbyinc/flux/index/reindex/BulkByScrollResponse;)V ~(Lcom/groupbyinc/flux/action/ActionListener;ILjava/lang/Exception;)V h(Lcom/groupbyinc/flux/action/ActionListener;)V
SourceFile InnerClasses ! ? ? ? '*-? *? "Y? %? '*? )Y? *? ,? ? H ' - . ' / 0 ' 1 2 ' 3 2 ' 4 2 ' 5 6 ' 7 8 ? / 0 1 &