@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 |
---|---|
double |
getCompactionPressure() |
CompactionRequester |
getCompactionRequestor() |
ExecutorService |
getExecutorService() |
double |
getFlushPressure()
Deprecated.
|
FlushRequester |
getFlushRequester() |
ThroughputController |
getFlushThroughputController() |
HeapMemoryManager |
getHeapMemoryManager() |
Leases |
getLeases() |
MetricsRegionServer |
getMetrics() |
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() |
WAL |
getWAL(RegionInfo regionInfo) |
List<WAL> |
getWALs() |
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 |
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, getMetaTableLocator, 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 org.apache.zookeeper.KeeperException, IOException
context
- the contextorg.apache.zookeeper.KeeperException
IOException
boolean reportRegionStateTransition(RegionServerServices.RegionStateTransitionContext context)
RpcServerInterface getRpcServer()
ConcurrentMap<byte[],Boolean> getRegionsInTransitionInRS()
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()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.