@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(Map<String,org.elasticsearch.client.Client> clients,
ElasticsearchHealthIndicatorProperties properties) |
Modifier and Type | Method and Description |
---|---|
protected ElasticsearchHealthIndicator |
createHealthIndicator(org.elasticsearch.client.Client client) |
HealthIndicator |
elasticsearchHealthIndicator() |
createHealthIndicator
public ElasticSearchClientHealthIndicatorAutoConfiguration(Map<String,org.elasticsearch.client.Client> clients, ElasticsearchHealthIndicatorProperties properties)
@Bean @ConditionalOnMissingBean(name="elasticsearchHealthIndicator") public HealthIndicator elasticsearchHealthIndicator()
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.