Package org.forgerock.openig.health
Interface HealthService
- All Superinterfaces:
HealthProbe
A
HealthService
is a HealthProbe
that can register other HealthProbe
s.
The status of the HealthService
is true if the status of all registered probes is true.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A handle to unregister aHealthProbe
from aHealthService
. -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthService
Returns an implementation of theHealthService
based on a list of registered probed.register
(HealthProbe probe) Registers aHealthProbe
to thisHealthService
.static HealthService
Returns an implementation of theHealthService
that can't be updated with additional probes and has a status that is based only on the status of a singleHealthProbe
.Methods inherited from interface org.forgerock.openig.health.HealthProbe
status
-
Method Details
-
register
Registers aHealthProbe
to thisHealthService
.- Parameters:
probe
- theHealthProbe
to register- Returns:
- a
HealthService.ProbeRegistration
that can be used to unregister the probe
-
singleProbeHealthService
Returns an implementation of theHealthService
that can't be updated with additional probes and has a status that is based only on the status of a singleHealthProbe
.- Parameters:
probe
- the singleHealthProbe
to use for the status of the service- Returns:
- a new
HealthService
-
multiProbeHealthService
Returns an implementation of theHealthService
based on a list of registered probed. When no probes are registered, the status is always false.- Returns:
- a new
HealthService
-