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
ConstructorsConstructorDescriptionAxonServerHealthIndicator(AxonServerConnectionManager connectionManager) Constructs this health indicator, extracting health information from the givenconnectionManager. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder) Methods inherited from class org.springframework.boot.actuate.health.AbstractHealthIndicator
healthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
Constructor Details
-
AxonServerHealthIndicator
Constructs this health indicator, extracting health information from the givenconnectionManager.- 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:
doHealthCheckin classorg.springframework.boot.actuate.health.AbstractHealthIndicator
-