DefaultContributorRegistry
@Deprecated public class DefaultHealthIndicatorRegistry extends Object implements HealthIndicatorRegistry
HealthIndicatorRegistry
.Constructor and Description |
---|
DefaultHealthIndicatorRegistry()
Deprecated.
Create a new
DefaultHealthIndicatorRegistry . |
DefaultHealthIndicatorRegistry(Map<String,HealthIndicator> healthIndicators)
Deprecated.
Create a new
DefaultHealthIndicatorRegistry from the specified indicators. |
Modifier and Type | Method and Description |
---|---|
HealthIndicator |
get(String name)
Deprecated.
Returns the
HealthIndicator registered with the given name . |
Map<String,HealthIndicator> |
getAll()
Deprecated.
Returns a snapshot of the registered health indicators and their names.
|
void |
register(String name,
HealthIndicator healthIndicator)
Deprecated.
Registers the given
HealthIndicator , associating it with the given
name . |
HealthIndicator |
unregister(String name)
Deprecated.
Unregisters the
HealthIndicator previously registered with the given
name . |
public DefaultHealthIndicatorRegistry()
DefaultHealthIndicatorRegistry
.public DefaultHealthIndicatorRegistry(Map<String,HealthIndicator> healthIndicators)
DefaultHealthIndicatorRegistry
from the specified indicators.healthIndicators
- a map of HealthIndicator
s with the key being used
as an indicator name.public void register(String name, HealthIndicator healthIndicator)
HealthIndicatorRegistry
HealthIndicator
, associating it with the given
name
.register
in interface HealthIndicatorRegistry
name
- the name of the indicatorhealthIndicator
- the indicatorpublic HealthIndicator unregister(String name)
HealthIndicatorRegistry
HealthIndicator
previously registered with the given
name
.unregister
in interface HealthIndicatorRegistry
name
- the name of the indicatornull
if no indicator was found in
the registry for the given name
.public HealthIndicator get(String name)
HealthIndicatorRegistry
HealthIndicator
registered with the given name
.get
in interface HealthIndicatorRegistry
name
- the name of the indicatornull
if no indicator was registered with
the given name
.public Map<String,HealthIndicator> getAll()
HealthIndicatorRegistry
getAll
in interface HealthIndicatorRegistry
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.