private static LocatorStatusResponse getLocatorStatusResponse(int port, String bindAddress,
      SSLConfig sslConfig)
      throws IOException {
    // final int timeout = (60 * 2 * 1000); // 2 minutes
    final int timeout = Integer.MAX_VALUE; // 2 minutes
    try {
      final TcpSocketCreator socketCreator = new SocketCreator(sslConfig);
      final TcpClient client = new TcpClient(socketCreator,
          InternalDataSerializer.getDSFIDSerializer().getObjectSerializer(),
          InternalDataSerializer.getDSFIDSerializer().getObjectDeserializer(),
          TcpSocketFactory.DEFAULT);
      return (LocatorStatusResponse) client.requestToServer(
          new HostAndPort(bindAddress == null ? HostUtils.getLocalHost() : bindAddress, port),
          new LocatorStatusRequest(), timeout, true);
    } catch (ClassNotFoundException e) {
      throw new RuntimeException(e);
    }
  }
Returns the status of the locator on the given host and port

@param port the port that the locator is listening on
@param hostname the host name or ip address that the locator is listening on.
@return a {@link LocatorStatusResponse} representing the status of the locator
@throws IOException if there is a problem interacting with the locator
geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java