public double getAverageLoad() {
    int numServers = 0;
    int totalLoad = 0;
    for (ServerStateNode node : serverMap.values()) {
      totalLoad += node.getRegionCount();
      numServers++;
    }
    return numServers == 0 ? 0.0 : (double) totalLoad / (double) numServers;
  }
Returns Pertinent ServerStateNode or NULL if none found (Do not make modifications).
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStates.java