org.apache.blur.manager.indexserver
Class DistributedIndexServer

java.lang.Object
  extended by org.apache.blur.manager.indexserver.AbstractIndexServer
      extended by org.apache.blur.manager.indexserver.AbstractDistributedIndexServer
          extended by org.apache.blur.manager.indexserver.DistributedIndexServer
All Implemented Interfaces:
Closeable, IndexServer

public class DistributedIndexServer
extends AbstractDistributedIndexServer


Nested Class Summary
static interface DistributedIndexServer.ReleaseReader
           
 
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)
           
 
Method Summary
 void close()
          Closes the index server.
 Map<String,BlurIndex> getIndexes(String table)
          Gets a map of the index readers for current running node.
static java.util.concurrent.atomic.AtomicLong getPauseWarmup()
           
 SortedSet<String> getShardListCurrentServerOnly(String table)
          Gets a sorted list of shards being served by this server.
 Map<String,ShardState> getShardState(String table)
          Get the shard state.
 
Methods inherited from class org.apache.blur.manager.indexserver.AbstractDistributedIndexServer
getNodeName, getShardList, getTableSize
 
Methods inherited from class org.apache.blur.manager.indexserver.AbstractIndexServer
getRecordCount, getRowCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

close

public void close()
           throws IOException
Description copied from interface: IndexServer
Closes the index server.

Throws:
IOException

getPauseWarmup

public static java.util.concurrent.atomic.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.