public class ClusterLoadState extends Object
Modifier and Type | Field and Description |
---|---|
private Map<ServerName,List<HRegionInfo>> |
clusterState |
private boolean |
emptyRegionServerPresent |
private int |
numRegions |
private int |
numServers |
private NavigableMap<ServerAndLoad,List<HRegionInfo>> |
serversByLoad |
Constructor and Description |
---|
ClusterLoadState(Map<ServerName,List<HRegionInfo>> clusterState) |
Modifier and Type | Method and Description |
---|---|
(package private) Map<ServerName,List<HRegionInfo>> |
getClusterState() |
(package private) float |
getLoadAverage() |
(package private) int |
getMaxLoad() |
(package private) int |
getMinLoad() |
(package private) int |
getNumRegions() |
(package private) int |
getNumServers() |
(package private) NavigableMap<ServerAndLoad,List<HRegionInfo>> |
getServersByLoad() |
(package private) boolean |
isEmptyRegionServerPresent() |
private final Map<ServerName,List<HRegionInfo>> clusterState
private final NavigableMap<ServerAndLoad,List<HRegionInfo>> serversByLoad
private boolean emptyRegionServerPresent
private int numRegions
private int numServers
public ClusterLoadState(Map<ServerName,List<HRegionInfo>> clusterState)
Map<ServerName,List<HRegionInfo>> getClusterState()
NavigableMap<ServerAndLoad,List<HRegionInfo>> getServersByLoad()
boolean isEmptyRegionServerPresent()
int getNumRegions()
int getNumServers()
float getLoadAverage()
int getMaxLoad()
int getMinLoad()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.