@InterfaceAudience.Private public interface RegionServerServices extends Server, MutableOnlineRegions, FavoredNodesForRegion
HRegionServer. For use internally only. Passed
to Managers, Services and Chores so can pass less-than-a full-on HRegionServer at test-time. Be
judicious adding API. Changes cause ripples through the code base.| Modifier and Type | Interface and Description |
|---|---|
static class |
RegionServerServices.PostOpenDeployContext
Context for postOpenDeployTasks().
|
static class |
RegionServerServices.RegionStateTransitionContext |
| Modifier and Type | Method and Description |
|---|---|
AccessChecker |
getAccessChecker()
Returns the
AccessChecker |
Optional<BlockCache> |
getBlockCache()
Returns The block cache instance.
|
double |
getCompactionPressure() |
CompactionRequester |
getCompactionRequestor() |
ExecutorService |
getExecutorService()
Returns hbase executor service
|
double |
getFlushPressure()
Deprecated.
|
FlushRequester |
getFlushRequester() |
ThroughputController |
getFlushThroughputController()
Returns the controller to avoid flush too fast
|
HeapMemoryManager |
getHeapMemoryManager()
Returns heap memory manager instance
|
LeaseManager |
getLeaseManager()
Returns The RegionServer's "Leases" service
|
MetricsRegionServer |
getMetrics()
Returns the metrics tracker for the region server
|
Optional<MobFileCache> |
getMobFileCache()
Returns The cache for mob files.
|
ServerNonceManager |
getNonceManager()
Only required for "old" log replay; if it's removed, remove this.
|
RegionServerAccounting |
getRegionServerAccounting()
Returns the RegionServerAccounting for this Region Server
|
RegionServerRpcQuotaManager |
getRegionServerRpcQuotaManager()
Returns RegionServer's instance of
RegionServerRpcQuotaManager |
RegionServerSpaceQuotaManager |
getRegionServerSpaceQuotaManager()
Returns RegionServer's instance of
RegionServerSpaceQuotaManager |
ConcurrentMap<byte[],Boolean> |
getRegionsInTransitionInRS()
Get the regions that are currently being opened or closed in the RS
|
RpcServerInterface |
getRpcServer()
Returns a reference to the region server's RPC server
|
SecureBulkLoadManager |
getSecureBulkLoadManager()
Returns RegionServer's instance of
SecureBulkLoadManager |
TableDescriptors |
getTableDescriptors()
Returns Return table descriptors implementation.
|
WAL |
getWAL(RegionInfo regionInfo)
Returns the WAL for a particular region.
|
List<WAL> |
getWALs()
Returns the List of WALs that are used by this server Doesn't include the meta WAL
|
ZKPermissionWatcher |
getZKPermissionWatcher()
Returns
ZKPermissionWatcher |
boolean |
isClusterUp()
Returns True if cluster is up; false if cluster is not up (we are shutting down).
|
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 service)
Registers a new protocol buffer
Service subclass as a coprocessor endpoint to be
available for handling |
boolean |
reportFileArchivalForQuotas(TableName tableName,
Collection<Map.Entry<String,Long>> archivedFiles)
Reports a collection of files, and their sizes, that belonged to the given
table were
just moved to the archive directory. |
boolean |
reportRegionSizesForQuotas(RegionSizeStore sizeStore)
Reports the provided Region sizes hosted by this RegionServer to the active Master.
|
boolean |
reportRegionStateTransition(RegionServerServices.RegionStateTransitionContext context)
Notify master that a handler requests to change a region state
|
void |
unassign(byte[] regionName)
Unassign the given region from the current regionserver and assign it randomly.
|
createConnection, getChoreService, getClusterConnection, getConfiguration, getConnection, getCoordinatedStateManager, getFileSystem, getServerName, getZooKeeper, isStoppingaddRegion, removeRegiongetRegion, getRegions, getRegionsgetFavoredNodesForRegion, updateRegionFavoredNodesMappingWAL getWAL(RegionInfo regionInfo) throws IOException
IOExceptionList<WAL> getWALs() throws IOException
IOExceptionFlushRequester getFlushRequester()
FlushRequester or null. Usually it will not be null unless
during intialization.CompactionRequester getCompactionRequestor()
CompactionRequester or null. Usually it will not be null
unless during intialization.RegionServerAccounting getRegionServerAccounting()
RegionServerRpcQuotaManager getRegionServerRpcQuotaManager()
RegionServerRpcQuotaManagerSecureBulkLoadManager getSecureBulkLoadManager()
SecureBulkLoadManagerRegionServerSpaceQuotaManager getRegionServerSpaceQuotaManager()
RegionServerSpaceQuotaManagervoid postOpenDeployTasks(RegionServerServices.PostOpenDeployContext context) throws IOException
context - the contextIOExceptionboolean reportRegionStateTransition(RegionServerServices.RegionStateTransitionContext context)
RpcServerInterface getRpcServer()
ConcurrentMap<byte[],Boolean> getRegionsInTransitionInRS()
LeaseManager getLeaseManager()
ExecutorService getExecutorService()
ServerNonceManager getNonceManager()
boolean registerService(com.google.protobuf.Service service)
Service subclass as a coprocessor endpoint to be
available for handlingservice - the Service subclass instance to expose as a coprocessor endpointtrue if the registration was successful, falseHeapMemoryManager getHeapMemoryManager()
double getCompactionPressure()
Store.getCompactionPressure()ThroughputController getFlushThroughputController()
@Deprecated double getFlushPressure()
MetricsRegionServer getMetrics()
EntityLock regionLock(List<RegionInfo> regionInfos, String description, Abortable abort) throws IOException
IOExceptionvoid unassign(byte[] regionName) throws IOException
See HBASE-17712 for more details.
IOExceptionboolean isClusterUp()
TableDescriptors getTableDescriptors()
Optional<BlockCache> getBlockCache()
Optional<MobFileCache> getMobFileCache()
AccessChecker getAccessChecker()
AccessCheckerZKPermissionWatcher getZKPermissionWatcher()
ZKPermissionWatcherboolean reportRegionSizesForQuotas(RegionSizeStore sizeStore)
sizeStore - The sizes for Regions locally hosted.false if reporting should be temporarily paused, true otherwise.boolean reportFileArchivalForQuotas(TableName tableName, Collection<Map.Entry<String,Long>> archivedFiles)
table were
just moved to the archive directory.tableName - The name of the table that files previously belonged toarchivedFiles - Files and their sizes that were moved to archivetrue if the files were successfully reported, false otherwise.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.