Package org.opends.server.monitors
Interface HealthChecker
-
- All Superinterfaces:
HealthStatusProvider
- All Known Implementing Classes:
HealthChecker.HealthCheckerImpl
public interface HealthChecker extends HealthStatusProvider
A compositeHealthStatusProvider
that computes its health status based on the registeredHealthStatusProvider
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
HealthChecker.HealthCheckerImpl
AHealthChecker
implementation that is safe for using with multiple threads provided that the aggregatedHealthStatusProvider
are thread-safe.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deregister(HealthStatusProvider healthStatusProvider)
Deregisters aHealthStatusProvider
.static HealthChecker
newHealthChecker()
Returns a thread safe implementation ofHealthChecker
.void
register(HealthStatusProvider healthStatusProvider)
Registers aHealthStatusProvider
.-
Methods inherited from interface org.opends.server.monitors.HealthStatusProvider
getHealthStatus
-
-
-
-
Method Detail
-
newHealthChecker
static HealthChecker newHealthChecker()
Returns a thread safe implementation ofHealthChecker
.- Returns:
- a thread safe implementation of
HealthChecker
.
-
register
void register(HealthStatusProvider healthStatusProvider)
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
void deregister(HealthStatusProvider healthStatusProvider)
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.
-
-