@InterfaceAudience.LimitedPrivate(value="Tools") public class HRegionServer extends HasThread implements RegionServerServices, LastSequenceId, ConfigurationObserver
Modifier and Type | Class and Description |
---|---|
protected static class |
HRegionServer.MovedRegionsCleaner
Creates a Chore thread to clean the moved region cache.
|
RegionServerServices.PostOpenDeployContext, RegionServerServices.RegionStateTransitionContext
Modifier and Type | Field and Description |
---|---|
static String |
ABORT_TIMEOUT |
static String |
ABORT_TIMEOUT_TASK |
protected CacheConfig |
cacheConfig |
protected org.apache.hadoop.hbase.regionserver.MemStoreFlusher |
cacheFlusher |
protected ClusterConnection |
clusterConnection
Cluster connection to be shared by services.
|
protected String |
clusterId
Unique identifier for the cluster we are a part of.
|
protected ClusterStatusTracker |
clusterStatusTracker |
CompactSplit |
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 CoordinatedStateManager |
csm |
protected ExecutorService |
executorService |
protected HFileSystem |
fs |
protected boolean |
fsOk |
protected FileSystemUtilizationChore |
fsUtilizationChore |
protected HeapMemoryManager |
hMemManager |
protected InfoServer |
infoServer |
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,HRegion> |
onlineRegions
Map of regions currently being served by this region server.
|
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 SecureBulkLoadManager |
secureBulkLoadManager |
protected ServerName |
serverName
The server name the Master sees us as.
|
protected Sleeper |
sleeper |
protected long |
startcode
This servers startcode.
|
protected TableDescriptors |
tableDescriptors
Go here to get table descriptors.
|
static boolean |
TEST_SKIP_REPORTING_TRANSITION
For testing only! Set to true to skip notifying region assignment to master .
|
protected int |
threadWakeFrequency |
protected String |
useThisHostnameInstead |
protected WALFactory |
walFactory |
protected HFileSystem |
walFs |
protected LogRoller |
walRoller |
protected ZKWatcher |
zooKeeper |
Constructor and Description |
---|
HRegionServer(org.apache.hadoop.conf.Configuration conf)
Starts a HRegionServer at the default location
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
addRegion(HRegion region)
Add to online regions.
|
protected void |
addToMovedRegions(String encodedName,
ServerName destination,
long closeSeqNum) |
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.
|
CacheEvictionStats |
clearRegionBlockCache(Region region) |
protected void |
closeAllRegions(boolean abort)
Closes all regions.
|
protected boolean |
closeAndOfflineRegionForSplitOrMerge(List<String> regionEncodedName)
Close and offline the region for split or merge
|
protected boolean |
closeRegion(String encodedName,
boolean abort,
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)
Utility for constructing an instance of the passed HRegionServer class.
|
protected IOException |
convertThrowableToIOE(Throwable t,
String msg) |
protected ClusterConnection |
createClusterConnection()
Create a 'smarter' Connection, one that is capable of by-passing RPC if the request is to
the local server; i.e.
|
Connection |
createConnection(org.apache.hadoop.conf.Configuration conf) |
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() |
ClientProtos.CoprocessorServiceResponse |
execRegionServerService(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller,
ClientProtos.CoprocessorServiceRequest serviceRequest) |
void |
executeProcedure(long procId,
RSProcedureCallable callable) |
CacheConfig |
getCacheConfig() |
ChoreService |
getChoreService() |
ClusterConnection |
getClusterConnection()
Returns a reference to the servers' cluster connection.
|
String |
getClusterId() |
double |
getCompactionPressure() |
CompactionRequester |
getCompactionRequestor() |
CompactSplit |
getCompactSplitThread() |
org.apache.hadoop.conf.Configuration |
getConfiguration()
Gets the configuration object for this server.
|
protected ConfigurationManager |
getConfigurationManager() |
Connection |
getConnection()
Returns a reference to the servers' connection.
|
CoordinatedStateManager |
getCoordinatedStateManager()
Get CoordinatedStateManager instance for this server.
|
protected Class<? extends javax.servlet.http.HttpServlet> |
getDumpServlet() |
NettyEventLoopGroupConfig |
getEventLoopGroupConfig() |
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() |
protected TableDescriptors |
getFsTableDescriptors() |
HeapMemoryManager |
getHeapMemoryManager() |
InfoServer |
getInfoServer() |
ClusterStatusProtos.RegionStoreSequenceIds |
getLastSequenceId(byte[] encodedRegionName) |
Leases |
getLeases() |
MasterAddressTracker |
getMasterAddressTracker() |
MetaTableLocator |
getMetaTableLocator()
Returns instance of
MetaTableLocator
running inside this server. |
protected Function<TableDescriptorBuilder,TableDescriptorBuilder> |
getMetaTableObserver() |
MetricsRegionServer |
getMetrics() |
protected RegionInfo[] |
getMostLoadedRegions()
Get the top N most loaded regions this server is serving so we can tell the
master which regions it can reallocate if we're overloaded.
|
ServerNonceManager |
getNonceManager()
Only required for "old" log replay; if it's removed, remove this.
|
int |
getNumberOfOnlineRegions() |
HRegion |
getOnlineRegion(byte[] regionName) |
Collection<HRegion> |
getOnlineRegionsLocalContext()
For tests, web ui and metrics.
|
Set<TableName> |
getOnlineTables()
Gets the online tables in this RS.
|
protected String |
getProcessName() |
protected HRegion |
getRegion(byte[] regionName)
Protected Utility method for safely obtaining an HRegion handle.
|
HRegion |
getRegion(String encodedRegionName)
Return
Region instance. |
InetSocketAddress[] |
getRegionBlockLocations(String encodedRegionName) |
protected HRegion |
getRegionByEncodedName(byte[] regionName,
String encodedRegionName) |
HRegion |
getRegionByEncodedName(String encodedRegionName) |
List<HRegion> |
getRegions()
Get all online regions in this RS.
|
List<HRegion> |
getRegions(TableName tableName)
Gets the online regions of the specified table.
|
RegionServerAccounting |
getRegionServerAccounting() |
RegionServerCoprocessorHost |
getRegionServerCoprocessorHost() |
String[] |
getRegionServerCoprocessors() |
MetricsRegionServer |
getRegionServerMetrics() |
RegionServerRpcQuotaManager |
getRegionServerRpcQuotaManager() |
RegionServerSpaceQuotaManager |
getRegionServerSpaceQuotaManager() |
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() |
SecureBulkLoadManager |
getSecureBulkLoadManager() |
ServerName |
getServerName() |
long |
getStartcode() |
TableDescriptors |
getTableDescriptors() |
int |
getThreadWakeFrequency()
Interval at which threads should run
|
protected String |
getUseThisHostnameInstead(org.apache.hadoop.conf.Configuration conf) |
WAL |
getWAL(RegionInfo regionInfo) |
org.apache.hadoop.fs.FileSystem |
getWALFileSystem() |
Map<String,ReplicationStatus> |
getWalGroupsReplicationStatus() |
LogRoller |
getWalRoller() |
org.apache.hadoop.fs.Path |
getWALRootDir() |
List<WAL> |
getWALs() |
ZKWatcher |
getZooKeeper()
Gets the ZooKeeper instance for this server.
|
protected void |
handleReportForDutyResponse(RegionServerStatusProtos.RegionServerStartupResponse c) |
protected void |
initializeMemStoreChunkCreator() |
boolean |
isAborted()
Check if the server or client was aborted.
|
boolean |
isClusterUp() |
boolean |
isOnline()
Report the status of the server.
|
boolean |
isShutDown() |
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(RegionServerServices.PostOpenDeployContext context)
Tasks to perform after region open to complete deploy of region on
regionserver
|
EntityLock |
regionLock(List<RegionInfo> regionInfos,
String description,
Abortable abort)
Master based locks on namespaces/tables/regions.
|
boolean |
registerService(com.google.protobuf.Service instance)
Registers a new protocol buffer
Service subclass as a coprocessor endpoint to be
available for handling |
void |
remoteProcedureComplete(long procId,
Throwable error) |
boolean |
removeRegion(HRegion r,
ServerName destination)
Removes the given Region from the list of onlineRegions.
|
boolean |
reportRegionSizesForQuotas(Map<RegionInfo,Long> onlineRegionSizes)
Reports the given map of Regions and their size on the filesystem to the active Master.
|
boolean |
reportRegionStateTransition(RegionServerServices.RegionStateTransitionContext context)
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 |
setAbortRequested() |
protected void |
setupClusterConnection()
Setup our cluster connection if not already initialized.
|
void |
stop(String msg)
Stop this service.
|
void |
stop(String msg,
boolean force,
User user)
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<HBaseProtos.ServerName> favoredNodes)
Used to update the favored nodes mapping when required.
|
protected void |
waitForMasterActive()
Wait for an active Master.
|
void |
waitForServerOnline() |
boolean |
walRollRequestFinished()
For testing
|
getName, getThread, interrupt, isAlive, isInterrupted, join, join, join, setDaemon, setName, setPriority, setUncaughtExceptionHandler, start
public static boolean TEST_SKIP_REPORTING_TRANSITION
protected final ConcurrentMap<byte[],Boolean> regionsInTransitionInRS
protected org.apache.hadoop.hbase.regionserver.MemStoreFlusher cacheFlusher
protected HeapMemoryManager hMemManager
protected ClusterConnection clusterConnection
protected MetaTableLocator metaTableLocator
protected TableDescriptors tableDescriptors
protected ReplicationSourceService replicationSourceHandler
protected ReplicationSinkService replicationSinkHandler
public CompactSplit compactSplitThread
protected final Map<String,HRegion> onlineRegions
protected final Map<String,InetSocketAddress[]> regionFavoredNodesMap
protected Leases leases
protected ExecutorService executorService
protected volatile boolean fsOk
protected HFileSystem fs
protected HFileSystem walFs
public static final String ABORT_TIMEOUT
public static final String ABORT_TIMEOUT_TASK
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
public static final String REGIONSERVER
protected volatile WALFactory walFactory
protected LogRoller walRoller
protected final ZKWatcher zooKeeper
protected final 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 String clusterId
protected final RSRpcServices rpcServices
protected CoordinatedStateManager csm
protected final ConfigurationManager configurationManager
protected SecureBulkLoadManager secureBulkLoadManager
protected FileSystemUtilizationChore fsUtilizationChore
public HRegionServer(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
protected String getUseThisHostnameInstead(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
protected TableDescriptors getFsTableDescriptors() throws IOException
IOException
protected Function<TableDescriptorBuilder,TableDescriptorBuilder> getMetaTableObserver()
protected void login(UserProvider user, String host) throws IOException
IOException
protected void waitForMasterActive()
protected String getProcessName()
protected boolean canCreateBaseZNode()
protected boolean canUpdateTableDescriptor()
protected RSRpcServices createRpcServices() throws IOException
IOException
protected void configureInfoServer()
protected Class<? extends javax.servlet.http.HttpServlet> getDumpServlet()
public boolean registerService(com.google.protobuf.Service instance)
RegionServerServices
Service
subclass as a coprocessor endpoint to be
available for handlingregisterService
in interface RegionServerServices
instance
- the Service
subclass instance to expose as a coprocessor endpointtrue
if the registration was successful, false
protected ClusterConnection createClusterConnection() throws IOException
IOException
public String getClusterId()
protected void setupClusterConnection() throws IOException
IOException
public boolean isClusterUp()
isClusterUp
in interface RegionServerServices
public void run()
protected void tryRegionServerReport(long reportStartTime, long reportEndTime) throws IOException
IOException
public boolean reportRegionSizesForQuotas(Map<RegionInfo,Long> onlineRegionSizes)
onlineRegionSizes
- A map of region info to size in bytesprotected void handleReportForDutyResponse(RegionServerStatusProtos.RegionServerStartupResponse c) throws IOException
IOException
protected void initializeMemStoreChunkCreator()
public RegionServerAccounting getRegionServerAccounting()
getRegionServerAccounting
in interface RegionServerServices
public ClusterStatusProtos.RegionLoad createRegionLoad(String encodedRegionName) throws IOException
encodedRegionName
- IOException
public boolean isOnline()
public MetricsRegionServer getRegionServerMetrics()
public MasterAddressTracker getMasterAddressTracker()
public List<WAL> getWALs() throws IOException
getWALs
in interface RegionServerServices
IOException
public WAL getWAL(RegionInfo regionInfo) throws IOException
getWAL
in interface RegionServerServices
IOException
public LogRoller getWalRoller()
public Connection getConnection()
Server
getConnection
in interface Server
public ClusterConnection getClusterConnection()
Server
Server.getConnection()
.
Important note: this method returns a reference to Connection which is managed
by Server itself, so callers must NOT attempt to close connection obtained.getClusterConnection
in interface Server
public MetaTableLocator getMetaTableLocator()
Server
MetaTableLocator
running inside this server. This MetaServerLocator is started and stopped by server, clients
shouldn't manage it's lifecycle.getMetaTableLocator
in interface Server
MetaTableLocator
associated with this server.public void stop(String msg)
Stoppable
public void stop(String msg, boolean force, User user)
msg
- Status messageforce
- True if this is a regionserver abortuser
- The user executing the stop request, or null if no user is associatedpublic void waitForServerOnline()
public void postOpenDeployTasks(RegionServerServices.PostOpenDeployContext context) throws org.apache.zookeeper.KeeperException, IOException
RegionServerServices
postOpenDeployTasks
in interface RegionServerServices
context
- the contextorg.apache.zookeeper.KeeperException
IOException
public boolean reportRegionStateTransition(RegionServerServices.RegionStateTransitionContext context)
RegionServerServices
reportRegionStateTransition
in interface RegionServerServices
public RpcServerInterface getRpcServer()
RegionServerServices
getRpcServer
in interface RegionServerServices
public RSRpcServices getRSRpcServices()
public void abort(String reason, Throwable cause)
protected final void setAbortRequested()
public void abort(String reason)
abort(String, Throwable)
public boolean isAborted()
Abortable
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 ClusterStatusProtos.RegionStoreSequenceIds getLastSequenceId(byte[] encodedRegionName)
getLastSequenceId
in interface LastSequenceId
encodedRegionName
- Encoded region nameprotected void closeAllRegions(boolean abort)
public InfoServer getInfoServer()
public boolean isStopped()
public boolean isStopping()
isStopping
in interface Server
public org.apache.hadoop.conf.Configuration getConfiguration()
Server
getConfiguration
in interface Server
public int getNumberOfOnlineRegions()
public Collection<HRegion> getOnlineRegionsLocalContext()
public void addRegion(HRegion region)
MutableOnlineRegions
addRegion
in interface MutableOnlineRegions
public long getStartcode()
public FlushRequester getFlushRequester()
getFlushRequester
in interface RegionServerServices
public CompactionRequester getCompactionRequestor()
getCompactionRequestor
in interface RegionServerServices
CompactionRequester
or null. Usually it will not be null
unless during intialization.protected RegionInfo[] getMostLoadedRegions()
public Leases getLeases()
getLeases
in interface RegionServerServices
protected org.apache.hadoop.fs.Path getRootDir()
public org.apache.hadoop.fs.FileSystem getFileSystem()
getFileSystem
in interface Server
public org.apache.hadoop.fs.Path getWALRootDir()
public org.apache.hadoop.fs.FileSystem getWALFileSystem()
public int getThreadWakeFrequency()
public ZKWatcher getZooKeeper()
Server
getZooKeeper
in interface Server
public CoordinatedStateManager getCoordinatedStateManager()
Server
getCoordinatedStateManager
in interface Server
public ServerName getServerName()
getServerName
in interface Server
public RegionServerCoprocessorHost getRegionServerCoprocessorHost()
public ConcurrentMap<byte[],Boolean> getRegionsInTransitionInRS()
RegionServerServices
getRegionsInTransitionInRS
in interface RegionServerServices
public ExecutorService getExecutorService()
getExecutorService
in interface RegionServerServices
public ChoreService getChoreService()
getChoreService
in interface Server
ChoreService
instance for this serverpublic RegionServerRpcQuotaManager getRegionServerRpcQuotaManager()
getRegionServerRpcQuotaManager
in interface RegionServerServices
RegionServerRpcQuotaManager
public Map<String,ReplicationStatus> getWalGroupsReplicationStatus()
public static HRegionServer constructRegionServer(Class<? extends HRegionServer> regionServerClass, org.apache.hadoop.conf.Configuration conf2)
regionServerClass
- conf2
- public static void main(String[] args) throws Exception
Exception
HRegionServerCommandLine
public List<HRegion> getRegions(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.getRegions
in interface OnlineRegions
tableName
- tableName
public List<HRegion> getRegions()
OnlineRegions
getRegions
in interface OnlineRegions
public Set<TableName> getOnlineTables()
public String[] getRegionServerCoprocessors()
protected boolean closeRegion(String encodedName, boolean abort, ServerName sn) throws NotServingRegionException
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 abortingNotServingRegionException
- if the region is not onlineprotected boolean closeAndOfflineRegionForSplitOrMerge(List<String> regionEncodedName) throws IOException
regionEncodedName
- the name of the region(s) to closeIOException
public HRegion getOnlineRegion(byte[] regionName)
regionName
or null if
named region is not member of the online regions.public InetSocketAddress[] getRegionBlockLocations(String encodedRegionName)
public HRegion getRegion(String encodedRegionName)
OnlineRegions
Region
instance.
Only works if caller is in same context, in same JVM. Region is not
serializable.getRegion
in interface OnlineRegions
encodedRegionName
or
null if named region is not member of the online regions.public boolean removeRegion(HRegion r, ServerName destination)
MutableOnlineRegions
removeRegion
in interface MutableOnlineRegions
r
- Region to remove.destination
- Destination, if any, null otherwise.protected HRegion getRegion(byte[] regionName) throws NotServingRegionException
regionName
- Name of online HRegion
to returnHRegion
for regionName
NotServingRegionException
public HRegion getRegionByEncodedName(String encodedRegionName) throws NotServingRegionException
NotServingRegionException
protected HRegion getRegionByEncodedName(byte[] regionName, String encodedRegionName) throws NotServingRegionException
NotServingRegionException
protected IOException convertThrowableToIOE(Throwable t, String msg)
public boolean checkFileSystem()
public void updateRegionFavoredNodesMapping(String encodedRegionName, List<HBaseProtos.ServerName> favoredNodes)
FavoredNodesForRegion
updateRegionFavoredNodesMapping
in interface FavoredNodesForRegion
public InetSocketAddress[] getFavoredNodesForRegion(String encodedRegionName)
regionFavoredNodesMap
on why it is InetSocketAddress[]getFavoredNodesForRegion
in interface FavoredNodesForRegion
encodedRegionName
- public ServerNonceManager getNonceManager()
RegionServerServices
getNonceManager
in interface RegionServerServices
protected void addToMovedRegions(String encodedName, ServerName destination, long closeSeqNum)
protected void cleanMovedRegions()
protected int movedRegionCleanerPeriod()
public CompactSplit getCompactSplitThread()
CompactSplit
for the serverspublic ClientProtos.CoprocessorServiceResponse execRegionServerService(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, ClientProtos.CoprocessorServiceRequest serviceRequest) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
public CacheConfig getCacheConfig()
protected ConfigurationManager getConfigurationManager()
public TableDescriptors getTableDescriptors()
public void updateConfiguration()
public CacheEvictionStats clearRegionBlockCache(Region region)
public double getCompactionPressure()
getCompactionPressure
in interface RegionServerServices
Store.getCompactionPressure()
public HeapMemoryManager getHeapMemoryManager()
getHeapMemoryManager
in interface RegionServerServices
public boolean walRollRequestFinished()
public ThroughputController getFlushThroughputController()
getFlushThroughputController
in interface RegionServerServices
public double getFlushPressure()
getFlushPressure
in interface RegionServerServices
public void onConfigurationChange(org.apache.hadoop.conf.Configuration newConf)
ConfigurationObserver
ConfigurationManager
object when the Configuration
object is reloaded from disk.onConfigurationChange
in interface ConfigurationObserver
public MetricsRegionServer getMetrics()
getMetrics
in interface RegionServerServices
public SecureBulkLoadManager getSecureBulkLoadManager()
getSecureBulkLoadManager
in interface RegionServerServices
SecureBulkLoadManager
public EntityLock regionLock(List<RegionInfo> regionInfos, String description, Abortable abort) throws IOException
RegionServerServices
regionLock
in interface RegionServerServices
IOException
public void unassign(byte[] regionName) throws IOException
RegionServerServices
See HBASE-17712 for more details.
unassign
in interface RegionServerServices
IOException
public RegionServerSpaceQuotaManager getRegionServerSpaceQuotaManager()
getRegionServerSpaceQuotaManager
in interface RegionServerServices
RegionServerSpaceQuotaManager
public NettyEventLoopGroupConfig getEventLoopGroupConfig()
public Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
createConnection
in interface Server
IOException
public void executeProcedure(long procId, RSProcedureCallable callable)
public void remoteProcedureComplete(long procId, Throwable error)
public boolean isShutDown()
Copyright © 2007–2019 Cloudera. All rights reserved.