@Configuration @ConditionalOnClass(value=org.elasticsearch.client.Client.class) @ConditionalOnBean(value=org.elasticsearch.client.Client.class) @ConditionalOnEnabledHealthIndicator(value="elasticsearch") @AutoConfigureBefore(value=HealthIndicatorAutoConfiguration.class) @AutoConfigureAfter(value=ElasticsearchAutoConfiguration.class) @EnableConfigurationProperties(value=ElasticsearchHealthIndicatorProperties.class) public class ElasticSearchClientHealthIndicatorAutoConfiguration extends CompositeHealthIndicatorConfiguration<ElasticsearchHealthIndicator,org.elasticsearch.client.Client>
Constructor and Description |
---|
ElasticSearchClientHealthIndicatorAutoConfiguration(ElasticsearchHealthIndicatorProperties properties) |
Modifier and Type | Method and Description |
---|---|
protected ElasticsearchHealthIndicator |
createHealthIndicator(org.elasticsearch.client.Client client) |
HealthIndicator |
elasticsearchHealthIndicator(Map<String,org.elasticsearch.client.Client> clients) |
createHealthIndicator
public ElasticSearchClientHealthIndicatorAutoConfiguration(ElasticsearchHealthIndicatorProperties properties)
@Bean @ConditionalOnMissingBean(name="elasticsearchHealthIndicator") public HealthIndicator elasticsearchHealthIndicator(Map<String,org.elasticsearch.client.Client> clients)
protected ElasticsearchHealthIndicator createHealthIndicator(org.elasticsearch.client.Client client)
createHealthIndicator
in class CompositeHealthIndicatorConfiguration<ElasticsearchHealthIndicator,org.elasticsearch.client.Client>
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.