Class SolrHealthIndicator

java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
org.dspace.app.rest.health.SolrHealthIndicator
All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor, org.springframework.boot.actuate.health.HealthIndicator

public class SolrHealthIndicator extends org.springframework.boot.actuate.health.AbstractHealthIndicator
HealthIndicator for Apache Solr. This is copied from the 'org.springframework.boot.actuate.solr.SolrHealthIndicator' in Spring Boot v2, as that class was removed in Spring Boot v3. See https://github.com/spring-projects/spring-boot/issues/31054 This HealthIndicator has updated by DSpace to support later versions of Spring Boot and Solr.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SolrHealthIndicator(org.apache.solr.client.solrj.SolrClient solrClient)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder)
     

    Methods inherited from class org.springframework.boot.actuate.health.AbstractHealthIndicator

    health

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.boot.actuate.health.HealthIndicator

    getHealth
  • Constructor Details

    • SolrHealthIndicator

      public SolrHealthIndicator(org.apache.solr.client.solrj.SolrClient solrClient)
  • Method Details

    • doHealthCheck

      protected void doHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder) throws Exception
      Specified by:
      doHealthCheck in class org.springframework.boot.actuate.health.AbstractHealthIndicator
      Throws:
      Exception