org.apache.blur.manager.indexserver
Class AbstractDistributedIndexServer

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

public abstract class AbstractDistributedIndexServer
extends AbstractIndexServer


Constructor Summary
AbstractDistributedIndexServer(ClusterStatus clusterStatus, org.apache.hadoop.conf.Configuration configuration, String nodeName, String cluster)
           
 
Method Summary
 String getNodeName()
          Gets the current nodes name.
 List<String> getShardList(String table)
          The shard list for a given table.
 long getTableSize(String table)
          Gets the current on disk table size.
 
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
 
Methods inherited from interface org.apache.blur.manager.IndexServer
close, getIndexes, getShardListCurrentServerOnly, getShardState
 

Constructor Detail

AbstractDistributedIndexServer

public AbstractDistributedIndexServer(ClusterStatus clusterStatus,
                                      org.apache.hadoop.conf.Configuration configuration,
                                      String nodeName,
                                      String cluster)
Method Detail

getNodeName

public final String getNodeName()
Description copied from interface: IndexServer
Gets the current nodes name.

Returns:

getTableSize

public final long getTableSize(String table)
                        throws IOException
Description copied from interface: IndexServer
Gets the current on disk table size.

Parameters:
table - the name of the table.
Returns:
the number of bytes on disk.
Throws:
IOException

getShardList

public final List<String> getShardList(String table)
Description copied from interface: IndexServer
The shard list for a given table.

Parameters:
table - the table name.
Returns:
the list of shards.


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.