|
|
@ -153,7 +153,7 @@ public class HealthIndicatorAutoConfiguration {
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@ConditionalOnClass(JdbcTemplate.class)
|
|
|
|
@ConditionalOnClass(JdbcTemplate.class)
|
|
|
|
@ConditionalOnBean(DataSource.class)
|
|
|
|
@ConditionalOnBean(DataSource.class)
|
|
|
|
@ConditionalOnEnablednHealthIndicator("db")
|
|
|
|
@ConditionalOnEnabledHealthIndicator("db")
|
|
|
|
public static class DataSourcesHealthIndicatorConfiguration extends
|
|
|
|
public static class DataSourcesHealthIndicatorConfiguration extends
|
|
|
|
CompositeHealthIndicatorConfiguration<DataSourceHealthIndicator, DataSource>
|
|
|
|
CompositeHealthIndicatorConfiguration<DataSourceHealthIndicator, DataSource>
|
|
|
|
implements InitializingBean {
|
|
|
|
implements InitializingBean {
|
|
|
@ -193,7 +193,7 @@ public class HealthIndicatorAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@ConditionalOnBean(MongoTemplate.class)
|
|
|
|
@ConditionalOnBean(MongoTemplate.class)
|
|
|
|
@ConditionalOnEnablednHealthIndicator("mongo")
|
|
|
|
@ConditionalOnEnabledHealthIndicator("mongo")
|
|
|
|
public static class MongoHealthIndicatorConfiguration extends
|
|
|
|
public static class MongoHealthIndicatorConfiguration extends
|
|
|
|
CompositeHealthIndicatorConfiguration<MongoHealthIndicator, MongoTemplate> {
|
|
|
|
CompositeHealthIndicatorConfiguration<MongoHealthIndicator, MongoTemplate> {
|
|
|
|
|
|
|
|
|
|
|
@ -210,7 +210,7 @@ public class HealthIndicatorAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@ConditionalOnBean(RedisConnectionFactory.class)
|
|
|
|
@ConditionalOnBean(RedisConnectionFactory.class)
|
|
|
|
@ConditionalOnEnablednHealthIndicator("redis")
|
|
|
|
@ConditionalOnEnabledHealthIndicator("redis")
|
|
|
|
public static class RedisHealthIndicatorConfiguration
|
|
|
|
public static class RedisHealthIndicatorConfiguration
|
|
|
|
extends
|
|
|
|
extends
|
|
|
|
CompositeHealthIndicatorConfiguration<RedisHealthIndicator, RedisConnectionFactory> {
|
|
|
|
CompositeHealthIndicatorConfiguration<RedisHealthIndicator, RedisConnectionFactory> {
|
|
|
@ -228,7 +228,7 @@ public class HealthIndicatorAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@ConditionalOnBean(RabbitTemplate.class)
|
|
|
|
@ConditionalOnBean(RabbitTemplate.class)
|
|
|
|
@ConditionalOnEnablednHealthIndicator("rabbit")
|
|
|
|
@ConditionalOnEnabledHealthIndicator("rabbit")
|
|
|
|
public static class RabbitHealthIndicatorConfiguration extends
|
|
|
|
public static class RabbitHealthIndicatorConfiguration extends
|
|
|
|
CompositeHealthIndicatorConfiguration<RabbitHealthIndicator, RabbitTemplate> {
|
|
|
|
CompositeHealthIndicatorConfiguration<RabbitHealthIndicator, RabbitTemplate> {
|
|
|
|
|
|
|
|
|
|
|
@ -245,7 +245,7 @@ public class HealthIndicatorAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@ConditionalOnBean(SolrServer.class)
|
|
|
|
@ConditionalOnBean(SolrServer.class)
|
|
|
|
@ConditionalOnEnablednHealthIndicator("solr")
|
|
|
|
@ConditionalOnEnabledHealthIndicator("solr")
|
|
|
|
public static class SolrHealthIndicatorConfiguration extends
|
|
|
|
public static class SolrHealthIndicatorConfiguration extends
|
|
|
|
CompositeHealthIndicatorConfiguration<SolrHealthIndicator, SolrServer> {
|
|
|
|
CompositeHealthIndicatorConfiguration<SolrHealthIndicator, SolrServer> {
|
|
|
|
|
|
|
|
|
|
|
@ -261,7 +261,7 @@ public class HealthIndicatorAutoConfiguration {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@ConditionalOnEnablednHealthIndicator("diskspace")
|
|
|
|
@ConditionalOnEnabledHealthIndicator("diskspace")
|
|
|
|
public static class DiskSpaceHealthIndicatorConfiguration {
|
|
|
|
public static class DiskSpaceHealthIndicatorConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
@ -280,7 +280,7 @@ public class HealthIndicatorAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@ConditionalOnBean(JavaMailSenderImpl.class)
|
|
|
|
@ConditionalOnBean(JavaMailSenderImpl.class)
|
|
|
|
@ConditionalOnEnablednHealthIndicator("mail")
|
|
|
|
@ConditionalOnEnabledHealthIndicator("mail")
|
|
|
|
public static class MailHealthIndicatorConfiguration
|
|
|
|
public static class MailHealthIndicatorConfiguration
|
|
|
|
extends
|
|
|
|
extends
|
|
|
|
CompositeHealthIndicatorConfiguration<MailHealthIndicator, JavaMailSenderImpl> {
|
|
|
|
CompositeHealthIndicatorConfiguration<MailHealthIndicator, JavaMailSenderImpl> {
|
|
|
@ -298,7 +298,7 @@ public class HealthIndicatorAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@ConditionalOnBean(ConnectionFactory.class)
|
|
|
|
@ConditionalOnBean(ConnectionFactory.class)
|
|
|
|
@ConditionalOnEnablednHealthIndicator("jms")
|
|
|
|
@ConditionalOnEnabledHealthIndicator("jms")
|
|
|
|
public static class JmsHealthIndicatorConfiguration extends
|
|
|
|
public static class JmsHealthIndicatorConfiguration extends
|
|
|
|
CompositeHealthIndicatorConfiguration<JmsHealthIndicator, ConnectionFactory> {
|
|
|
|
CompositeHealthIndicatorConfiguration<JmsHealthIndicator, ConnectionFactory> {
|
|
|
|
|
|
|
|
|
|
|
@ -315,7 +315,7 @@ public class HealthIndicatorAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@ConditionalOnBean(Client.class)
|
|
|
|
@ConditionalOnBean(Client.class)
|
|
|
|
@ConditionalOnEnablednHealthIndicator("elasticsearch")
|
|
|
|
@ConditionalOnEnabledHealthIndicator("elasticsearch")
|
|
|
|
@EnableConfigurationProperties(ElasticsearchHealthIndicatorProperties.class)
|
|
|
|
@EnableConfigurationProperties(ElasticsearchHealthIndicatorProperties.class)
|
|
|
|
public static class ElasticsearchHealthIndicatorConfiguration extends
|
|
|
|
public static class ElasticsearchHealthIndicatorConfiguration extends
|
|
|
|
CompositeHealthIndicatorConfiguration<ElasticsearchHealthIndicator, Client> {
|
|
|
|
CompositeHealthIndicatorConfiguration<ElasticsearchHealthIndicator, Client> {
|
|
|
|