Package org.apache.hadoop.hbase
Interface Server
- All Known Subinterfaces:
MasterServices
,RegionServerServices
- All Known Implementing Classes:
HMaster
,HMasterCommandLine.LocalHMaster
,HRegionServer
,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 TheChoreService
instance for this serverReturns a reference to the servers' cluster connection.org.apache.hadoop.conf.Configuration
Gets the configuration object for this server.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
-
getClusterConnection
Returns a reference to the servers' cluster connection. PrefergetConnection()
. 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
-