org.apache.blur.manager.indexserver
Class DistributedIndexServer
java.lang.Object
org.apache.blur.manager.indexserver.AbstractIndexServer
org.apache.blur.manager.indexserver.AbstractDistributedIndexServer
org.apache.blur.manager.indexserver.DistributedIndexServer
- All Implemented Interfaces:
- Closeable, IndexServer
public class DistributedIndexServer
- extends AbstractDistributedIndexServer
Constructor Summary |
DistributedIndexServer(org.apache.hadoop.conf.Configuration configuration,
org.apache.zookeeper.ZooKeeper zookeeper,
ClusterStatus clusterStatus,
BlurIndexWarmup warmup,
BlurFilterCache filterCache,
BlockCacheDirectoryFactory blockCacheDirectoryFactory,
DistributedLayoutFactory distributedLayoutFactory,
String cluster,
String nodeName,
long safeModeDelay,
int shardOpenerThreadCount,
int internalSearchThreads,
int warmupThreads,
int maxMergeThreads,
boolean warmupDisabled,
int minimumNumberOfNodesBeforeExitingSafeMode)
|
DistributedIndexServer
public DistributedIndexServer(org.apache.hadoop.conf.Configuration configuration,
org.apache.zookeeper.ZooKeeper zookeeper,
ClusterStatus clusterStatus,
BlurIndexWarmup warmup,
BlurFilterCache filterCache,
BlockCacheDirectoryFactory blockCacheDirectoryFactory,
DistributedLayoutFactory distributedLayoutFactory,
String cluster,
String nodeName,
long safeModeDelay,
int shardOpenerThreadCount,
int internalSearchThreads,
int warmupThreads,
int maxMergeThreads,
boolean warmupDisabled,
int minimumNumberOfNodesBeforeExitingSafeMode)
throws org.apache.zookeeper.KeeperException,
InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
close
public void close()
throws IOException
- Description copied from interface:
IndexServer
- Closes the index server.
- Throws:
IOException
getPauseWarmup
public static AtomicLong getPauseWarmup()
getShardState
public Map<String,ShardState> getShardState(String table)
- Description copied from interface:
IndexServer
- Get the shard state. Provides access to the as is state of the shards in
this instance.
- Parameters:
table
- the table name.
- Returns:
- the map of shard name to state.
getShardListCurrentServerOnly
public SortedSet<String> getShardListCurrentServerOnly(String table)
throws IOException
- Description copied from interface:
IndexServer
- Gets a sorted list of shards being served by this server.
- Parameters:
table
- the table name
- Returns:
- the sorted list of shards.
- Throws:
IOException
getIndexes
public Map<String,BlurIndex> getIndexes(String table)
throws IOException
- Description copied from interface:
IndexServer
- Gets a map of the index readers for current running node.
Keys are shard names, values are the associated indexes.
- Parameters:
table
- the table name.
- Returns:
- the map of readers.
- Throws:
IOException
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.