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