Package org.springframework.boot.actuate.health

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


    @Bean
    @ConditionalOnMissingBean(name = "solrHealthIndicator")
    public HealthIndicator rabbitHealthIndicator() {
      if (this.solrServers.size() == 1) {
        return new SolrHealthIndicator(this.solrServers.entrySet().iterator()
            .next().getValue());
      }

      CompositeHealthIndicator composite = new CompositeHealthIndicator(
          this.healthAggregator);
      for (Map.Entry<String, SolrServer> entry : this.solrServers.entrySet()) {
        composite.addHealthIndicator(entry.getKey(), new SolrHealthIndicator(
            entry.getValue()));
      }
      return composite;
    }
View Full Code Here

TOP

Related Classes of org.springframework.boot.actuate.health.SolrHealthIndicator

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.