Interface FavoredNodesForRegion
- All Known Subinterfaces:
RegionServerServices
- All Known Implementing Classes:
HMaster
,HMasterCommandLine.LocalHMaster
,HRegionServer
Abstraction that allows different modules in RegionServer to update/get the favored nodes
information for regions.
-
Method Summary
Modifier and TypeMethodDescriptiongetFavoredNodesForRegion
(String encodedRegionName) Get the favored nodes mapping for this region.void
updateRegionFavoredNodesMapping
(String encodedRegionName, List<org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName> favoredNodes) Used to update the favored nodes mapping when required.
-
Method Details
-
updateRegionFavoredNodesMapping
void updateRegionFavoredNodesMapping(String encodedRegionName, List<org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName> favoredNodes) Used to update the favored nodes mapping when required. -
getFavoredNodesForRegion
Get the favored nodes mapping for this region. Used when the HDFS create API is invoked to pass in favored nodes hints for new region files.- Returns:
- array containing the favored nodes' InetSocketAddresses
-