@InterfaceAudience.LimitedPrivate(value="Tools") public class HRegionServer extends HasThread implements RegionServerServices, LastSequenceId, ConfigurationObserver
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
HRegionServer.MovedRegionsCleaner
Creates a Chore thread to clean the moved region cache.
|
RegionServerServices.PostOpenDeployContext, RegionServerServices.RegionStateTransitionContext| 限定符和类型 | 字段和说明 |
|---|---|
protected CacheConfig |
cacheConfig |
protected org.apache.hadoop.hbase.regionserver.MemStoreFlusher |
cacheFlusher |
protected static String |
CLOSE |
protected ClusterConnection |
clusterConnection
Cluster connection to be shared by services.
|
protected ClusterStatusTracker |
clusterStatusTracker |
CompactSplitThread |
compactSplitThread |
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 BaseCoordinatedStateManager |
csm |
protected HFileSystem |
fs |
protected boolean |
fsOk |
protected HeapMemoryManager |
hMemManager |
protected InfoServer |
infoServer |
protected CountDownLatch |
initLatch |
protected Leases |
leases |
protected ReentrantReadWriteLock |
lock |
protected static String |
MASTER_HOSTNAME_KEY |
protected MetaTableLocator |
metaTableLocator |
protected Map<String,org.apache.hadoop.hbase.regionserver.HRegionServer.MovedRegionInfo> |
movedRegions |
protected int |
msgInterval |
protected int |
numRegionsToReport |
protected Map<String,Region> |
onlineRegions
Map of regions currently being served by this region server.
|
protected static String |
OPEN |
protected Map<String,Region> |
recoveringRegions
Set of regions currently being in recovering state which means it can accept writes(edits from
previous failed region server) but not reads.
|
protected Map<String,InetSocketAddress[]> |
regionFavoredNodesMap
Map of encoded region names to the DataNode locations they should be hosted on
We store the value as InetSocketAddress since this is used only in HDFS
API (create() that takes favored nodes as hints for placing file blocks).
|
static String |
REGIONSERVER
region server process name
|
protected ConcurrentMap<byte[],Boolean> |
regionsInTransitionInRS |
protected ReplicationSinkService |
replicationSinkHandler |
protected ReplicationSourceService |
replicationSourceHandler |
protected RSRpcServices |
rpcServices |
protected ServerName |
serverName
The server name the Master sees us as.
|
protected ExecutorService |
service |
protected Sleeper |
sleeper |
protected long |
startcode
This servers startcode.
|
protected TableDescriptors |
tableDescriptors
Go here to get table descriptors.
|
protected TableLockManager |
tableLockManager |
protected int |
threadWakeFrequency |
protected String |
useThisHostnameInstead |
protected WALFactory |
walFactory |
protected HFileSystem |
walFs |
protected ZooKeeperWatcher |
zooKeeper |
| 构造器和说明 |
|---|
HRegionServer(org.apache.hadoop.conf.Configuration conf)
Starts a HRegionServer at the default location.
|
HRegionServer(org.apache.hadoop.conf.Configuration conf,
CoordinatedStateManager csm)
Starts a HRegionServer at the default location
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort(String reason) |
void |
abort(String reason,
Throwable cause)
Cause the server to exit without closing the regions it is serving, the log
it is using and without notifying the master.
|
protected void |
addToMovedRegions(String encodedName,
ServerName destination,
long closeSeqNum) |
void |
addToOnlineRegions(Region region)
Add to online regions.
|
protected boolean |
canCreateBaseZNode() |
protected boolean |
canUpdateTableDescriptor() |
boolean |
checkFileSystem()
Checks to see if the file system is still accessible.
|
protected void |
cleanMovedRegions()
Remove the expired entries from the moved regions list.
|
protected void |
closeAllRegions(boolean abort)
Closes all regions.
|
protected boolean |
closeRegion(String encodedName,
boolean abort,
CloseRegionCoordination.CloseRegionDetails crd,
ServerName sn)
Close asynchronously a region, can be called from the master or internally by the regionserver
when stopping.
|
protected void |
configureInfoServer() |
static HRegionServer |
constructRegionServer(Class<? extends HRegionServer> regionServerClass,
org.apache.hadoop.conf.Configuration conf2,
CoordinatedStateManager cp)
Utility for constructing an instance of the passed HRegionServer class.
|
protected IOException |
convertThrowableToIOE(Throwable t,
String msg) |
protected ClusterConnection |
createClusterConnection()
Create a 'smarter' HConnection, one that is capable of by-passing RPC if the request is to
the local server.
|
org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.RegionLoad |
createRegionLoad(String encodedRegionName) |
protected ServerName |
createRegionServerStatusStub()
Get the current master from ZooKeeper and open the RPC connection to it.
|
protected ServerName |
createRegionServerStatusStub(boolean refresh)
Get the current master from ZooKeeper and open the RPC connection to it.
|
protected RSRpcServices |
createRpcServices() |
protected LogRoller |
ensureMetaWALRoller()
We initialize the roller for the wal that handles meta lazily
since we don't know if this regionserver will handle it.
|
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResponse |
execRegionServerService(com.google.protobuf.RpcController controller,
org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceRequest serviceRequest) |
CacheConfig |
getCacheConfig() |
ChoreService |
getChoreService() |
String |
getClusterId() |
double |
getCompactionPressure() |
CompactionRequestor |
getCompactionRequester() |
CompactSplitThread |
getCompactSplitThread() |
org.apache.hadoop.conf.Configuration |
getConfiguration()
Gets the configuration object for this server.
|
protected ConfigurationManager |
getConfigurationManager() |
ClusterConnection |
getConnection()
Returns a reference to the servers' cluster connection.
|
BaseCoordinatedStateManager |
getCoordinatedStateManager()
Get CoordinatedStateManager instance for this server.
|
protected Class<? extends javax.servlet.http.HttpServlet> |
getDumpServlet() |
ExecutorService |
getExecutorService() |
InetSocketAddress[] |
getFavoredNodesForRegion(String encodedRegionName)
Return the favored nodes for a region given its encoded name.
|
org.apache.hadoop.fs.FileSystem |
getFileSystem() |
double |
getFlushPressure() |
FlushRequester |
getFlushRequester() |
ThroughputController |
getFlushThroughputController() |
Region |
getFromOnlineRegions(String encodedRegionName)
Return
Region instance. |
HeapMemoryManager |
getHeapMemoryManager() |
InfoServer |
getInfoServer() |
org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.RegionStoreSequenceIds |
getLastSequenceId(byte[] encodedRegionName) |
Leases |
getLeases() |
MasterAddressTracker |
getMasterAddressTracker() |
MetaTableLocator |
getMetaTableLocator()
Returns instance of
MetaTableLocator
running inside this server. |
MetricsRegionServer |
getMetrics() |
ServerNonceManager |
getNonceManager()
Only required for "old" log replay; if it's removed, remove this.
|
int |
getNumberOfOnlineRegions() |
Region |
getOnlineRegion(byte[] regionName) |
List<Region> |
getOnlineRegions()
Get all online regions in this RS.
|
List<Region> |
getOnlineRegions(TableName tableName)
Gets the online regions of the specified table.
|
Collection<Region> |
getOnlineRegionsLocalContext()
For tests, web ui and metrics.
|
Set<TableName> |
getOnlineTables()
Gets the online tables in this RS.
|
protected String |
getProcessName() |
Map<String,Region> |
getRecoveringRegions() |
protected Region |
getRegion(byte[] regionName)
Protected utility method for safely obtaining an HRegion handle.
|
InetSocketAddress[] |
getRegionBlockLocations(String encodedRegionName) |
protected Region |
getRegionByEncodedName(byte[] regionName,
String encodedRegionName) |
Region |
getRegionByEncodedName(String encodedRegionName) |
RegionServerAccounting |
getRegionServerAccounting() |
RegionServerCoprocessorHost |
getRegionServerCoprocessorHost() |
String[] |
getRegionServerCoprocessors() |
MetricsRegionServer |
getRegionServerMetrics() |
RegionServerQuotaManager |
getRegionServerQuotaManager() |
ConcurrentMap<byte[],Boolean> |
getRegionsInTransitionInRS()
Get the regions that are currently being opened or closed in the RS
|
ReplicationSourceService |
getReplicationSourceService() |
protected org.apache.hadoop.fs.Path |
getRootDir() |
RpcServerInterface |
getRpcServer()
Returns a reference to the region server's RPC server
|
RSRpcServices |
getRSRpcServices() |
ServerName |
getServerName() |
long |
getStartcode() |
TableDescriptors |
getTableDescriptors() |
TableLockManager |
getTableLockManager() |
int |
getThreadWakeFrequency()
Interval at which threads should run
|
WAL |
getWAL(HRegionInfo regionInfo) |
protected org.apache.hadoop.fs.FileSystem |
getWALFileSystem() |
protected org.apache.hadoop.fs.Path |
getWALRootDir() |
List<WAL> |
getWALs() |
ZooKeeperWatcher |
getZooKeeper()
Gets the ZooKeeper instance for this server.
|
protected void |
handleReportForDutyResponse(org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionServerStartupResponse c) |
boolean |
isAborted() |
boolean |
isOnline()
Report the status of the server.
|
boolean |
isStopped() |
boolean |
isStopping() |
protected void |
kill() |
protected void |
login(UserProvider user,
String host) |
static void |
main(String[] args) |
protected int |
movedRegionCleanerPeriod() |
void |
onConfigurationChange(org.apache.hadoop.conf.Configuration newConf)
This method would be called by the
ConfigurationManager
object when the Configuration object is reloaded from disk. |
void |
postOpenDeployTasks(Region r)
Tasks to perform after region open to complete deploy of region on
regionserver
|
void |
postOpenDeployTasks(RegionServerServices.PostOpenDeployContext context)
Tasks to perform after region open to complete deploy of region on
regionserver
|
boolean |
registerService(com.google.protobuf.Service instance)
Registers a new protocol buffer
Service subclass as a coprocessor endpoint to be
available for handling |
boolean |
removeFromOnlineRegions(Region r,
ServerName destination)
This method removes Region corresponding to hri from the Map of onlineRegions.
|
boolean |
reportRegionStateTransition(RegionServerServices.RegionStateTransitionContext context)
Notify master that a handler requests to change a region state
|
boolean |
reportRegionStateTransition(org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode code,
HRegionInfo... hris)
Notify master that a handler requests to change a region state
|
boolean |
reportRegionStateTransition(org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode code,
long openSeqNum,
HRegionInfo... hris)
Notify master that a handler requests to change a region state
|
void |
run()
The HRegionServer sticks in this loop until closed.
|
protected void |
sendShutdownInterrupt()
Called on stop/abort before closing the cluster connection and meta locator.
|
protected void |
setInitLatch(CountDownLatch latch) |
protected void |
setupClusterConnection()
Setup our cluster connection if not already initialized.
|
protected boolean |
shouldUseThisHostnameInstead() |
void |
stop(String msg) |
void |
stop(String msg,
boolean force)
Stops the regionserver.
|
protected void |
stopServiceThreads()
Wait on all threads to finish.
|
String |
toString() |
protected void |
tryRegionServerReport(long reportStartTime,
long reportEndTime) |
void |
unassign(byte[] regionName)
Unassign the given region from the current regionserver and assign it randomly.
|
void |
updateConfiguration()
Reload the configuration from disk.
|
void |
updateRegionFavoredNodesMapping(String encodedRegionName,
List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName> favoredNodes)
Used to update the favored nodes mapping when required.
|
protected void |
waitForMasterActive() |
void |
waitForServerOnline() |
boolean |
walRollRequestFinished()
For testing
|
getName, getThread, interrupt, isAlive, isInterrupted, join, join, join, setDaemon, setName, setPriority, setUncaughtExceptionHandler, startprotected final ConcurrentMap<byte[],Boolean> regionsInTransitionInRS
protected org.apache.hadoop.hbase.regionserver.MemStoreFlusher cacheFlusher
protected HeapMemoryManager hMemManager
protected CountDownLatch initLatch
protected ClusterConnection clusterConnection
protected MetaTableLocator metaTableLocator
protected TableDescriptors tableDescriptors
protected ReplicationSourceService replicationSourceHandler
protected ReplicationSinkService replicationSinkHandler
public CompactSplitThread compactSplitThread
protected final Map<String,Region> onlineRegions
protected final Map<String,InetSocketAddress[]> regionFavoredNodesMap
protected final Map<String,Region> recoveringRegions
protected Leases leases
protected ExecutorService service
protected volatile boolean fsOk
protected HFileSystem fs
protected HFileSystem walFs
protected final org.apache.hadoop.conf.Configuration conf
protected final ReentrantReadWriteLock lock
protected final int threadWakeFrequency
protected final int msgInterval
protected final int numRegionsToReport
protected InfoServer infoServer
protected volatile WALFactory walFactory
protected ZooKeeperWatcher zooKeeper
protected ClusterStatusTracker clusterStatusTracker
protected final Sleeper sleeper
protected CacheConfig cacheConfig
protected ServerName serverName
protected String useThisHostnameInstead
@InterfaceAudience.LimitedPrivate(value="Configuration") protected static final String MASTER_HOSTNAME_KEY
protected final long startcode
protected TableLockManager tableLockManager
protected final RSRpcServices rpcServices
protected BaseCoordinatedStateManager csm
protected final ConfigurationManager configurationManager
protected Map<String,org.apache.hadoop.hbase.regionserver.HRegionServer.MovedRegionInfo> movedRegions
public HRegionServer(org.apache.hadoop.conf.Configuration conf)
throws IOException,
InterruptedException
public HRegionServer(org.apache.hadoop.conf.Configuration conf,
CoordinatedStateManager csm)
throws IOException,
InterruptedException
csm - implementation of CoordinatedStateManager to be usedIOExceptionInterruptedExceptionprotected void setInitLatch(CountDownLatch latch)
protected boolean shouldUseThisHostnameInstead()
protected void login(UserProvider user, String host) throws IOException
IOExceptionprotected void waitForMasterActive()
protected String getProcessName()
protected boolean canCreateBaseZNode()
protected boolean canUpdateTableDescriptor()
protected RSRpcServices createRpcServices() throws IOException
IOExceptionprotected void configureInfoServer()
protected Class<? extends javax.servlet.http.HttpServlet> getDumpServlet()
public boolean registerService(com.google.protobuf.Service instance)
RegionServerServicesService subclass as a coprocessor endpoint to be
available for handlingregisterService 在接口中 RegionServerServicesinstance - the Service subclass instance to expose as a coprocessor endpointtrue if the registration was successful, falseprotected ClusterConnection createClusterConnection() throws IOException
IOExceptionpublic String getClusterId()
protected void setupClusterConnection()
throws IOException
IOExceptionpublic void run()
protected void tryRegionServerReport(long reportStartTime,
long reportEndTime)
throws IOException
IOExceptionprotected void handleReportForDutyResponse(org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionServerStartupResponse c) throws IOException
IOExceptionpublic RegionServerAccounting getRegionServerAccounting()
getRegionServerAccounting 在接口中 RegionServerServicespublic TableLockManager getTableLockManager()
getTableLockManager 在接口中 RegionServerServicesTableLockManagerpublic org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.RegionLoad createRegionLoad(String encodedRegionName) throws IOException
encodedRegionName - IOExceptionpublic boolean isOnline()
protected LogRoller ensureMetaWALRoller()
public MetricsRegionServer getRegionServerMetrics()
public MasterAddressTracker getMasterAddressTracker()
public List<WAL> getWALs() throws IOException
IOExceptionpublic WAL getWAL(HRegionInfo regionInfo) throws IOException
getWAL 在接口中 RegionServerServicesIOExceptionpublic ClusterConnection getConnection()
ServergetConnection 在接口中 Serverpublic MetaTableLocator getMetaTableLocator()
ServerMetaTableLocator
running inside this server. This MetaServerLocator is started and stopped by server, clients
shouldn't manage it's lifecycle.getMetaTableLocator 在接口中 ServerMetaTableLocator associated with this server.public void stop(String msg, boolean force)
msg - Status messageforce - True if this is a regionserver abortpublic void waitForServerOnline()
public void postOpenDeployTasks(Region r) throws org.apache.zookeeper.KeeperException, IOException
RegionServerServicespostOpenDeployTasks 在接口中 RegionServerServicesr - Region to open.org.apache.zookeeper.KeeperExceptionIOExceptionpublic void postOpenDeployTasks(RegionServerServices.PostOpenDeployContext context) throws org.apache.zookeeper.KeeperException, IOException
RegionServerServicespostOpenDeployTasks 在接口中 RegionServerServicescontext - the contextorg.apache.zookeeper.KeeperExceptionIOExceptionpublic boolean reportRegionStateTransition(org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode code, HRegionInfo... hris)
RegionServerServicespublic boolean reportRegionStateTransition(org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode code, long openSeqNum, HRegionInfo... hris)
RegionServerServicespublic boolean reportRegionStateTransition(RegionServerServices.RegionStateTransitionContext context)
RegionServerServicespublic RpcServerInterface getRpcServer()
RegionServerServicesgetRpcServer 在接口中 RegionServerServicespublic RSRpcServices getRSRpcServices()
public void abort(String reason, Throwable cause)
public void abort(String reason)
protected void kill()
protected void sendShutdownInterrupt()
protected void stopServiceThreads()
public ReplicationSourceService getReplicationSourceService()
protected ServerName createRegionServerStatusStub()
protected ServerName createRegionServerStatusStub(boolean refresh)
refresh - If true then master address will be read from ZK, otherwise use cached datapublic org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.RegionStoreSequenceIds getLastSequenceId(byte[] encodedRegionName)
getLastSequenceId 在接口中 LastSequenceIdencodedRegionName - Encoded region nameprotected void closeAllRegions(boolean abort)
public InfoServer getInfoServer()
public boolean isStopped()
public boolean isStopping()
isStopping 在接口中 RegionServerServicespublic Map<String,Region> getRecoveringRegions()
getRecoveringRegions 在接口中 RegionServerServicespublic org.apache.hadoop.conf.Configuration getConfiguration()
ServergetConfiguration 在接口中 Serverpublic int getNumberOfOnlineRegions()
public Collection<Region> getOnlineRegionsLocalContext()
public void addToOnlineRegions(Region region)
OnlineRegionsaddToOnlineRegions 在接口中 OnlineRegionspublic long getStartcode()
public FlushRequester getFlushRequester()
getFlushRequester 在接口中 RegionServerServicespublic Leases getLeases()
getLeases 在接口中 RegionServerServicesprotected org.apache.hadoop.fs.Path getRootDir()
public org.apache.hadoop.fs.FileSystem getFileSystem()
getFileSystem 在接口中 RegionServerServicesprotected org.apache.hadoop.fs.Path getWALRootDir()
protected org.apache.hadoop.fs.FileSystem getWALFileSystem()
public int getThreadWakeFrequency()
public ZooKeeperWatcher getZooKeeper()
ServergetZooKeeper 在接口中 Serverpublic BaseCoordinatedStateManager getCoordinatedStateManager()
ServergetCoordinatedStateManager 在接口中 Serverpublic ServerName getServerName()
getServerName 在接口中 Serverpublic CompactionRequestor getCompactionRequester()
getCompactionRequester 在接口中 RegionServerServicesCompactionRequestor or null.public RegionServerCoprocessorHost getRegionServerCoprocessorHost()
public ConcurrentMap<byte[],Boolean> getRegionsInTransitionInRS()
RegionServerServicesgetRegionsInTransitionInRS 在接口中 RegionServerServicespublic ExecutorService getExecutorService()
getExecutorService 在接口中 RegionServerServicespublic ChoreService getChoreService()
getChoreService 在接口中 ServerChoreService instance for this serverpublic RegionServerQuotaManager getRegionServerQuotaManager()
getRegionServerQuotaManager 在接口中 RegionServerServicesRegionServerQuotaManagerpublic static HRegionServer constructRegionServer(Class<? extends HRegionServer> regionServerClass, org.apache.hadoop.conf.Configuration conf2, CoordinatedStateManager cp)
regionServerClass - conf2 - public static void main(String[] args) throws Exception
ExceptionHRegionServerCommandLinepublic List<Region> getOnlineRegions(TableName tableName)
hbase:meta.
Only returns online regions. If a region on this table has been
closed during a disable, etc., it will not be included in the returned list.
So, the returned list may not necessarily be ALL regions in this table, its
all the ONLINE regions in the table.getOnlineRegions 在接口中 OnlineRegionstableName - tableNamepublic Set<TableName> getOnlineTables()
getOnlineTables 在接口中 RegionServerServicespublic String[] getRegionServerCoprocessors()
public List<Region> getOnlineRegions()
OnlineRegionsgetOnlineRegions 在接口中 OnlineRegionsprotected boolean closeRegion(String encodedName, boolean abort, CloseRegionCoordination.CloseRegionDetails crd, ServerName sn) throws NotServingRegionException, RegionAlreadyInTransitionException
If an opening was in progress, this method will cancel it, but will not start a new close. The coprocessors are not called in this case. A NotServingRegionException exception is thrown.
If a close was in progress, this new request will be ignored, and an exception thrown.
encodedName - Region to closeabort - True if we are abortingcrd - details about closing region coordination-coordinated taskNotServingRegionException - if the region is not onlineRegionAlreadyInTransitionException - if the region is already closingpublic Region getOnlineRegion(byte[] regionName)
regionName - regionName or null if
named region is not member of the online regions.public InetSocketAddress[] getRegionBlockLocations(String encodedRegionName)
public Region getFromOnlineRegions(String encodedRegionName)
OnlineRegionsRegion instance.
Only works if caller is in same context, in same JVM. Region is not
serializable.getFromOnlineRegions 在接口中 OnlineRegionsencodedRegionName or
null if named region is not member of the online regions.public boolean removeFromOnlineRegions(Region r, ServerName destination)
OnlineRegionsremoveFromOnlineRegions 在接口中 OnlineRegionsr - Region to remove.destination - Destination, if any, null otherwise.protected Region getRegion(byte[] regionName) throws NotServingRegionException
regionName - Name of online Region to returnRegion for regionNameNotServingRegionExceptionpublic Region getRegionByEncodedName(String encodedRegionName) throws NotServingRegionException
protected Region getRegionByEncodedName(byte[] regionName, String encodedRegionName) throws NotServingRegionException
protected IOException convertThrowableToIOE(Throwable t, String msg)
public boolean checkFileSystem()
public void updateRegionFavoredNodesMapping(String encodedRegionName, List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName> favoredNodes)
FavoredNodesForRegionpublic InetSocketAddress[] getFavoredNodesForRegion(String encodedRegionName)
regionFavoredNodesMap on why it is InetSocketAddress[]getFavoredNodesForRegion 在接口中 FavoredNodesForRegionencodedRegionName - public ServerNonceManager getNonceManager()
RegionServerServicesgetNonceManager 在接口中 RegionServerServicesprotected void addToMovedRegions(String encodedName, ServerName destination, long closeSeqNum)
protected void cleanMovedRegions()
protected int movedRegionCleanerPeriod()
public CompactSplitThread getCompactSplitThread()
CompactSplitThread for the serverspublic org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResponse execRegionServerService(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceRequest serviceRequest) throws com.google.protobuf.ServiceException
com.google.protobuf.ServiceExceptionpublic CacheConfig getCacheConfig()
protected ConfigurationManager getConfigurationManager()
public TableDescriptors getTableDescriptors()
public void updateConfiguration()
public HeapMemoryManager getHeapMemoryManager()
getHeapMemoryManager 在接口中 RegionServerServicespublic double getCompactionPressure()
getCompactionPressure 在接口中 RegionServerServicesStore.getCompactionPressure()public boolean walRollRequestFinished()
public ThroughputController getFlushThroughputController()
getFlushThroughputController 在接口中 RegionServerServicespublic double getFlushPressure()
getFlushPressure 在接口中 RegionServerServicespublic void onConfigurationChange(org.apache.hadoop.conf.Configuration newConf)
ConfigurationObserverConfigurationManager
object when the Configuration object is reloaded from disk.onConfigurationChange 在接口中 ConfigurationObserverpublic MetricsRegionServer getMetrics()
getMetrics 在接口中 RegionServerServicespublic void unassign(byte[] regionName)
throws IOException
RegionServerServicesSee HBASE-17712 for more details.
unassign 在接口中 RegionServerServicesIOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.