Package org.apache.hadoop.hbase
Interface Server
- All Known Subinterfaces:
MasterServices
,RegionServerServices
- All Known Implementing Classes:
HBaseServerBase
,HMaster
,HMasterCommandLine.LocalHMaster
,HRegionServer
,MiniHBaseCluster.MiniHBaseClusterRegionServer
,MockRegionServerServices
,ReplicationSyncUp.DummyServer
Defines a curated set of shared functions implemented by HBase servers (Masters and
RegionServers). For use internally only. Be judicious adding API. Changes cause ripples through
the code base.
-
Method Summary
Modifier and TypeMethodDescriptioncreateConnection
(org.apache.hadoop.conf.Configuration conf) Returns a reference to the servers' async cluster connection.default AsyncConnection
Returns a reference to the servers' async connection.Returns TheChoreService
instance for this serverorg.apache.hadoop.conf.Configuration
Gets the configuration object for this server.default Connection
Returns a reference to the servers' connection.Get CoordinatedStateManager instance for this server.default org.apache.hadoop.fs.FileSystem
Returns Return the FileSystem object used (can return null!).Returns The unique server name for this server.Gets the ZooKeeper instance for this server.default boolean
Returns True is the server is Stopping
-
Method Details
-
getConfiguration
org.apache.hadoop.conf.Configuration getConfiguration()Gets the configuration object for this server. -
getZooKeeper
Gets the ZooKeeper instance for this server. -
getConnection
Returns a reference to the servers' connection. Important note: this method returns a reference to Connection which is managed by Server itself, so callers must NOT attempt to close connection obtained. -
createConnection
- Throws:
IOException
-
getAsyncConnection
Returns a reference to the servers' async connection. Important note: this method returns a reference to Connection which is managed by Server itself, so callers must NOT attempt to close connection obtained. -
getAsyncClusterConnection
Returns a reference to the servers' async cluster connection. Important note: this method returns a reference to Connection which is managed by Server itself, so callers must NOT attempt to close connection obtained. -
getServerName
Returns The unique server name for this server. -
getCoordinatedStateManager
Get CoordinatedStateManager instance for this server. -
getChoreService
Returns TheChoreService
instance for this server -
getFileSystem
Returns Return the FileSystem object used (can return null!). -
isStopping
Returns True is the server is Stopping
-