Package org.opends.server.monitors
Interface HealthChecker
- All Superinterfaces:
HealthStatusProvider
- All Known Implementing Classes:
HealthChecker.HealthCheckerImpl
A composite
HealthStatusProvider
that computes its health status based on the registered
HealthStatusProvider
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
AHealthChecker
implementation that is safe for using with multiple threads provided that the aggregatedHealthStatusProvider
are thread-safe. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deregister
(HealthStatusProvider healthStatusProvider) Deregisters aHealthStatusProvider
.static HealthChecker
Returns a thread safe implementation ofHealthChecker
.void
register
(HealthStatusProvider healthStatusProvider) Registers aHealthStatusProvider
.Methods inherited from interface org.opends.server.monitors.HealthStatusProvider
getHealthStatus
-
Method Details
-
newHealthChecker
Returns a thread safe implementation ofHealthChecker
.- Returns:
- a thread safe implementation of
HealthChecker
.
-
register
Registers aHealthStatusProvider
. After calling this method, theHealthStatus
given by thehealthStatusProvider
will be taken into account for computing thisHealthStatus
. This method must be idempotent.- Parameters:
healthStatusProvider
- TheHealthStatusProvider
to be registered.
-
deregister
Deregisters aHealthStatusProvider
. After calling this method, theHealthStatus
given by thehealthStatusProvider
won't be taken into account for computing thisHealthStatus
. This method must be idempotent. Calling this method with aHealthStatusProvider
that was not registered should have no effect.- Parameters:
healthStatusProvider
- TheHealthStatusProvider
to be deregistered.
-