Class ClusterLoadState
java.lang.Object
org.apache.hadoop.hbase.master.balancer.ClusterLoadState
Class used to hold the current state of the cluster and how balanced it is.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<ServerName,
List<RegionInfo>> private boolean
private int
private int
private final NavigableMap<ServerAndLoad,
List<RegionInfo>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) Map<ServerName,
List<RegionInfo>> (package private) float
(package private) int
(package private) int
(package private) int
(package private) int
(package private) NavigableMap<ServerAndLoad,
List<RegionInfo>> (package private) boolean
-
Field Details
-
clusterState
-
serversByLoad
-
emptyRegionServerPresent
-
numRegions
-
numServers
-
-
Constructor Details
-
ClusterLoadState
-
-
Method Details
-
getClusterState
-
getServersByLoad
-
isEmptyRegionServerPresent
boolean isEmptyRegionServerPresent() -
getNumRegions
int getNumRegions() -
getNumServers
int getNumServers() -
getLoadAverage
float getLoadAverage() -
getMaxLoad
int getMaxLoad() -
getMinLoad
int getMinLoad()
-