@TestOnly
  synchronized Map<ServerLocationAndMemberId, ServerLoad> getGatewayReceiverLoadMap() {
    Map<ServerLocationAndMemberId, LoadHolder> connectionMap =
        connectionLoadMap.get(GatewayReceiver.RECEIVER_GROUP);
    Map<ServerLocationAndMemberId, ServerLoad> result = new HashMap<>();
    if (connectionMap == null) {
      return result;
    }
    for (Entry<ServerLocationAndMemberId, LoadHolder> entry : connectionMap.entrySet()) {
      ServerLocationAndMemberId member = new ServerLocationAndMemberId(entry.getKey()
          .getServerLocation(), entry.getKey().getMemberId());
      ServerLoad serverLoad =
          new ServerLoad(entry.getValue().getLoad(), entry.getValue().getLoadPerConnection(), 0, 0);
      result.put(member, serverLoad);
    }
    return result;
  }
Test hook to get the current load for all servers Returns a map of ServerLocation->Load for
each server.
geode-core/src/main/java/org/apache/geode/distributed/internal/LocatorLoadSnapshot.java