Class JdbcIndicator
java.lang.Object
io.micronaut.management.health.indicator.jdbc.JdbcIndicator
- All Implemented Interfaces:
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
- Author:
- James Kleeh
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionJdbcIndicator
(ExecutorService executorService, DataSource[] dataSources, @Nullable io.micronaut.jdbc.DataSourceResolver dataSourceResolver, HealthAggregator<?> healthAggregator) -
Method Summary
-
Constructor Details
-
JdbcIndicator
public JdbcIndicator(@Named("blocking") ExecutorService executorService, DataSource[] dataSources, @Nullable @Nullable io.micronaut.jdbc.DataSourceResolver dataSourceResolver, HealthAggregator<?> healthAggregator) - Parameters:
executorService
- The executor servicedataSources
- The data sourcesdataSourceResolver
- The data source resolverhealthAggregator
- The health aggregator
-
-
Method Details
-
getResult
- Specified by:
getResult
in interfaceHealthIndicator
- Returns:
- A publisher that returns a
HealthResult
that provides the information necessary to build a response.
-