|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Private public interface RegionServerServices
Services provided by HRegionServer
Method Summary | |
---|---|
void |
addToOnlineRegions(HRegion r)
Add to online regions. |
CatalogTracker |
getCatalogTracker()
|
double |
getCompactionPressure()
|
CompactionRequestor |
getCompactionRequester()
|
ExecutorService |
getExecutorService()
|
InetSocketAddress[] |
getFavoredNodesForRegion(String encodedRegionName)
Get the favored nodes mapping for this region. |
org.apache.hadoop.fs.FileSystem |
getFileSystem()
|
FlushRequester |
getFlushRequester()
|
HRegion |
getFromOnlineRegions(String encodedRegionName)
Return HRegion instance. |
HeapMemoryManager |
getHeapMemoryManager()
|
Leases |
getLeases()
|
ServerNonceManager |
getNonceManager()
Only required for "old" log replay; if it's removed, remove this. |
List<HRegion> |
getOnlineRegions(TableName tableName)
Get all online regions of a table in this RS. |
Map<String,HRegion> |
getRecoveringRegions()
|
RegionServerAccounting |
getRegionServerAccounting()
|
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 |
TableLockManager |
getTableLockManager()
|
HLog |
getWAL(HRegionInfo regionInfo)
|
boolean |
isStopping()
|
void |
postOpenDeployTasks(HRegion r,
CatalogTracker ct)
Tasks to perform after region open to complete deploy of region on regionserver |
boolean |
registerService(com.google.protobuf.Service service)
Registers a new protocol buffer Service subclass as a coprocessor endpoint to
be available for handling |
boolean |
removeFromOnlineRegions(HRegion r,
ServerName destination)
This method removes HRegion corresponding to hri from the Map of onlineRegions. |
boolean |
reportRegionStateTransition(RegionServerStatusProtos.RegionStateTransition.TransitionCode code,
HRegionInfo... hris)
Notify master that a handler requests to change a region state |
boolean |
reportRegionStateTransition(RegionServerStatusProtos.RegionStateTransition.TransitionCode code,
long openSeqNum,
HRegionInfo... hris)
Notify master that a handler requests to change a region state |
void |
updateRegionFavoredNodesMapping(String encodedRegionName,
List<HBaseProtos.ServerName> favoredNodes)
Used to update the favored nodes mapping when required. |
Methods inherited from interface org.apache.hadoop.hbase.Server |
---|
getConfiguration, getServerName, getZooKeeper |
Methods inherited from interface org.apache.hadoop.hbase.Abortable |
---|
abort, isAborted |
Methods inherited from interface org.apache.hadoop.hbase.Stoppable |
---|
isStopped, stop |
Methods inherited from interface org.apache.hadoop.hbase.ipc.PriorityFunction |
---|
getPriority |
Method Detail |
---|
boolean isStopping()
HLog getWAL(HRegionInfo regionInfo) throws IOException
IOException
CompactionRequestor getCompactionRequester()
CompactionRequestor
or null.FlushRequester getFlushRequester()
FlushRequester
or null.RegionServerAccounting getRegionServerAccounting()
TableLockManager getTableLockManager()
TableLockManager
void postOpenDeployTasks(HRegion r, CatalogTracker ct) throws org.apache.zookeeper.KeeperException, IOException
r
- Region to open.ct
- Instance of CatalogTracker
org.apache.zookeeper.KeeperException
IOException
boolean reportRegionStateTransition(RegionServerStatusProtos.RegionStateTransition.TransitionCode code, long openSeqNum, HRegionInfo... hris)
boolean reportRegionStateTransition(RegionServerStatusProtos.RegionStateTransition.TransitionCode code, HRegionInfo... hris)
RpcServerInterface getRpcServer()
ConcurrentMap<byte[],Boolean> getRegionsInTransitionInRS()
org.apache.hadoop.fs.FileSystem getFileSystem()
Leases getLeases()
ExecutorService getExecutorService()
CatalogTracker getCatalogTracker()
Map<String,HRegion> getRecoveringRegions()
ServerNonceManager getNonceManager()
boolean registerService(com.google.protobuf.Service service)
Service
subclass as a coprocessor endpoint to
be available for handling
instance
- the Service
subclass instance to expose as a coprocessor endpoint
true
if the registration was successful, false
HeapMemoryManager getHeapMemoryManager()
double getCompactionPressure()
Store.getCompactionPressure()
void addToOnlineRegions(HRegion r)
r
- boolean removeFromOnlineRegions(HRegion r, ServerName destination)
r
- Region to remove.destination
- Destination, if any, null otherwise.
HRegion getFromOnlineRegions(String encodedRegionName)
HRegion
instance.
Only works if caller is in same context, in same JVM. HRegion is not
serializable.
encodedRegionName
-
encodedRegionName
or
null if named region is not member of the online regions.List<HRegion> getOnlineRegions(TableName tableName) throws IOException
tableName
-
IOException
void updateRegionFavoredNodesMapping(String encodedRegionName, List<HBaseProtos.ServerName> favoredNodes)
encodedRegionName
- favoredNodes
- InetSocketAddress[] getFavoredNodesForRegion(String encodedRegionName)
encodedRegionName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |