Class BindingHealthAggregateAccessor
java.lang.Object
com.solace.connector.core.io.health.BindingHealthAggregateAccessor
- All Implemented Interfaces:
BindingHealthAccessor
public abstract class BindingHealthAggregateAccessor
extends Object
implements BindingHealthAccessor
A
BindingHealthAccessor base class with functions to aggregate composite health contributors.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBindingHealthAggregateAccessor(org.springframework.boot.actuate.health.StatusAggregator statusAggregator) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.boot.actuate.health.HealthcollectAggregateHealthStatus(org.springframework.boot.actuate.health.HealthContributor healthContributor) Walk the health contributor collecting the healths for each nested health indicator.protected org.springframework.boot.actuate.health.HealthcollectAggregateHealthStatus(org.springframework.boot.actuate.health.HealthContributor healthContributor, org.springframework.boot.actuate.health.Status defaultStatus) Walk the health contributor collecting the healths for each nested health indicator.org.springframework.boot.actuate.health.StatusAggregatorGet the status aggregator used to compute a single health status from multiple health statuses.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.solace.connector.core.io.health.BindingHealthAccessor
getBinderType, getBindingHealth
-
Constructor Details
-
BindingHealthAggregateAccessor
protected BindingHealthAggregateAccessor(org.springframework.boot.actuate.health.StatusAggregator statusAggregator)
-
-
Method Details
-
collectAggregateHealthStatus
protected org.springframework.boot.actuate.health.Health collectAggregateHealthStatus(org.springframework.boot.actuate.health.HealthContributor healthContributor) Walk the health contributor collecting the healths for each nested health indicator. If an indicator returns a value ofnull, then it will be treated asStatus.DOWN.- Parameters:
healthContributor- health contributor- Returns:
- aggregate health
- See Also:
-
collectAggregateHealthStatus
protected org.springframework.boot.actuate.health.Health collectAggregateHealthStatus(org.springframework.boot.actuate.health.HealthContributor healthContributor, org.springframework.boot.actuate.health.Status defaultStatus) Walk the health contributor collecting the healths for each nested health indicator.- Parameters:
healthContributor- health contributordefaultStatus- the status to use if an indicator returns anullvalue. Set this to your lowest severity status (usuallyStatus.UNKNOWN) to effectively ignore the indicator in the aggregation.- Returns:
- aggregate health
-
getStatusAggregator
public org.springframework.boot.actuate.health.StatusAggregator getStatusAggregator()Get the status aggregator used to compute a single health status from multiple health statuses.- Returns:
- status aggregator
-