@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.elasticsearch.client.RestClient.class) @ConditionalOnBean(value=org.elasticsearch.client.RestClient.class) @ConditionalOnEnabledHealthIndicator(value="elasticsearch") @AutoConfigureAfter(value={RestClientAutoConfiguration.class,ElasticSearchClientHealthContributorAutoConfiguration.class}) public class ElasticSearchRestHealthContributorAutoConfiguration extends CompositeHealthContributorConfiguration<ElasticsearchRestHealthIndicator,org.elasticsearch.client.RestClient>
Constructor and Description |
---|
ElasticSearchRestHealthContributorAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
HealthContributor |
elasticsearchRestHealthContributor(Map<String,org.elasticsearch.client.RestClient> clients) |
createComposite
createContributor, createIndicator
public ElasticSearchRestHealthContributorAutoConfiguration()
@Bean @ConditionalOnMissingBean(name={"elasticsearchRestHealthIndicator","elasticsearchRestHealthContributor"}) public HealthContributor elasticsearchRestHealthContributor(Map<String,org.elasticsearch.client.RestClient> clients)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.