public List<HttpHost> getHttpHosts() {
        if (httpHosts != null) {
            return httpHosts;
        }
        try {
            synchronized (HttpHost.class) {
                httpHosts = new ArrayList<>();
                String[] hostArrays = this.hosts.split(InlongConstants.SEMICOLON);
                for (String host : hostArrays) {
                    if (StringUtils.isNotBlank(host)) {
                        host = host.trim();
                        httpHosts.add(HttpHost.create(host));
                    }
                }
            }
        } catch (Exception e) {
            logger.error("get es http hosts error", e);
        }
        return httpHosts;
    }
Get http hosts.

@return list of http host info
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/es/ElasticsearchConfig.java