com.groupbyinc.flux.indices.IndexingMemoryController.class Maven / Gradle / Ivy
???? 4? 4com/groupbyinc/flux/indices/IndexingMemoryController 6com/groupbyinc/flux/common/component/AbstractComponent 9com/groupbyinc/flux/index/shard/IndexingOperationListener java/io/Closeable IndexingMemoryController.java Ocom/groupbyinc/flux/indices/IndexingMemoryController$ShardsIndicesStatusChecker
ShardsIndicesStatusChecker Fcom/groupbyinc/flux/indices/IndexingMemoryController$ShardAndBytesUsed
ShardAndBytesUsed 6com/groupbyinc/flux/indices/IndexingMemoryController$1 4com/groupbyinc/flux/threadpool/Scheduler$Cancellable (com/groupbyinc/flux/threadpool/Scheduler Cancellable -com/groupbyinc/flux/index/engine/Engine$Index 'com/groupbyinc/flux/index/engine/Engine Index 3com/groupbyinc/flux/index/engine/Engine$IndexResult IndexResult .com/groupbyinc/flux/index/engine/Engine$Delete Delete 4com/groupbyinc/flux/index/engine/Engine$DeleteResult " DeleteResult 1com/groupbyinc/flux/index/engine/Engine$Operation % Operation .com/groupbyinc/flux/index/engine/Engine$Result ( Result /com/groupbyinc/flux/threadpool/ThreadPool$Names + )com/groupbyinc/flux/threadpool/ThreadPool - Names 4com/groupbyinc/flux/common/settings/Setting$Property 0 +com/groupbyinc/flux/common/settings/Setting 2 Property 3com/groupbyinc/flux/index/engine/Engine$Result$Type 5 Type %java/lang/invoke/MethodHandles$Lookup 8 java/lang/invoke/MethodHandles : Lookup INDEX_BUFFER_SIZE_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ^Lcom/groupbyinc/flux/common/settings/Setting; MIN_INDEX_BUFFER_SIZE_SETTING MAX_INDEX_BUFFER_SIZE_SETTING SHARD_INACTIVE_TIME_SETTING ZLcom/groupbyinc/flux/common/settings/Setting; "SHARD_MEMORY_INTERVAL_TIME_SETTING
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; indexShards Ljava/lang/Iterable; BLjava/lang/Iterable; indexingBuffer /Lcom/groupbyinc/flux/common/unit/ByteSizeValue; inactiveTime +Lcom/groupbyinc/flux/common/unit/TimeValue; interval throttled Ljava/util/Set; =Ljava/util/Set; scheduler 6Lcom/groupbyinc/flux/threadpool/Scheduler$Cancellable; CAN_WRITE_INDEX_BUFFER_STATES Ljava/util/EnumSet; FLjava/util/EnumSet;
statusChecker QLcom/groupbyinc/flux/indices/IndexingMemoryController$ShardsIndicesStatusChecker; p(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/lang/Iterable;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V Y [
\ java/util/HashSet ^ ()V Y `
_ a O P c G H e = > g get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; i j
3 k -com/groupbyinc/flux/common/unit/ByteSizeValue m getKey ()Ljava/lang/String; o p
3 q ,com/groupbyinc/flux/common/settings/Settings s &(Ljava/lang/String;)Ljava/lang/String; i u
t v % x java/lang/String z endsWith (Ljava/lang/String;)Z | }
{ ~ java/lang/Iterable ? @ > ? settings .Lcom/groupbyinc/flux/common/settings/Settings; ? ? ? A > ? getBytes ()J ? ?
n ????????? J K ? B > ? )com/groupbyinc/flux/common/unit/TimeValue ? L M ? D > ? N M ? 9(Lcom/groupbyinc/flux/indices/IndexingMemoryController;)V Y ?
? W X ? logger !Lorg/apache/logging/log4j/Logger; ? ? ? 5using indexing buffer size [{}] with {} [{}], {} [{}] ? org/apache/logging/log4j/Logger ? debug o(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? scheduleTask c(Lcom/groupbyinc/flux/threadpool/ThreadPool;)Lcom/groupbyinc/flux/threadpool/Scheduler$Cancellable; ? ?
? R S ? E F ? minIndexingBuffer maxIndexingBuffer this 6Lcom/groupbyinc/flux/indices/IndexingMemoryController;
indexServices indexingBufferSetting Ljava/lang/String; same ? scheduleWithFixedDelay ?(Ljava/lang/Runnable;Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;)Lcom/groupbyinc/flux/threadpool/Scheduler$Cancellable; ? ?
. ? close cancel ? ` ? indexingBufferSize 1()Lcom/groupbyinc/flux/common/unit/ByteSizeValue; availableShards ()Ljava/util/List; java/util/ArrayList ?
? a iterator ()Ljava/util/Iterator; ? ? ? ? java/util/List ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? *com/groupbyinc/flux/index/shard/IndexShard ? T U ? state 3()Lcom/groupbyinc/flux/index/shard/IndexShardState; ? ?
? ? java/util/EnumSet ? contains (Ljava/lang/Object;)Z ? ?
? ? add ? ? ? ? shard ,Lcom/groupbyinc/flux/index/shard/IndexShard; >Ljava/util/List; Ljava/util/List; getIndexBufferRAMBytesUsed /(Lcom/groupbyinc/flux/index/shard/IndexShard;)J ? ?
? ? getShardWritingBytes getWritingBytes ? ?
? ? writeIndexingBufferAsync /(Lcom/groupbyinc/flux/index/shard/IndexShard;)V refresh ? executor :(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService; ? ?
. e(Lcom/groupbyinc/flux/indices/IndexingMemoryController;Lcom/groupbyinc/flux/index/shard/IndexShard;)V Y
$java/util/concurrent/ExecutorService execute (Ljava/lang/Runnable;)V
forceCheck run `
activateThrottling `
? deactivateThrottling `
? postIndex ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/engine/Engine$Index;Lcom/groupbyinc/flux/index/engine/Engine$IndexResult;)V recordOperationBytes f(Lcom/groupbyinc/flux/index/engine/Engine$Operation;Lcom/groupbyinc/flux/index/engine/Engine$Result;)V
shardId )Lcom/groupbyinc/flux/index/shard/ShardId; index /Lcom/groupbyinc/flux/index/engine/Engine$Index; result 5Lcom/groupbyinc/flux/index/engine/Engine$IndexResult;
postDelete ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/engine/Engine$Delete;Lcom/groupbyinc/flux/index/engine/Engine$DeleteResult;)V delete 0Lcom/groupbyinc/flux/index/engine/Engine$Delete; 6Lcom/groupbyinc/flux/index/engine/Engine$DeleteResult;
getResultType 7()Lcom/groupbyinc/flux/index/engine/Engine$Result$Type;&'
)( SUCCESS 5Lcom/groupbyinc/flux/index/engine/Engine$Result$Type;*+ 6, estimatedSizeInBytes ()I./
&0 bytesWritten (I)V23
4 operation 3Lcom/groupbyinc/flux/index/engine/Engine$Operation; 0Lcom/groupbyinc/flux/index/engine/Engine$Result; checkIdle 0(Lcom/groupbyinc/flux/index/shard/IndexShard;J)V Ecom/groupbyinc/flux/common/apache/lucene/store/AlreadyClosedException; (J)V9=
?> "java/lang/invoke/LambdaMetafactory@ metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;BC
ADE ,()Lorg/apache/logging/log4j/message/Message;G lambda$checkIdle$0 X(Lcom/groupbyinc/flux/index/shard/IndexShard;)Lorg/apache/logging/log4j/message/Message;IJ
KL ](Lcom/groupbyinc/flux/index/shard/IndexShard;)Lorg/apache/logging/log4j/util/MessageSupplier; iN O trace G(Lorg/apache/logging/log4j/util/MessageSupplier;Ljava/lang/Throwable;)VQR ?S e GLcom/groupbyinc/flux/common/apache/lucene/store/AlreadyClosedException; inactiveTimeNS J 5org/apache/logging/log4j/message/ParameterizedMessageY 7ignore exception while checking if shard {} is inactive[ +()Lcom/groupbyinc/flux/index/shard/ShardId;]
?^ '(Ljava/lang/String;Ljava/lang/Object;)V Y`
Za
access$000 Y(Lcom/groupbyinc/flux/indices/IndexingMemoryController;)Lorg/apache/logging/log4j/Logger; x0
access$100 g(Lcom/groupbyinc/flux/indices/IndexingMemoryController;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue;
access$200 c(Lcom/groupbyinc/flux/indices/IndexingMemoryController;)Lcom/groupbyinc/flux/common/unit/TimeValue;
access$300
access$400
access$500
access$600
access$700
access$800
access$900 access$1000 G(Lcom/groupbyinc/flux/indices/IndexingMemoryController;)Ljava/util/Set; access$1100 access$1200 indices.memory.index_buffer_sizev 10%x NodeScope 6Lcom/groupbyinc/flux/common/settings/Setting$Property;z{ 1| memorySizeSetting ?(Ljava/lang/String;Ljava/lang/String;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;~
3? $indices.memory.min_index_buffer_size? 0 ,com/groupbyinc/flux/common/unit/ByteSizeUnit? MB .Lcom/groupbyinc/flux/common/unit/ByteSizeUnit;?? ?? 2(JLcom/groupbyinc/flux/common/unit/ByteSizeUnit;)V Y?
n? BYTES?? ????????? byteSizeSetting(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
3? $indices.memory.max_index_buffer_size? Y=
n? "indices.memory.shard_inactive_time? timeValueMinutes .(J)Lcom/groupbyinc/flux/common/unit/TimeValue;??
?? positiveTimeSetting ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
3? indices.memory.interval? timeValueSeconds??
?? /com/groupbyinc/flux/index/shard/IndexShardState?
RECOVERING 1Lcom/groupbyinc/flux/index/shard/IndexShardState;?? ??
POST_RECOVERY?? ?? STARTED?? ?? of E(Ljava/lang/Enum;Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet;??
?? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/lang/Iterable;)V @()Ljava/util/List; BootstrapMethods
SourceFile InnerClasses ! = > ? ? @ > ? ? A > ? ? B > ? C D > ? C E F G H ? I J K L M N M O P ? Q R S T U ? V W X Y Z ? ? ?*+? ]*? _Y? b? d*-? f? h+? l? n:+? h? r? w:?
y? ? Q? ?*? ?? l? n:? ?*? ?? l? n:? ?? ??? :? ? ??? ? ?? ??? :*? ?*? ?*? ?? l? ?? ?*? ?*? ?? l? ?? ?*? Y*? ?? ?*? ??*? ?? ?? r*? ?? ?? r*? ?? ? **,? ?? ?*,? ?? ? R K ? ? K Z 0 ? K ? ? ? ? ? ? ? E F ? ? H ! ? J K - ? ? ? ? ? ? I ? ^ a W b d ! f - h <