@Configuration @ConditionalOnBean(value=org.elasticsearch.client.Client.class) @ConditionalOnEnabledHealthIndicator(value="elasticsearch") @EnableConfigurationProperties(value=ElasticsearchHealthIndicatorProperties.class) public static class HealthIndicatorAutoConfiguration.ElasticsearchHealthIndicatorConfiguration extends HealthIndicatorAutoConfiguration.CompositeHealthIndicatorConfiguration<ElasticsearchHealthIndicator,org.elasticsearch.client.Client>
Constructor and Description |
---|
ElasticsearchHealthIndicatorConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected ElasticsearchHealthIndicator |
createHealthIndicator(org.elasticsearch.client.Client client) |
HealthIndicator |
elasticsearchHealthIndicator() |
createHealthIndicator
public ElasticsearchHealthIndicatorConfiguration()
@Bean @ConditionalOnMissingBean(name="elasticsearchHealthIndicator") public HealthIndicator elasticsearchHealthIndicator()
protected ElasticsearchHealthIndicator createHealthIndicator(org.elasticsearch.client.Client client)
createHealthIndicator
in class HealthIndicatorAutoConfiguration.CompositeHealthIndicatorConfiguration<ElasticsearchHealthIndicator,org.elasticsearch.client.Client>
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.