@InterfaceAudience.Private public class AssignmentVerificationReport extends Object
RegionPlacementMaintainer
to print
information for favored nodesConstructor and Description |
---|
AssignmentVerificationReport() |
Modifier and Type | Method and Description |
---|---|
void |
fillUp(TableName tableName,
SnapshotOfRegionAssignmentFromMeta snapshot,
Map<String,Map<String,Float>> regionLocalityMap) |
void |
fillUpDispersion(TableName tableName,
SnapshotOfRegionAssignmentFromMeta snapshot,
FavoredNodesPlan newPlan)
Use this to project the dispersion scores
|
List<Float> |
getDispersionInformation() |
(package private) List<HRegionInfo> |
getNonFavoredAssignedRegions()
Return the regions not assigned to its favored nodes
|
(package private) int |
getNumRegionsOnFavoredNodeByPosition(FavoredNodesPlan.Position position)
Return the number of regions based on the position (primary/secondary/
tertiary) assigned to their favored nodes
|
(package private) List<HRegionInfo> |
getRegionsWithoutValidFavoredNodes()
Return the regions without favored nodes
|
(package private) int |
getTotalFavoredAssignments()
Return the number of regions assigned to their favored nodes
|
(package private) List<HRegionInfo> |
getUnassignedRegions()
Return the unassigned regions
|
void |
print(boolean isDetailMode) |
private void |
printHServerAddressSet(Set<ServerName> serverSet) |
private static final org.apache.commons.logging.Log LOG
private TableName tableName
private boolean enforceLocality
private boolean isFilledUp
private int totalRegions
private int totalRegionServers
private List<HRegionInfo> unAssignedRegionsList
private List<HRegionInfo> regionsWithoutValidFavoredNodes
private List<HRegionInfo> nonFavoredAssignedRegionList
private int totalFavoredAssignments
private int[] favoredNodes
private float[] favoredNodesLocalitySummary
private float actualLocalitySummary
private float avgRegionsOnRS
private int maxRegionsOnRS
private int minRegionsOnRS
private Set<ServerName> mostLoadedRSSet
private Set<ServerName> leastLoadedRSSet
private float avgDispersionScore
private float maxDispersionScore
private Set<ServerName> maxDispersionScoreServerSet
private float minDispersionScore
private Set<ServerName> minDispersionScoreServerSet
private float avgDispersionNum
private float maxDispersionNum
private Set<ServerName> maxDispersionNumServerSet
private float minDispersionNum
private Set<ServerName> minDispersionNumServerSet
public void fillUp(TableName tableName, SnapshotOfRegionAssignmentFromMeta snapshot, Map<String,Map<String,Float>> regionLocalityMap)
public void fillUpDispersion(TableName tableName, SnapshotOfRegionAssignmentFromMeta snapshot, FavoredNodesPlan newPlan)
tableName
- snapshot
- newPlan
- public List<Float> getDispersionInformation()
public void print(boolean isDetailMode)
List<HRegionInfo> getUnassignedRegions()
List<HRegionInfo> getRegionsWithoutValidFavoredNodes()
List<HRegionInfo> getNonFavoredAssignedRegions()
int getTotalFavoredAssignments()
int getNumRegionsOnFavoredNodeByPosition(FavoredNodesPlan.Position position)
position
- private void printHServerAddressSet(Set<ServerName> serverSet)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.