@Configuration @ConditionalOnClass(value=io.searchbox.client.JestClient.class) @ConditionalOnBean(value=io.searchbox.client.JestClient.class) @ConditionalOnEnabledHealthIndicator(value="elasticsearch") @AutoConfigureBefore(value=HealthIndicatorAutoConfiguration.class) @AutoConfigureAfter(value={JestAutoConfiguration.class,ElasticSearchClientHealthIndicatorAutoConfiguration.class}) public class ElasticSearchJestHealthIndicatorAutoConfiguration extends CompositeHealthIndicatorConfiguration<ElasticsearchJestHealthIndicator,io.searchbox.client.JestClient>
Constructor and Description |
---|
ElasticSearchJestHealthIndicatorAutoConfiguration(Map<String,io.searchbox.client.JestClient> clients) |
Modifier and Type | Method and Description |
---|---|
protected ElasticsearchJestHealthIndicator |
createHealthIndicator(io.searchbox.client.JestClient client) |
HealthIndicator |
elasticsearchHealthIndicator() |
createHealthIndicator
@Bean @ConditionalOnMissingBean(name="elasticsearchHealthIndicator") public HealthIndicator elasticsearchHealthIndicator()
protected ElasticsearchJestHealthIndicator createHealthIndicator(io.searchbox.client.JestClient client)
createHealthIndicator
in class CompositeHealthIndicatorConfiguration<ElasticsearchJestHealthIndicator,io.searchbox.client.JestClient>
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.