@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() |
Optional<BlockCache> |
getBlockCache() |
double |
getCompactionPressure() |
CompactionRequester |
getCompactionRequestor() |
ExecutorService |
getExecutorService() |
double |
getFlushPressure()
Deprecated.
|
FlushRequester |
getFlushRequester() |
ThroughputController |
getFlushThroughputController() |
HeapMemoryManager |
getHeapMemoryManager() |
LeaseManager |
getLeaseManager() |
MetricsRegionServer |
getMetrics() |
Optional<MobFileCache> |
getMobFileCache() |
ServerNonceManager |
getNonceManager()
Only required for "old" log replay; if it's removed, remove this.
|
RegionServerAccounting |
getRegionServerAccounting() |
RegionServerRpcQuotaManager |
getRegionServerRpcQuotaManager() |
RegionServerSpaceQuotaManager |
getRegionServerSpaceQuotaManager() |
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() |
TableDescriptors |
getTableDescriptors() |
WAL |
getWAL(RegionInfo regionInfo) |
List<WAL> |
getWALs() |
ZKPermissionWatcher |
getZKPermissionWatcher() |
boolean |
isClusterUp() |
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, isStopping
addRegion, removeRegion
getRegion, getRegions, getRegions
getFavoredNodesForRegion, updateRegionFavoredNodesMapping
WAL getWAL(RegionInfo regionInfo) throws IOException
IOException
List<WAL> getWALs() throws IOException
IOException
FlushRequester 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()
RegionServerRpcQuotaManager
SecureBulkLoadManager getSecureBulkLoadManager()
SecureBulkLoadManager
RegionServerSpaceQuotaManager getRegionServerSpaceQuotaManager()
RegionServerSpaceQuotaManager
void postOpenDeployTasks(RegionServerServices.PostOpenDeployContext context) throws IOException
context
- the contextIOException
boolean 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, false
HeapMemoryManager getHeapMemoryManager()
double getCompactionPressure()
Store.getCompactionPressure()
ThroughputController getFlushThroughputController()
@Deprecated double getFlushPressure()
MetricsRegionServer getMetrics()
EntityLock regionLock(List<RegionInfo> regionInfos, String description, Abortable abort) throws IOException
IOException
void unassign(byte[] regionName) throws IOException
See HBASE-17712 for more details.
IOException
boolean isClusterUp()
TableDescriptors getTableDescriptors()
Optional<BlockCache> getBlockCache()
Optional<MobFileCache> getMobFileCache()
AccessChecker getAccessChecker()
AccessChecker
ZKPermissionWatcher getZKPermissionWatcher()
ZKPermissionWatcher
boolean 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.