public abstract static class ElasticsearchIO.ConnectionConfiguration
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
ConnectionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static ElasticsearchIO.ConnectionConfiguration |
create(java.lang.String[] addresses,
java.lang.String index,
java.lang.String type)
Creates a new Elasticsearch connection configuration.
|
ElasticsearchIO.ConnectionConfiguration |
withPassword(java.lang.String password)
If Elasticsearch authentication is enabled, provide the password.
|
ElasticsearchIO.ConnectionConfiguration |
withUsername(java.lang.String username)
If Elasticsearch authentication is enabled, provide the username.
|
public static ElasticsearchIO.ConnectionConfiguration create(java.lang.String[] addresses, java.lang.String index, java.lang.String type) throws java.io.IOException
addresses - list of addresses of Elasticsearch nodesindex - the index toward which the requests will be issuedtype - the document type toward which the requests will be issuedjava.io.IOException - when it fails to connect to Elasticsearchpublic ElasticsearchIO.ConnectionConfiguration withUsername(java.lang.String username)
username - the username used to authenticate to ElasticsearchElasticsearchIO.ConnectionConfiguration object with username setpublic ElasticsearchIO.ConnectionConfiguration withPassword(java.lang.String password)
password - the password used to authenticate to ElasticsearchElasticsearchIO.ConnectionConfiguration object with password set