public class EsConfig extends Object implements Serializable
Configuration for Elasticsearch connection.
| Constructor and Description | 
|---|
| EsConfig()EsConfig Constructor to be used in EsIndexBolt, EsPercolateBolt and EsStateFactory. | 
| EsConfig(String... urls)EsConfig Constructor to be used in EsIndexBolt, EsPercolateBolt and EsStateFactory. | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.http.Header[] | getDefaultHeaders() | 
| org.elasticsearch.client.RestClient.FailureListener | getFailureListener() | 
| org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback | getHttpClientConfigCallback() | 
| org.apache.http.HttpHost[] | getHttpHosts() | 
| Integer | getMaxRetryTimeoutMillis() | 
| String | getPathPrefix() | 
| org.elasticsearch.client.RestClientBuilder.RequestConfigCallback | getRequestConfigCallback() | 
| EsConfig | withDefaultHeaders(org.apache.http.Header[] defaultHeaders) | 
| EsConfig | withFailureListener(org.elasticsearch.client.RestClient.FailureListener failureListener) | 
| EsConfig | withHttpClientConfigCallback(org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback httpClientConfigCallback) | 
| EsConfig | withMaxRetryTimeoutMillis(Integer maxRetryTimeoutMillis) | 
| EsConfig | withPathPrefix(String pathPrefix) | 
| EsConfig | withRequestConfigCallback(org.elasticsearch.client.RestClientBuilder.RequestConfigCallback requestConfigCallback) | 
public EsConfig()
EsConfig Constructor to be used in EsIndexBolt, EsPercolateBolt and EsStateFactory. Connects to Elasticsearch at http://localhost:9200.
public EsConfig(String... urls)
EsConfig Constructor to be used in EsIndexBolt, EsPercolateBolt and EsStateFactory.
urls - Elasticsearch addresses in scheme://host:port pattern string arrayIllegalArgumentException - if urls are emptyNullPointerException - on any of the fields being nullpublic EsConfig withDefaultHeaders(org.apache.http.Header[] defaultHeaders)
public EsConfig withFailureListener(org.elasticsearch.client.RestClient.FailureListener failureListener)
public EsConfig withHttpClientConfigCallback(org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback httpClientConfigCallback)
public EsConfig withRequestConfigCallback(org.elasticsearch.client.RestClientBuilder.RequestConfigCallback requestConfigCallback)
public org.apache.http.HttpHost[] getHttpHosts()
public Integer getMaxRetryTimeoutMillis()
public org.apache.http.Header[] getDefaultHeaders()
public org.elasticsearch.client.RestClient.FailureListener getFailureListener()
public org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback getHttpClientConfigCallback()
public org.elasticsearch.client.RestClientBuilder.RequestConfigCallback getRequestConfigCallback()
public String getPathPrefix()
Copyright © 2020 The Apache Software Foundation. All rights reserved.