Examples of HealthIndicator


Examples of org.springframework.boot.actuate.health.HealthIndicator

      return new HealthEndpoint(healthAggregator, healthIndicators);
    }

    @Bean
    public HealthIndicator statusHealthIndicator() {
      return new HealthIndicator() {

        @Override
        public Health health() {
          return new Health.Builder().status("FINE").build();
        }
View Full Code Here

Examples of org.springframework.boot.actuate.health.HealthIndicator

        "management.health.diskspace.enabled:false");
    this.context.refresh();
    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
Copyright © 2018 www.massapi.com. 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.