CompositeHealthContributor
@Deprecated public class CompositeHealthIndicator extends Object implements HealthIndicator
HealthIndicator
that returns health indications from all registered delegates.Constructor and Description |
---|
CompositeHealthIndicator(HealthAggregator healthAggregator,
HealthIndicatorRegistry registry)
Deprecated.
Create a new
CompositeHealthIndicator from the indicators in the given
registry . |
CompositeHealthIndicator(HealthAggregator healthAggregator,
Map<String,HealthIndicator> indicators)
Deprecated.
Create a new
CompositeHealthIndicator from the specified indicators. |
Modifier and Type | Method and Description |
---|---|
HealthIndicatorRegistry |
getRegistry()
Deprecated.
Return the
HealthIndicatorRegistry of this instance. |
Health |
health()
Deprecated.
Return an indication of health.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHealth
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.