public interface HealthIndicatorRegistry
HealthIndicators
.
Implementations must be thread-safe.
Modifier and Type | Method and Description |
---|---|
HealthIndicator |
get(String name)
Returns the
HealthIndicator registered with the given name . |
Map<String,HealthIndicator> |
getAll()
Returns a snapshot of the registered health indicators and their names.
|
void |
register(String name,
HealthIndicator healthIndicator)
Registers the given
HealthIndicator , associating it with the given
name . |
HealthIndicator |
unregister(String name)
Unregisters the
HealthIndicator previously registered with the given
name . |
void register(String name, HealthIndicator healthIndicator)
HealthIndicator
, associating it with the given
name
.name
- the name of the indicatorhealthIndicator
- the indicatorIllegalStateException
- if an indicator with the given name
is
already registered.HealthIndicator unregister(String name)
HealthIndicator
previously registered with the given
name
.name
- the name of the indicatornull
if no indicator was found in
the registry for the given name
.HealthIndicator get(String name)
HealthIndicator
registered with the given name
.name
- the name of the indicatornull
if no indicator was registered with
the given name
.Map<String,HealthIndicator> getAll()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.