@Override
    public boolean ping(ClickHouseNode server, int timeout) {
        if (server == null) {
            return false;
        } else if (server.config.getOption(ClickHouseClientOption.HEALTH_CHECK_METHOD,
                getConfig()) != ClickHouseHealthCheckMethod.PING) {
            return ClickHouseClient.super.ping(server, timeout);
        }

        if (server.getProtocol() == ClickHouseProtocol.ANY) {
            server = ClickHouseNode.probe(server.getHost(), server.getPort(), timeout);
        }
        return checkHealth(server, timeout);
    }
Gets a connection according to the given request.

@param request non-null request
@return non-null connection
@throws CompletionException when error occured
clickhouse-client/src/main/java/com/clickhouse/client/AbstractClient.java