public static Host getHost(int whichHost) {
    int size = hosts.size();
    if (whichHost >= size) {
      String message = "Cannot request host " + whichHost + ".  There are only " + size + " hosts.";
      throw new IllegalArgumentException(message);

    } else {
      return hosts.get(whichHost);
    }
  }
Returns a given host

@param whichHost A zero-based identifier of the host
@return the Host
@throws IllegalArgumentException {@code n} is more than the number of hosts
geode-dunit/src/main/java/org/apache/geode/test/dunit/Host.java