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.healthAggregator - the health aggregatorpublic CompositeHealthIndicator(HealthAggregator healthAggregator, Map<String,HealthIndicator> indicators)
CompositeHealthIndicator from the specified indicators.healthAggregator - the health aggregatorindicators - a map of HealthIndicators with the key being used as an
indicator name.public void addHealthIndicator(String name, HealthIndicator indicator)
public Health health()
health in interface HealthIndicatorCopyright © 2015 Pivotal Software, Inc.. All rights reserved.