org.apache.blur.manager.indexserver
Class BlurIndexWarmup
java.lang.Object
org.apache.blur.manager.indexserver.BlurIndexWarmup
- Direct Known Subclasses:
- DefaultBlurIndexWarmup
public abstract class BlurIndexWarmup
- extends Object
Constructor Summary |
BlurIndexWarmup(long warmupBandwidthThrottleBytesPerSec)
|
BlurIndexWarmup
public BlurIndexWarmup(long warmupBandwidthThrottleBytesPerSec)
getIndexWarmup
public static BlurIndexWarmup getIndexWarmup(BlurConfiguration configuration)
warmBlurIndex
public abstract void warmBlurIndex(TableDescriptor table,
String shard,
IndexReader reader,
AtomicBoolean isClosed,
DistributedIndexServer.ReleaseReader releaseReader,
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.