Class JdbcIndicator

java.lang.Object
io.micronaut.management.health.indicator.jdbc.JdbcIndicator
All Implemented Interfaces:
io.micronaut.core.order.Ordered, HealthIndicator

@Singleton @Requires(beans=HealthEndpoint.class) @Requires(property="endpoints.health.jdbc.enabled",notEquals="false") @Requires(classes=io.micronaut.jdbc.DataSourceResolver.class) @Requires(beans=javax.sql.DataSource.class) public class JdbcIndicator extends Object implements HealthIndicator

A HealthIndicator used to display information about the jdbc status.

Since:
1.0
  • Constructor Details

    • JdbcIndicator

      public JdbcIndicator(@Named("blocking") ExecutorService executorService, DataSource[] dataSources, @Nullable @Nullable io.micronaut.jdbc.DataSourceResolver dataSourceResolver, HealthAggregator<?> healthAggregator)
      Parameters:
      executorService - The executor service
      dataSources - The data sources
      dataSourceResolver - The data source resolver
      healthAggregator - The health aggregator
  • Method Details

    • getResult

      public org.reactivestreams.Publisher<HealthResult> getResult()
      Specified by:
      getResult in interface HealthIndicator
      Returns:
      A publisher that returns a HealthResult that provides the information necessary to build a response.