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. |
Modifier and Type | Method and Description |
---|---|
void |
addHealthIndicator(String name,
HealthIndicator indicator) |
Health |
health()
Return an indication of health.
|
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 HealthIndicator
s with the key being used as an
indicator name.public void addHealthIndicator(String name, HealthIndicator indicator)
public Health health()
HealthIndicator
health
in interface HealthIndicator
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.