org.apache.blur.manager.indexserver
Class BlurIndexWarmup

java.lang.Object
  extended by org.apache.blur.manager.indexserver.BlurIndexWarmup
Direct Known Subclasses:
DefaultBlurIndexWarmup

public abstract class BlurIndexWarmup
extends Object


Constructor Summary
BlurIndexWarmup(long warmupBandwidthThrottleBytesPerSec)
           
 
Method Summary
static BlurIndexWarmup getIndexWarmup(BlurConfiguration configuration)
           
abstract  void warmBlurIndex(TableDescriptor table, String shard, org.apache.lucene.index.IndexReader reader, java.util.concurrent.atomic.AtomicBoolean isClosed, DistributedIndexServer.ReleaseReader releaseReader, java.util.concurrent.atomic.AtomicLong pause)
          Once the reader has be warmed up, release() must be called on the ReleaseReader even if an exception occurs.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlurIndexWarmup

public BlurIndexWarmup(long warmupBandwidthThrottleBytesPerSec)
Method Detail

getIndexWarmup

public static BlurIndexWarmup getIndexWarmup(BlurConfiguration configuration)

warmBlurIndex

public abstract void warmBlurIndex(TableDescriptor table,
                                   String shard,
                                   org.apache.lucene.index.IndexReader reader,
                                   java.util.concurrent.atomic.AtomicBoolean isClosed,
                                   DistributedIndexServer.ReleaseReader releaseReader,
                                   java.util.concurrent.atomic.AtomicLong pause)
                            throws IOException
Once the reader has be warmed up, release() must be called on the ReleaseReader even if an exception occurs.

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.