类 AbstractHealthAggregator
- java.lang.Object
- org.springframework.boot.actuate.health.AbstractHealthAggregator
- 所有已实现的接口:
HealthAggregator
- 直接已知子类:
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.- 从以下版本开始:
- 1.1.0
构造器概要
构造器 构造器 说明 AbstractHealthAggregator()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 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.
构造器详细资料
AbstractHealthAggregator
public AbstractHealthAggregator()
方法详细资料
aggregate
public final Health aggregate(Map<String,Health> healths)
从接口复制的说明:HealthAggregator
Aggregate several givenHealth
instances into one.- 指定者:
aggregate
在接口中HealthAggregator
- 参数:
healths
- the health instances to aggregate- 返回:
- the aggregated health
aggregateStatus
protected abstract Status aggregateStatus(List<Status> candidates)
Return the single 'aggregate' status that should be used from the specified candidates.- 参数:
candidates
- the candidates- 返回:
- a single status