public class CompositeHealthIndicator extends Object implements HealthIndicator
HealthIndicator
that returns health indications from all registered delegates.Constructor and Description |
---|
CompositeHealthIndicator(HealthAggregator healthAggregator,
HealthIndicatorRegistry registry)
Create a new
CompositeHealthIndicator from the indicators in the given
registry . |
CompositeHealthIndicator(HealthAggregator healthAggregator,
Map<String,HealthIndicator> indicators)
Create a new
CompositeHealthIndicator from the specified indicators. |
Modifier and Type | Method and Description |
---|---|
HealthIndicatorRegistry |
getRegistry()
Return the
HealthIndicatorRegistry of this instance. |
Health |
health()
Return an indication of health.
|
public 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 CompositeHealthIndicator(HealthAggregator healthAggregator, HealthIndicatorRegistry registry)
CompositeHealthIndicator
from the indicators in the given
registry
.healthAggregator
- the health aggregatorregistry
- the registry of HealthIndicators
.public HealthIndicatorRegistry getRegistry()
HealthIndicatorRegistry
of this instance.health indicators
public Health health()
HealthIndicator
health
in interface HealthIndicator
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.