com.groupbyinc.flux.indices.recovery.RecoveryState$Index.class Maven / Gradle / Ivy
???? 4? 8com/groupbyinc/flux/indices/recovery/RecoveryState$Index 8com/groupbyinc/flux/indices/recovery/RecoveryState$Timer 6com/groupbyinc/flux/common/xcontent/ToXContentFragment /com/groupbyinc/flux/common/io/stream/Streamable RecoveryState.java 7com/groupbyinc/flux/indices/recovery/RecoveryState$File
2com/groupbyinc/flux/indices/recovery/RecoveryState File Index 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 9com/groupbyinc/flux/indices/recovery/RecoveryState$Fields Fields Timer fileDetails Ljava/util/Map; \Ljava/util/Map; UNKNOWN J???????? version sourceThrottlingInNanos targetThrottleTimeInNanos $assertionsDisabled Z ()V % &
' java/util/HashMap )
* ' , . ! 0 " 2 this :Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Index; ()Ljava/util/List; java/util/ArrayList 7
java/util/Map 9 values ()Ljava/util/Collection; ; < : = (Ljava/util/Collection;)V % ?
8 @ java/util/Collections B unmodifiableList "(Ljava/util/List;)Ljava/util/List; D E
C F reset H &
I clear K & : L
addFileDetail (Ljava/lang/String;JZ)V % O
P put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; R S : T # $ V java/lang/AssertionError X java/lang/StringBuilder Z
[ ' file [ ] append -(Ljava/lang/String;)Ljava/lang/StringBuilder; _ `
[ a ] is already reported c toString ()Ljava/lang/String; e f
[ g (Ljava/lang/Object;)V % i
Y j name Ljava/lang/String; length reused file 9Lcom/groupbyinc/flux/indices/recovery/RecoveryState$File; existing addRecoveredBytesToFile (Ljava/lang/String;J)V get &(Ljava/lang/Object;)Ljava/lang/Object; u v : w addRecoveredBytes (J)V y z
{ bytes ()J addSourceThrottling timeInNanos addTargetThrottling sourceThrottling -()Lcom/groupbyinc/flux/common/unit/TimeValue; )com/groupbyinc/flux/common/unit/TimeValue ? timeValueNanos .(J)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? targetThrottling totalFileCount ()I size ? ? : ? totalRecoverFiles java/util/Collection ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? o ?
? total I recoveredFileCount fullyRecovered ? ?
? count recoveredFilesPercent ()FB? result F recovered
totalBytes n ~
? recoveredBytes ? ~
? totalRecoverBytes totalReuseBytes recoveredBytesPercent reusedFileCount reusedBytes
updateVersion readFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ? ? ?
? 0com/groupbyinc/flux/common/io/stream/StreamInput ? readVInt ? ?
? ? readFile m(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/indices/recovery/RecoveryState$File; ? ?
?
access$000 M(Lcom/groupbyinc/flux/indices/recovery/RecoveryState$File;)Ljava/lang/String; ? ?
? readLong ? ~
? ? i in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V ? ?
? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ? ? ? :[Lcom/groupbyinc/flux/indices/recovery/RecoveryState$File; ? 1com/groupbyinc/flux/common/io/stream/StreamOutput ? writeVInt (I)V ? ?
? ?
? writeLong ? z
? ? out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; files
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? 3com/groupbyinc/flux/common/xcontent/XContentBuilder ? startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? total_in_bytes ? ? ? ~
?
byteSizeField \(Ljava/lang/String;Ljava/lang/String;J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? reused_in_bytes ? o ? ~
recovered_in_bytes ? ? ~
percent java/util/Locale
ROOT Ljava/util/Locale;
%1.1f%% java/lang/Object ? ?
java/lang/Float valueOf (F)Ljava/lang/Float;
java/lang/String format K(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
field [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;"#
?$ endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;&'
?( ? ? ?
+ J(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;"-
?. ? ?
0 ? ?
2 ? ?
4 details6 paramAsBoolean (Ljava/lang/String;Z)Z89 :
startArray<