@Configuration @ConditionalOnClass(value=org.elasticsearch.client.RestClient.class) @ConditionalOnBean(value=org.elasticsearch.client.RestClient.class) @ConditionalOnEnabledHealthIndicator(value="elasticsearch") @AutoConfigureBefore(value=HealthIndicatorAutoConfiguration.class) @AutoConfigureAfter(value={RestClientAutoConfiguration.class,ElasticSearchClientHealthIndicatorAutoConfiguration.class}) public class ElasticSearchRestHealthIndicatorAutoConfiguration extends CompositeHealthIndicatorConfiguration<ElasticsearchRestHealthIndicator,org.elasticsearch.client.RestClient>
Constructor and Description |
---|
ElasticSearchRestHealthIndicatorAutoConfiguration(Map<String,org.elasticsearch.client.RestClient> clients) |
Modifier and Type | Method and Description |
---|---|
protected ElasticsearchRestHealthIndicator |
createHealthIndicator(org.elasticsearch.client.RestClient client) |
HealthIndicator |
elasticsearchRestHealthIndicator() |
createHealthIndicator
@Bean @ConditionalOnMissingBean(name="elasticsearchRestHealthIndicator") public HealthIndicator elasticsearchRestHealthIndicator()
protected ElasticsearchRestHealthIndicator createHealthIndicator(org.elasticsearch.client.RestClient client)
createHealthIndicator
in class CompositeHealthIndicatorConfiguration<ElasticsearchRestHealthIndicator,org.elasticsearch.client.RestClient>
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.