Package org.opends.server.monitors
Interface HealthChecker
-
- All Superinterfaces:
HealthStatusProvider
- All Known Implementing Classes:
HealthChecker.HealthCheckerImpl
public interface HealthChecker extends HealthStatusProvider
A compositeHealthStatusProviderthat computes its health status based on the registeredHealthStatusProvider.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHealthChecker.HealthCheckerImplAHealthCheckerimplementation that is safe for using with multiple threads provided that the aggregatedHealthStatusProviderare thread-safe.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidderegister(HealthStatusProvider healthStatusProvider)Deregisters aHealthStatusProvider.static HealthCheckernewHealthChecker()Returns a thread safe implementation ofHealthChecker.voidregister(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, theHealthStatusgiven by thehealthStatusProviderwill be taken into account for computing thisHealthStatus. This method must be idempotent.- Parameters:
healthStatusProvider- TheHealthStatusProviderto be registered.
-
deregister
void deregister(HealthStatusProvider healthStatusProvider)
Deregisters aHealthStatusProvider. After calling this method, theHealthStatusgiven by thehealthStatusProviderwon't be taken into account for computing thisHealthStatus. This method must be idempotent. Calling this method with aHealthStatusProviderthat was not registered should have no effect.- Parameters:
healthStatusProvider- TheHealthStatusProviderto be deregistered.
-
-