SimpleStatusAggregator
@Deprecated public class OrderedHealthAggregator extends AbstractHealthAggregator
HealthAggregator
implementation that aggregates Health
instances and determines the final system state based on a simple ordered list.
If a different order is required or a new Status
type will be used, the order
can be set by calling setStatusOrder(List)
.
Constructor and Description |
---|
OrderedHealthAggregator()
Deprecated.
Create a new
OrderedHealthAggregator instance. |
Modifier and Type | Method and Description |
---|---|
protected Status |
aggregateStatus(List<Status> candidates)
Deprecated.
Return the single 'aggregate' status that should be used from the specified
candidates.
|
void |
setStatusOrder(List<String> statusOrder)
Deprecated.
Set the ordering of the status.
|
void |
setStatusOrder(Status... statusOrder)
Deprecated.
Set the ordering of the status.
|
aggregate, aggregateDetails
public OrderedHealthAggregator()
OrderedHealthAggregator
instance.public void setStatusOrder(Status... statusOrder)
statusOrder
- an ordered list of the statuspublic void setStatusOrder(List<String> statusOrder)
statusOrder
- an ordered list of the status codesprotected Status aggregateStatus(List<Status> candidates)
AbstractHealthAggregator
aggregateStatus
in class AbstractHealthAggregator
candidates
- the candidatesCopyright © 2020 Pivotal Software, Inc.. All rights reserved.