Class ElasticsearchRestHealthContributorAutoConfiguration
java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeHealthContributorConfiguration<ElasticsearchRestClientHealthIndicator, co.elastic.clients.transport.rest5_client.low_level.Rest5Client>
org.springframework.boot.elasticsearch.autoconfigure.health.ElasticsearchRestHealthContributorAutoConfiguration
@AutoConfiguration(after=ElasticsearchRestClientAutoConfiguration.class)
@ConditionalOnClass({co.elastic.clients.transport.rest5_client.low_level.Rest5Client.class,ConditionalOnEnabledHealthIndicator.class})
@ConditionalOnBean(co.elastic.clients.transport.rest5_client.low_level.Rest5Client.class)
@ConditionalOnEnabledHealthIndicator("elasticsearch")
public final class ElasticsearchRestHealthContributorAutoConfiguration
extends CompositeHealthContributorConfiguration<ElasticsearchRestClientHealthIndicator, co.elastic.clients.transport.rest5_client.low_level.Rest5Client>
- Since:
- 4.0.0
- Author:
- Artsiom Yudovin
-
Method Summary
Modifier and TypeMethodDescriptionprotected final HealthContributorcreateContributor(Map<String, co.elastic.clients.transport.rest5_client.low_level.Rest5Client> beans) protected final HealthContributorcreateContributor(ConfigurableListableBeanFactory beanFactory, Class<co.elastic.clients.transport.rest5_client.low_level.Rest5Client> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.protected ElasticsearchRestClientHealthIndicatorcreateIndicator(co.elastic.clients.transport.rest5_client.low_level.Rest5Client bean) Methods inherited from class CompositeHealthContributorConfiguration
createComposite
-
Method Details
-
createContributor
protected final HealthContributor createContributor(ConfigurableListableBeanFactory beanFactory, Class<co.elastic.clients.transport.rest5_client.low_level.Rest5Client> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.- Parameters:
beanFactory- the bean factory from which the beans are retrievedbeanType- the type of the beans that are retrieved- Returns:
- the contributor
-
createContributor
protected final HealthContributor createContributor(Map<String, co.elastic.clients.transport.rest5_client.low_level.Rest5Client> beans) -
createIndicator
protected ElasticsearchRestClientHealthIndicator createIndicator(co.elastic.clients.transport.rest5_client.low_level.Rest5Client bean)
-