Package org.forgerock.openig.health
Interface HealthService
- All Superinterfaces:
HealthProbe
A
HealthService is a HealthProbe that can register other HealthProbes.
The status of the HealthService is true if the status of all registered probes is true.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA handle to unregister aHealthProbefrom aHealthService. -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthServiceReturns an implementation of theHealthServicebased on a list of registered probed.register(HealthProbe probe) Registers aHealthProbeto thisHealthService.static HealthServiceReturns an implementation of theHealthServicethat 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 aHealthProbeto thisHealthService.- Parameters:
probe- theHealthProbeto register- Returns:
- a
HealthService.ProbeRegistrationthat can be used to unregister the probe
-
singleProbeHealthService
Returns an implementation of theHealthServicethat can't be updated with additional probes and has a status that is based only on the status of a singleHealthProbe.- Parameters:
probe- the singleHealthProbeto use for the status of the service- Returns:
- a new
HealthService
-
multiProbeHealthService
Returns an implementation of theHealthServicebased on a list of registered probed. When no probes are registered, the status is always false.- Returns:
- a new
HealthService
-