@InterfaceAudience.Private public abstract class HBaseServerBase<R extends HBaseRpcServicesBase<?>> extends Thread implements Server, ConfigurationObserver, ConnectionRegistryEndpoint
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
abortRequested |
protected AsyncClusterConnection |
asyncClusterConnection
The asynchronous cluster connection to be shared by services.
|
protected ChoreService |
choreService
ChoreService used to schedule tasks that we want to run periodically
|
protected ClusterStatusTracker |
clusterStatusTracker |
protected org.apache.hadoop.conf.Configuration |
conf |
protected ConfigurationManager |
configurationManager
Configuration manager is used to register/deregister and notify the configuration observers
when the regionserver is notified that there was a change in the on disk configs.
|
protected CoordinatedStateManager |
csm |
protected HFileSystem |
dataFs |
protected org.apache.hadoop.fs.Path |
dataRootDir |
protected NettyEventLoopGroupConfig |
eventLoopGroupConfig |
protected ExecutorService |
executorService |
protected InfoServer |
infoServer |
protected MetaRegionLocationCache |
metaRegionLocationCache
Cache for the meta region replica's locations.
|
protected int |
msgInterval |
protected NamedQueueRecorder |
namedQueueRecorder
Provide online slow log responses from ringbuffer
|
protected R |
rpcServices |
protected ServerName |
serverName
The server name the Master sees us as.
|
protected Sleeper |
sleeper |
protected long |
startcode
This servers startcode.
|
protected boolean |
stopped |
protected TableDescriptors |
tableDescriptors
Go here to get table descriptors.
|
protected UserProvider |
userProvider |
protected String |
useThisHostnameInstead
hostname specified by hostname config
|
protected HFileSystem |
walFs |
protected org.apache.hadoop.fs.Path |
walRootDir |
protected ZKWatcher |
zooKeeper |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
HBaseServerBase(org.apache.hadoop.conf.Configuration conf,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
cacheTableDescriptor() |
protected abstract boolean |
canCreateBaseZNode() |
protected abstract boolean |
canUpdateTableDescriptor() |
protected void |
closeClusterConnection() |
protected void |
closeTableDescriptors() |
protected void |
closeZooKeeper() |
protected abstract boolean |
clusterMode() |
protected abstract void |
configureInfoServer(InfoServer infoServer) |
Connection |
createConnection(org.apache.hadoop.conf.Configuration conf) |
protected abstract NamedQueueRecorder |
createNamedQueueRecord() |
protected abstract R |
createRpcServices() |
AccessChecker |
getAccessChecker() |
AsyncClusterConnection |
getAsyncClusterConnection()
Returns a reference to the servers' async cluster connection.
|
ChoreService |
getChoreService() |
org.apache.hadoop.conf.Configuration |
getConfiguration()
Gets the configuration object for this server.
|
CoordinatedStateManager |
getCoordinatedStateManager()
Get CoordinatedStateManager instance for this server.
|
org.apache.hadoop.fs.Path |
getDataRootDir() |
protected abstract Class<? extends javax.servlet.http.HttpServlet> |
getDumpServlet() |
NettyEventLoopGroupConfig |
getEventLoopGroupConfig() |
ExecutorService |
getExecutorService() |
org.apache.hadoop.fs.FileSystem |
getFileSystem() |
InfoServer |
getInfoServer() |
MetaRegionLocationCache |
getMetaRegionLocationCache() |
int |
getMsgInterval() |
NamedQueueRecorder |
getNamedQueueRecorder()
get NamedQueue Provider to add different logs to ringbuffer n
|
protected abstract String |
getProcessName() |
RpcServerInterface |
getRpcServer() |
R |
getRpcServices() |
ServerName |
getServerName() |
long |
getStartcode() |
TableDescriptors |
getTableDescriptors() |
protected abstract String |
getUseThisHostnameInstead(org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.fs.FileSystem |
getWALFileSystem() |
org.apache.hadoop.fs.Path |
getWALRootDir() |
ZKPermissionWatcher |
getZKPermissionWatcher() |
ZKWatcher |
getZooKeeper()
Gets the ZooKeeper instance for this server.
|
protected void |
initializeFileSystem() |
protected void |
initializeMemStoreChunkCreator(HeapMemoryManager hMemManager) |
protected void |
installShutdownHook()
In order to register ShutdownHook, this method is called when HMaster and HRegionServer are
started.
|
boolean |
isAborted() |
boolean |
isClusterUp() |
boolean |
isShutdownHookInstalled() |
boolean |
isStopped() |
protected abstract void |
login(UserProvider user,
String host) |
protected boolean |
setAbortRequested()
Sets the abort state if not already set.
|
protected void |
setupClusterConnection()
Setup our cluster connection if not already initialized.
|
protected void |
shutdownChore(ScheduledChore chore) |
protected abstract void |
stopChores() |
protected void |
stopChoreService() |
protected void |
stopExecutorService() |
protected void |
stopInfoServer() |
String |
toString() |
void |
updateConfiguration()
Reload the configuration from disk.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsyncConnection, getConnection, isStoppingonConfigurationChangegetActiveMaster, getBackupMasters, getBootstrapNodes, getClusterId, getMetaLocationsprotected final org.apache.hadoop.conf.Configuration conf
protected final AtomicBoolean abortRequested
protected volatile boolean stopped
protected final long startcode
protected final UserProvider userProvider
protected final ZKWatcher zooKeeper
protected ServerName serverName
protected final R extends HBaseRpcServicesBase<?> rpcServices
protected final String useThisHostnameInstead
protected final NamedQueueRecorder namedQueueRecorder
protected final ConfigurationManager configurationManager
protected final ChoreService choreService
protected final ExecutorService executorService
protected final ClusterStatusTracker clusterStatusTracker
protected final CoordinatedStateManager csm
protected InfoServer infoServer
protected HFileSystem dataFs
protected HFileSystem walFs
protected org.apache.hadoop.fs.Path dataRootDir
protected org.apache.hadoop.fs.Path walRootDir
protected final int msgInterval
protected final Sleeper sleeper
protected TableDescriptors tableDescriptors
protected AsyncClusterConnection asyncClusterConnection
protected final MetaRegionLocationCache metaRegionLocationCache
protected final NettyEventLoopGroupConfig eventLoopGroupConfig
public HBaseServerBase(org.apache.hadoop.conf.Configuration conf,
String name)
throws IOException
IOExceptionprotected final void setupClusterConnection()
throws IOException
IOExceptionprotected final void initializeFileSystem()
throws IOException
IOExceptionprotected final boolean setAbortRequested()
public org.apache.hadoop.conf.Configuration getConfiguration()
ServergetConfiguration in interface Serverpublic AsyncClusterConnection getAsyncClusterConnection()
ServergetAsyncClusterConnection in interface Serverpublic ZKWatcher getZooKeeper()
ServergetZooKeeper in interface Serverprotected final void shutdownChore(ScheduledChore chore)
protected final void initializeMemStoreChunkCreator(HeapMemoryManager hMemManager)
protected abstract void stopChores()
protected final void stopChoreService()
protected final void stopExecutorService()
protected final void closeClusterConnection()
protected final void stopInfoServer()
protected final void closeZooKeeper()
protected final void closeTableDescriptors()
protected final void installShutdownHook()
public boolean isShutdownHookInstalled()
public ServerName getServerName()
getServerName in interface Serverpublic ChoreService getChoreService()
getChoreService in interface ServerChoreService instance for this serverpublic TableDescriptors getTableDescriptors()
public ExecutorService getExecutorService()
public AccessChecker getAccessChecker()
public ZKPermissionWatcher getZKPermissionWatcher()
public CoordinatedStateManager getCoordinatedStateManager()
ServergetCoordinatedStateManager in interface Serverpublic Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
createConnection in interface ServerIOExceptionpublic org.apache.hadoop.fs.Path getDataRootDir()
public org.apache.hadoop.fs.FileSystem getFileSystem()
getFileSystem in interface Serverpublic org.apache.hadoop.fs.Path getWALRootDir()
public org.apache.hadoop.fs.FileSystem getWALFileSystem()
public boolean isClusterUp()
public long getStartcode()
public InfoServer getInfoServer()
public int getMsgInterval()
public NamedQueueRecorder getNamedQueueRecorder()
public RpcServerInterface getRpcServer()
public NettyEventLoopGroupConfig getEventLoopGroupConfig()
public R getRpcServices()
public MetaRegionLocationCache getMetaRegionLocationCache()
public void updateConfiguration()
protected abstract boolean canCreateBaseZNode()
protected abstract String getProcessName()
protected abstract R createRpcServices() throws IOException
IOExceptionprotected abstract String getUseThisHostnameInstead(org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionprotected abstract void login(UserProvider user, String host) throws IOException
IOExceptionprotected abstract NamedQueueRecorder createNamedQueueRecord()
protected abstract void configureInfoServer(InfoServer infoServer)
protected abstract Class<? extends javax.servlet.http.HttpServlet> getDumpServlet()
protected abstract boolean canUpdateTableDescriptor()
protected abstract boolean cacheTableDescriptor()
protected abstract boolean clusterMode()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.