public abstract class AbstractHealthAggregator extends Object implements HealthAggregator
HealthAggregator
implementation to allow subclasses to focus on
aggregating the Status
instances and not deal with contextual details etc.Constructor and Description |
---|
AbstractHealthAggregator() |
Modifier and Type | Method and Description |
---|---|
Health |
aggregate(Map<String,Health> healths)
Aggregate several given
Health 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.
|
public final Health aggregate(Map<String,Health> healths)
HealthAggregator
Health
instances into one.aggregate
in interface HealthAggregator
healths
- the health instances to aggregateprotected abstract Status aggregateStatus(List<Status> candidates)
candidates
- the candidatesCopyright © 2017 Pivotal Software, Inc.. All rights reserved.