org.apache.hadoop.hbase
Interface Server

All Superinterfaces:
Abortable, Stoppable
All Known Implementing Classes:
HMaster, HMasterCommandLine.LocalHMaster, HRegionServer

public interface Server
extends Abortable, Stoppable

Defines the set of shared functions implemented by HBase servers (Masters and RegionServers).


Method Summary
 CatalogTracker getCatalogTracker()
           
 org.apache.hadoop.conf.Configuration getConfiguration()
          Gets the configuration object for this server.
 String getServerName()
          Gets the unique server name for this server.
 ZooKeeperWatcher getZooKeeper()
          Gets the ZooKeeper instance for this server.
 
Methods inherited from interface org.apache.hadoop.hbase.Abortable
abort
 
Methods inherited from interface org.apache.hadoop.hbase.Stoppable
isStopped, stop
 

Method Detail

getConfiguration

org.apache.hadoop.conf.Configuration getConfiguration()
Gets the configuration object for this server.


getZooKeeper

ZooKeeperWatcher getZooKeeper()
Gets the ZooKeeper instance for this server.


getCatalogTracker

CatalogTracker getCatalogTracker()
Returns:
Master's instance of CatalogTracker

getServerName

String getServerName()
Gets the unique server name for this server. If a RegionServer, it returns a concatenation of hostname, port and startcode formatted as <hostname> ',' <port> ',' <startcode>. If the master, it returns <hostname> ':' <port>'.

Returns:
unique server name


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.