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

    Constructors
    Modifier
    Constructor
    Description
    protected
    BindingHealthAggregateAccessor(org.springframework.boot.actuate.health.StatusAggregator statusAggregator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    org.springframework.boot.actuate.health.StatusAggregator
    Get 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, wait

    Methods 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 of null, then it will be treated as Status.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 contributor
      defaultStatus - the status to use if an indicator returns a null value. Set this to your lowest severity status (usually Status.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