Package org.springframework.boot.actuate.health

Examples of org.springframework.boot.actuate.health.DataSourceHealthIndicator$SingleColumnRowMapper


      DataSourcePoolMetadata poolMetadata = provider
          .getDataSourcePoolMetadata(dataSource);
      if (poolMetadata != null) {
        validationQuery = poolMetadata.getValidationQuery();
      }
      return new DataSourceHealthIndicator(dataSource, validationQuery);
    }
View Full Code Here


    Map<String, HealthIndicator> beans = this.context
        .getBeansOfType(HealthIndicator.class);
    assertEquals(1, beans.size());
    HealthIndicator healthIndicator = beans.values().iterator().next();
    assertEquals(DataSourceHealthIndicator.class, healthIndicator.getClass());
    DataSourceHealthIndicator dataSourceHealthIndicator = (DataSourceHealthIndicator) healthIndicator;
    assertEquals("SELECT from FOOBAR", dataSourceHealthIndicator.getQuery());
  }
View Full Code Here

TOP

Related Classes of org.springframework.boot.actuate.health.DataSourceHealthIndicator$SingleColumnRowMapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.