@Validated @Configuration @ConfigurationProperties(prefix="elasticsearch") public class ElasticsearchConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ElasticsearchConfiguration.Cluster
Abstract internal class to define the common cluster configuration
|
Constructor and Description |
---|
ElasticsearchConfiguration() |
Modifier and Type | Method and Description |
---|---|
ElasticsearchConfiguration.Cluster |
getDataCluster() |
ElasticsearchConfiguration.Cluster |
getMetricCluster() |
ElasticsearchConfiguration.Cluster |
getSpecificCluster(String clusterId)
Get the data or the metric cluster by id
|
void |
setDataCluster(ElasticsearchConfiguration.Cluster dataCluster) |
void |
setMetricCluster(ElasticsearchConfiguration.Cluster metricCluster) |
public ElasticsearchConfiguration.Cluster getDataCluster()
public void setDataCluster(ElasticsearchConfiguration.Cluster dataCluster)
public ElasticsearchConfiguration.Cluster getMetricCluster()
public void setMetricCluster(ElasticsearchConfiguration.Cluster metricCluster)
public ElasticsearchConfiguration.Cluster getSpecificCluster(String clusterId)
clusterId
- the cluster name to queryCopyright © 2023. All rights reserved.