public class CompositeHealthIndicator extends Object implements HealthIndicator
HealthIndicator
that returns health indications from all registered delegates.Constructor and Description |
---|
CompositeHealthIndicator(HealthAggregator healthAggregator)
Create a new
CompositeHealthIndicator . |
CompositeHealthIndicator(HealthAggregator healthAggregator,
Map<String,HealthIndicator> indicators)
Create a new
CompositeHealthIndicator from the specified indicators. |
public CompositeHealthIndicator(HealthAggregator healthAggregator)
CompositeHealthIndicator
.public CompositeHealthIndicator(HealthAggregator healthAggregator, Map<String,HealthIndicator> indicators)
CompositeHealthIndicator
from the specified indicators.indicators
- a map of HealthIndicator
s with the key being used as an
indicator name.public void addHealthIndicator(String name, HealthIndicator indicator)
public Health health()
health
in interface HealthIndicator
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.