
com.groupbyinc.flux.common.apache.lucene.index.MergeRateLimiter.class Maven / Gradle / Ivy
???? 3 ? ?com/groupbyinc/flux/common/apache/lucene/index/MergeRateLimiter :com/groupbyinc/flux/common/apache/lucene/store/RateLimiter MergeRateLimiter.java Kcom/groupbyinc/flux/common/apache/lucene/index/MergeRateLimiter$PauseResult PauseResult Ccom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge :com/groupbyinc/flux/common/apache/lucene/index/MergePolicy OneMerge Pcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$MergeAbortedException MergeAbortedException MIN_PAUSE_CHECK_MSEC I totalBytesWritten J mbPerSec D lastNS minPauseCheckBytes abort Z
totalPausedNS totalStoppedNS merge ELcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge; $assertionsDisabled H(Lcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge;)V ()V ! #
$ &? setMBPerSec (D)V * +
, this ALcom/groupbyinc/flux/common/apache/lucene/index/MergeRateLimiter; "java/lang/IllegalArgumentException 0 java/lang/StringBuilder 2
3 $ mbPerSec must be positive; got: 5 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 7 8
3 9 (D)Ljava/lang/StringBuilder; 7 ;
3 < toString ()Ljava/lang/String; > ?
3 @ (Ljava/lang/String;)V ! B
1 C E ????????@? java/lang/Math M min (JJ)J O P
N Q S U java/lang/AssertionError W
X $ java/lang/Object Z notify \ #
[ ] getMBPerSec ()D getTotalBytesWritten ()J c pause (J)J java/lang/System g nanoTime i b
h j
maybePause Q(JJ)Lcom/groupbyinc/flux/common/apache/lucene/index/MergeRateLimiter$PauseResult; l m
n NO MLcom/groupbyinc/flux/common/apache/lucene/index/MergeRateLimiter$PauseResult; p q r t STOPPED v q w y PAUSED { q | ~ result ns bytes startNS curNS pausedNS getTotalStoppedNS getTotalPausedNS java/lang/InterruptedException ?
checkAbort ? #
?A??e ?? 沀 B@ wait (JI)V ? ?
[ ? Hcom/groupbyinc/flux/common/apache/lucene/util/ThreadInterruptedException ? #(Ljava/lang/InterruptedException;)V ! ?
? ? ie Ljava/lang/InterruptedException; secondsToPause targetNS
curPauseNS sleepMS sleepNS rate ? merge is aborted: ? segString ? ?
?
C setAbort getAbort ()Z getMinPauseCheckBytes java/lang/Class ? desiredAssertionStatus ? ?
? ?
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses !
? @
! " ? Q *? %*+? '* (? -? ? . / ? 3 4 7 8 ! * + ? ? Z'?? ? 1Y? 3Y? 46? :'? =? A? D?*'? F* G I'k Kk Kk?? R? T? V? *? T ?? ? XY? Y?*? ^? ? Z . / Z ? = > ! @ &