@Configuration(proxyBeanMethods=false) @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() |
Modifier and Type | Method and Description |
---|---|
protected ElasticsearchRestHealthIndicator |
createHealthIndicator(org.elasticsearch.client.RestClient client) |
HealthIndicator |
elasticsearchRestHealthIndicator(Map<String,org.elasticsearch.client.RestClient> clients) |
createHealthIndicator
public ElasticSearchRestHealthIndicatorAutoConfiguration()
@Bean @ConditionalOnMissingBean(name="elasticsearchRestHealthIndicator") public HealthIndicator elasticsearchRestHealthIndicator(Map<String,org.elasticsearch.client.RestClient> clients)
protected ElasticsearchRestHealthIndicator createHealthIndicator(org.elasticsearch.client.RestClient client)
createHealthIndicator
in class CompositeHealthIndicatorConfiguration<ElasticsearchRestHealthIndicator,org.elasticsearch.client.RestClient>
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.