Interface Server

All Superinterfaces:
Abortable, Stoppable
All Known Subinterfaces:
MasterServices, RegionServerServices
All Known Implementing Classes:
HBaseServerBase, HMaster, HMasterCommandLine.LocalHMaster, HRegionServer, MiniHBaseCluster.MiniHBaseClusterRegionServer, ReplicationSyncUp.DummyServer

@Private public interface Server extends Abortable, Stoppable
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 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

      Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
      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 The ChoreService instance for this server
    • getFileSystem

      default org.apache.hadoop.fs.FileSystem getFileSystem()
      Returns Return the FileSystem object used (can return null!).
    • isStopping

      default boolean isStopping()
      Returns True is the server is Stopping