com.groupbyinc.flux.index.reindex.LeaderBulkByScrollTaskState.class Maven / Gradle / Ivy
???? 4 ? =com/groupbyinc/flux/index/reindex/LeaderBulkByScrollTaskState java/lang/Object LeaderBulkByScrollTaskState.java ?com/groupbyinc/flux/index/reindex/LeaderBulkByScrollTaskState$1 Dcom/groupbyinc/flux/index/reindex/LeaderBulkByScrollTaskState$Result Result 9com/groupbyinc/flux/index/reindex/BulkByScrollTask$Status 2com/groupbyinc/flux/index/reindex/BulkByScrollTask
Status Dcom/groupbyinc/flux/index/reindex/BulkByScrollTask$StatusOrException StatusOrException task 4Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask; slices I results 8Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray; ?Lcom/groupbyinc/flux/common/util/concurrent/AtomicArray; runningSubtasks +Ljava/util/concurrent/atomic/AtomicInteger; $assertionsDisabled Z 8(Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;I)V ()V
! # % 6com/groupbyinc/flux/common/util/concurrent/AtomicArray ' (I)V )
( * , )java/util/concurrent/atomic/AtomicInteger .
/ * 1 this ?Lcom/groupbyinc/flux/index/reindex/LeaderBulkByScrollTaskState; getSlices ()I getStatus M(Ljava/util/List;)Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask$Status; java/util/List 9 size ; 6 : < length > 6
( ? "java/lang/IllegalArgumentException A BGiven number of statuses does not match amount of expected results C (Ljava/lang/String;)V E
B F addResultsToList (Ljava/util/List;)V H I
J java/util/Collections L unmodifiableList "(Ljava/util/List;)Ljava/util/List; N O
M P getReasonCancelled ()Ljava/lang/String; R S
T %(Ljava/util/List;Ljava/lang/String;)V V
W statuses XLjava/util/List; Ljava/util/List; =()Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask$Status; java/util/Arrays ] asList %([Ljava/lang/Object;)Ljava/util/List; _ `
^ a 7 8
c runningSliceSubTasks get f 6
/ g ()Ljava/util/List; _ i
( j iterator ()Ljava/util/Iterator; l m : n java/util/Iterator p hasNext ()Z r s q t next ()Ljava/lang/Object; v w q x response 8Lcom/groupbyinc/flux/index/reindex/BulkByScrollResponse; z { | sliceId ~ 6com/groupbyinc/flux/index/reindex/BulkByScrollResponse ? 7 \
? ? >(Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask$Status;)V ?
? set '(ILjava/lang/Object;)Ljava/lang/Object; ? ? : ? failure Ljava/lang/Exception; ? ? ? (Ljava/lang/Exception;)V ?
? t FLcom/groupbyinc/flux/index/reindex/LeaderBulkByScrollTaskState$Result;
sliceStatuses onSliceResponse g(Lcom/groupbyinc/flux/action/ActionListener;ILcom/groupbyinc/flux/index/reindex/BulkByScrollResponse;)V }(ILcom/groupbyinc/flux/index/reindex/BulkByScrollResponse;Lcom/groupbyinc/flux/index/reindex/LeaderBulkByScrollTaskState$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 Z(ILjava/lang/Exception;Lcom/groupbyinc/flux/index/reindex/LeaderBulkByScrollTaskState$1;)V ?
? e decrementAndGet ? 6
/ ? 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 ? ? : ? )(Ljava/lang/Iterable;Ljava/lang/String;)V ?
? ? )com/groupbyinc/flux/action/ActionListener ?
onResponse ? ? ? ? onFailure ? ? ? ? responses JLjava/util/List; exception java/lang/Class ? desiredAssertionStatus ? s
? ? Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable ?(Ljava/util/List;)Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask$Status; [(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? +? -*? /Y? 0? 2? ? ' 3 4 ' ' ? 1 2 3 4 5 &