Interface ElasticsearchConnectionDetails
- All Superinterfaces:
org.springframework.boot.autoconfigure.service.connection.ConnectionDetails
public interface ElasticsearchConnectionDetails
extends org.springframework.boot.autoconfigure.service.connection.ConnectionDetails
Details required to establish a connection to an Elasticsearch service.
- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAn Elasticsearch node. -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable StringAPIKey for authentication with Elasticsearch.getNodes()List of the Elasticsearch nodes to use.default @Nullable StringPassword for authentication with Elasticsearch.default @Nullable StringPrefix added to the path of every request sent to Elasticsearch.default @Nullable org.springframework.boot.ssl.SslBundleSSL bundle to use.default @Nullable StringUsername for authentication with Elasticsearch.
-
Method Details
-
getNodes
List<ElasticsearchConnectionDetails.Node> getNodes()List of the Elasticsearch nodes to use.- Returns:
- list of the Elasticsearch nodes to use
-
getUsername
Username for authentication with Elasticsearch.- Returns:
- username for authentication with Elasticsearch or
null
-
getPassword
Password for authentication with Elasticsearch.- Returns:
- password for authentication with Elasticsearch or
null
-
getApiKey
APIKey for authentication with Elasticsearch.- Returns:
- the API key for authentication with Elasticsearch or
null
-
getPathPrefix
Prefix added to the path of every request sent to Elasticsearch.- Returns:
- prefix added to the path of every request sent to Elasticsearch or
null
-
getSslBundle
default @Nullable org.springframework.boot.ssl.SslBundle getSslBundle()SSL bundle to use.- Returns:
- the SSL bundle to use
-