Class NetworkConfig
- java.lang.Object
-
- org.apache.flink.cdc.connectors.elasticsearch.v2.NetworkConfig
-
- All Implemented Interfaces:
Serializable
public class NetworkConfig extends Object implements Serializable
A factory that creates valid ElasticsearchClient instances.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetworkConfig(List<org.apache.http.HttpHost> hosts, String username, String password, List<org.apache.http.Header> headers, org.apache.flink.util.function.SerializableSupplier<SSLContext> sslContextSupplier, org.apache.flink.util.function.SerializableSupplier<HostnameVerifier> sslHostnameVerifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description co.elastic.clients.elasticsearch.ElasticsearchAsyncClientcreateEsClient()List<org.apache.http.HttpHost>getHosts()
-
-
-
Constructor Detail
-
NetworkConfig
public NetworkConfig(List<org.apache.http.HttpHost> hosts, String username, String password, List<org.apache.http.Header> headers, org.apache.flink.util.function.SerializableSupplier<SSLContext> sslContextSupplier, org.apache.flink.util.function.SerializableSupplier<HostnameVerifier> sslHostnameVerifier)
-
-
Method Detail
-
createEsClient
public co.elastic.clients.elasticsearch.ElasticsearchAsyncClient createEsClient()
-
getHosts
public List<org.apache.http.HttpHost> getHosts()
-
-