Class AbstractHealthAggregator
- java.lang.Object
- org.springframework.boot.actuate.health.AbstractHealthAggregator
- All Implemented Interfaces:
HealthAggregator
- Direct Known Subclasses:
OrderedHealthAggregator
public abstract class AbstractHealthAggregator extends Object implements HealthAggregator
BaseHealthAggregator
implementation to allow subclasses to focus on aggregating theStatus
instances and not deal with contextual details etc.- Since:
- 1.1.0
Constructor Summary
Constructors Constructor Description AbstractHealthAggregator()
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Health
aggregate(Map<String,Health> healths)
Aggregate several givenHealth
instances into one.protected Map<String,Object>
aggregateDetails(Map<String,Health> healths)
Return the map of 'aggregate' details that should be used from the specified healths.protected abstract Status
aggregateStatus(List<Status> candidates)
Return the single 'aggregate' status that should be used from the specified candidates.
Constructor Detail
AbstractHealthAggregator
public AbstractHealthAggregator()
Method Detail
aggregate
public final Health aggregate(Map<String,Health> healths)
Description copied from interface:HealthAggregator
Aggregate several givenHealth
instances into one.- Specified by:
aggregate
in interfaceHealthAggregator
- Parameters:
healths
- the health instances to aggregate- Returns:
- the aggregated health
aggregateStatus
protected abstract Status aggregateStatus(List<Status> candidates)
Return the single 'aggregate' status that should be used from the specified candidates.- Parameters:
candidates
- the candidates- Returns:
- a single status