org.apache.blur.manager.indexserver
Class DefaultBlurIndexWarmup
java.lang.Object
org.apache.blur.manager.indexserver.BlurIndexWarmup
org.apache.blur.manager.indexserver.DefaultBlurIndexWarmup
public class DefaultBlurIndexWarmup
- extends BlurIndexWarmup
DefaultBlurIndexWarmup
public DefaultBlurIndexWarmup(long warmupBandwidthThrottleBytesPerSec)
warmBlurIndex
public 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 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.