public interface RegionServerServices
HRegionServer
Modifier and Type | Method and Description |
---|---|
void |
addToOnlineRegions(HRegion r)
Add to online regions.
|
boolean |
containsKeyInRegionsInTransition(HRegionInfo hri) |
CompactionRequestor |
getCompactionRequester() |
org.apache.hadoop.fs.FileSystem |
getFileSystem() |
FlushRequester |
getFlushRequester() |
HRegion |
getFromOnlineRegions(String encodedRegionName)
Return
HRegion instance. |
Leases |
getLeases() |
List<HRegion> |
getOnlineRegions(byte[] tableName)
Get all online regions of a table in this RS.
|
RegionServerAccounting |
getRegionServerAccounting() |
RpcServer |
getRpcServer()
Returns a reference to the region server's RPC server
|
HLog |
getWAL() |
HLog |
getWAL(HRegionInfo regionInfo) |
boolean |
isStopping() |
void |
postOpenDeployTasks(HRegion r,
CatalogTracker ct,
boolean daughter)
Tasks to perform after region open to complete deploy of region on
regionserver
|
boolean |
removeFromOnlineRegions(String encodedRegionName)
This method removes HRegion corresponding to hri from the Map of onlineRegions.
|
boolean |
removeFromRegionsInTransition(HRegionInfo hri)
Remove passed
hri from the internal list of regions in transition on this
regionserver. |
getCatalogTracker, getConfiguration, getServerName, getZooKeeper
boolean isStopping()
HLog getWAL(HRegionInfo regionInfo) throws IOException
IOException
HLog getWAL() throws IOException
IOException
CompactionRequestor getCompactionRequester()
CompactionRequestor
or null.FlushRequester getFlushRequester()
FlushRequester
or null.RegionServerAccounting getRegionServerAccounting()
void postOpenDeployTasks(HRegion r, CatalogTracker ct, boolean daughter) throws org.apache.zookeeper.KeeperException, IOException
r
- Region to open.ct
- Instance of CatalogTracker
daughter
- True if this is daughter of a splitorg.apache.zookeeper.KeeperException
IOException
RpcServer getRpcServer()
boolean removeFromRegionsInTransition(HRegionInfo hri)
hri
from the internal list of regions in transition on this
regionserver.hri
- Region to remove.boolean containsKeyInRegionsInTransition(HRegionInfo hri)
hri
- hri
.org.apache.hadoop.fs.FileSystem getFileSystem()
Leases getLeases()
void addToOnlineRegions(HRegion r)
r
- boolean removeFromOnlineRegions(String encodedRegionName)
encodedRegionName
- 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(byte[] tableName) throws IOException
tableName
- IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.