org.apache.blur.manager.indexserver
Class DefaultBlurIndexWarmup

java.lang.Object
  extended by org.apache.blur.manager.indexserver.BlurIndexWarmup
      extended by org.apache.blur.manager.indexserver.DefaultBlurIndexWarmup

public class DefaultBlurIndexWarmup
extends BlurIndexWarmup


Constructor Summary
DefaultBlurIndexWarmup(long warmupBandwidthThrottleBytesPerSec)
           
 
Method Summary
 void warmBlurIndex(TableDescriptor table, String shard, IndexReader reader, AtomicBoolean isClosed, DistributedIndexServer.ReleaseReader releaseReader, AtomicLong pauseWarmup)
          Once the reader has be warmed up, release() must be called on the ReleaseReader even if an exception occurs.
 
Methods inherited from class org.apache.blur.manager.indexserver.BlurIndexWarmup
getIndexWarmup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBlurIndexWarmup

public DefaultBlurIndexWarmup(long warmupBandwidthThrottleBytesPerSec)
Method Detail

warmBlurIndex

public void warmBlurIndex(TableDescriptor table,
                          String shard,
                          IndexReader reader,
                          AtomicBoolean isClosed,
                          DistributedIndexServer.ReleaseReader releaseReader,
                          AtomicLong pauseWarmup)
                   throws IOException
Description copied from class: BlurIndexWarmup
Once the reader has be warmed up, release() must be called on the ReleaseReader even if an exception occurs.

Specified by:
warmBlurIndex in class BlurIndexWarmup
Parameters:
table - the table descriptor.
shard - the shard name.
reader - thread reader itself.
isClosed - to check if the shard has been migrated to another node.
releaseReader - to release the handle on the reader.
Throws:
IOException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.