Class AxonServerHealthIndicator

java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
org.axonframework.extension.springboot.actuator.axonserver.AxonServerHealthIndicator
All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor, org.springframework.boot.actuate.health.HealthIndicator

public class AxonServerHealthIndicator extends org.springframework.boot.actuate.health.AbstractHealthIndicator
An AbstractHealthIndicator implementation exposing the health of the connections made through the AxonServerConnectionManager. This status is exposed through the "axonServer" component.

The status is regarded as Status.UP if all AxonServerConnectionManager.connections() are up. If one of them is down, the status is HealthStatus.WARN. If all of them are down the status will be Status.DOWN. This HealthIndicator also shares connection details per context under "{context-name}.connection.active".

Since:
4.6.0
Author:
Steven van Beelen
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs this health indicator, extracting health information from the given connectionManager.
  • 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

    • AxonServerHealthIndicator

      public AxonServerHealthIndicator(AxonServerConnectionManager connectionManager)
      Constructs this health indicator, extracting health information from the given connectionManager.
      Parameters:
      connectionManager - The Axon Server connection manager to extract health information from.
  • Method Details

    • doHealthCheck

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