com.groupbyinc.flux.index.IndexWarmer.class Maven / Gradle / Ivy
???? 4 ? %com/groupbyinc/flux/index/IndexWarmer 6com/groupbyinc/flux/common/component/AbstractComponent IndexWarmer.java 5com/groupbyinc/flux/index/IndexWarmer$FieldDataWarmer FieldDataWarmer .com/groupbyinc/flux/index/IndexWarmer$Listener Listener 7com/groupbyinc/flux/index/IndexWarmer$TerminationHandle TerminationHandle 0com/groupbyinc/flux/index/engine/Engine$Searcher 'com/groupbyinc/flux/index/engine/Engine Searcher /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names listeners Ljava/util/List; BLjava/util/List; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataService;[Lcom/groupbyinc/flux/index/IndexWarmer$Listener;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V
java/util/ArrayList ! ()V #
" $ warmer & executor :(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService; ( )
* ](Ljava/util/concurrent/Executor;Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataService;)V ,
- add (Ljava/lang/Object;)Z / 0
" 1 java/util/Collections 3 addAll ,(Ljava/util/Collection;[Ljava/lang/Object;)Z 5 6
4 7 unmodifiableList "(Ljava/util/List;)Ljava/util/List; 9 :
4 ; = this 'Lcom/groupbyinc/flux/index/IndexWarmer; settings .Lcom/groupbyinc/flux/common/settings/Settings;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; indexFieldDataService ;Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataService; 1[Lcom/groupbyinc/flux/index/IndexWarmer$Listener; list GLjava/util/ArrayList; Ljava/util/ArrayList; Ljava/util/concurrent/Executor; warm ?(Lcom/groupbyinc/flux/index/engine/Engine$Searcher;Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/index/IndexSettings;)V java/lang/InterruptedException N *com/groupbyinc/flux/index/shard/IndexShard P state 3()Lcom/groupbyinc/flux/index/shard/IndexShardState; R S
Q T /com/groupbyinc/flux/index/shard/IndexShardState V CLOSED 1Lcom/groupbyinc/flux/index/shard/IndexShardState; X Y W Z 'com/groupbyinc/flux/index/IndexSettings \ isWarmerEnabled ()Z ^ _
] ` logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; b c d 6com/groupbyinc/flux/common/apache/logging/log4j/Logger f isTraceEnabled h _ g i {} top warming [{}] k shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; m n
Q o reader >()Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader; q r
s trace 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V u v g w
warmerService <()Lcom/groupbyinc/flux/index/warmer/ShardIndexWarmerService; y z
Q { 8com/groupbyinc/flux/index/warmer/ShardIndexWarmerService } onPreWarm #
~ ? java/lang/System ? nanoTime ()J ? ?
? ? java/util/List ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? _ ? ? next ()Ljava/lang/Object; ? ? ? ?
warmReader ?(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/index/engine/Engine$Searcher;)Lcom/groupbyinc/flux/index/IndexWarmer$TerminationHandle; ? ?
? ? 1 awaitTermination ? #
? java/lang/Thread ?
currentThread ()Ljava/lang/Thread; ? ?
? ? interrupt ? #
? ? top warming has been interrupted ? warn *(Ljava/lang/String;Ljava/lang/Throwable;)V ? ? g ?
onPostWarm (J)V ? ?
~ ? :()Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; b ?
~ ? top warming took [{}] ? )com/groupbyinc/flux/common/unit/TimeValue ? java/util/concurrent/TimeUnit ? NANOSECONDS Ljava/util/concurrent/TimeUnit; ? ? ? ? #(JLjava/util/concurrent/TimeUnit;)V ?
? ? '(Ljava/lang/String;Ljava/lang/Object;)V u ? g ? listener 0Lcom/groupbyinc/flux/index/IndexWarmer$Listener; e Ljava/lang/InterruptedException; terminationHandle 9Lcom/groupbyinc/flux/index/IndexWarmer$TerminationHandle; searcher 2Lcom/groupbyinc/flux/index/engine/Engine$Searcher; shard ,Lcom/groupbyinc/flux/index/shard/IndexShard; )Lcom/groupbyinc/flux/index/IndexSettings; time J terminationHandles KLjava/util/List; took Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable
SourceFile InnerClasses 1 ? ? ? ? 8*+? ? "Y? %:,'? +:? Y-? .? 2W? 8W*?